AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • AC Motors
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

SureServo2 Modbus RTU with a CLICK PLC from AutomationDirect


Related Products

SV2A-2040
SV2A-2040 Thumbnail
SV2A-2075
SV2A-2075 Thumbnail
SV2A-2150
SV2A-2150 Thumbnail
SV2A-2200
SV2A-2200 Thumbnail
SV2A-2300
SV2A-2300 Thumbnail
SV2A-2550
SV2A-2550 Thumbnail
SV2A-2750
SV2A-2750 Thumbnail
SV2A-2F00
SV2A-2F00 Thumbnail
SV2L-201N
SV2L-201N Thumbnail
SV2L-201B
SV2L-201B Thumbnail
SV2L-202N
SV2L-202N Thumbnail
SV2L-202B
SV2L-202B Thumbnail
SV2L-204N
SV2L-204N Thumbnail
SV2L-204B
SV2L-204B Thumbnail
SV2L-207N
SV2L-207N Thumbnail
SV2L-207B
SV2L-207B Thumbnail
SV2L-210N
SV2L-210N Thumbnail
SV2L-210B
SV2L-210B Thumbnail
SV2M-210N
SV2M-210N Thumbnail
SV2M-210B
SV2M-210B Thumbnail
SV2H-255B
SV2H-255B Thumbnail
SV2H-255N
SV2H-255N Thumbnail
SV2H-245B
SV2H-245B Thumbnail
SV2H-245N
SV2H-245N Thumbnail
SV2M-230B
SV2M-230B Thumbnail
SV2M-230N
SV2M-230N Thumbnail
SV2M-220B
SV2M-220B Thumbnail
SV2M-220N
SV2M-220N Thumbnail
SV2M-215B
SV2M-215B Thumbnail
SV2M-215N
SV2M-215N Thumbnail
SV2H-275N
SV2H-275N Thumbnail
SV2H-275B
SV2H-275B Thumbnail
SV2H-2B0N
SV2H-2B0N Thumbnail
SV2H-2B0B
SV2H-2B0B Thumbnail
SV2H-2F0N
SV2H-2F0N Thumbnail
SV2H-2F0B
SV2H-2F0B Thumbnail
SV2C-PA18-03FN
SV2C-PA18-03FN Thumbnail
SV2C-PA18-05FN
SV2C-PA18-05FN Thumbnail
SV2C-PA18-10FN
SV2C-PA18-10FN Thumbnail
SV2C-PA18-20FN
SV2C-PA18-20FN Thumbnail
SV2C-PB18-05NB
SV2C-PB18-05NB Thumbnail
SV2C-PB18-03NB
SV2C-PB18-03NB Thumbnail
SV2C-PB18-20FB
SV2C-PB18-20FB Thumbnail
SV2C-PB18-10FB
SV2C-PB18-10FB Thumbnail
SV2C-PB18-05FB
SV2C-PB18-05FB Thumbnail
SV2C-PB18-03FB
SV2C-PB18-03FB Thumbnail
SV2C-PA18-20NN
SV2C-PA18-20NN Thumbnail
SV2C-PA18-10NN
SV2C-PA18-10NN Thumbnail
SV2C-PA18-05NN
SV2C-PA18-05NN Thumbnail
SV2C-PA18-03NN
SV2C-PA18-03NN Thumbnail
SV2C-PB18-10NB
SV2C-PB18-10NB Thumbnail
SV2C-PB18-20NB
SV2C-PB18-20NB Thumbnail
SV2C-PC16-03FN
SV2C-PC16-03FN Thumbnail
SV2C-PC16-05FN
SV2C-PC16-05FN Thumbnail
SV2C-PC16-10FN
SV2C-PC16-10FN Thumbnail
SV2C-PC16-20FN
SV2C-PC16-20FN Thumbnail
SV2C-PC16-03NN
SV2C-PC16-03NN Thumbnail
SV2C-PC16-05NN
SV2C-PC16-05NN Thumbnail
SV2C-PC16-10NN
SV2C-PC16-10NN Thumbnail
SV2C-PC16-20NN
SV2C-PC16-20NN Thumbnail
SV2C-PC12-05FN
SV2C-PC12-05FN Thumbnail
SV2C-PC12-03FN
SV2C-PC12-03FN Thumbnail
SV2C-PC16-20NB
SV2C-PC16-20NB Thumbnail
SV2C-PC16-10NB
SV2C-PC16-10NB Thumbnail
SV2C-PC16-05NB
SV2C-PC16-05NB Thumbnail
SV2C-PC16-03NB
SV2C-PC16-03NB Thumbnail
SV2C-PC16-20FB
SV2C-PC16-20FB Thumbnail
SV2C-PC16-10FB
SV2C-PC16-10FB Thumbnail
SV2C-PC16-05FB
SV2C-PC16-05FB Thumbnail
SV2C-PC16-03FB
SV2C-PC16-03FB Thumbnail
SV2C-PC12-10FN
SV2C-PC12-10FN Thumbnail
SV2C-PC12-20FN
SV2C-PC12-20FN Thumbnail
SV2C-PC12-03NN
SV2C-PC12-03NN Thumbnail
SV2C-PC12-05NN
SV2C-PC12-05NN Thumbnail
SV2C-PC12-10NN
SV2C-PC12-10NN Thumbnail
SV2C-PC12-20NN
SV2C-PC12-20NN Thumbnail
SV2C-PC12-03FB
SV2C-PC12-03FB Thumbnail
SV2C-PC12-05FB
SV2C-PC12-05FB Thumbnail
SV2C-PC12-10FB
SV2C-PC12-10FB Thumbnail
SV2C-PC12-20FB
SV2C-PC12-20FB Thumbnail
SV2C-PD12-05NN
SV2C-PD12-05NN Thumbnail
SV2C-PD12-03NN
SV2C-PD12-03NN Thumbnail
SV2C-PD12-20FN
SV2C-PD12-20FN Thumbnail
SV2C-PD12-10FN
SV2C-PD12-10FN Thumbnail
SV2C-PD12-05FN
SV2C-PD12-05FN Thumbnail
SV2C-PD12-03FN
SV2C-PD12-03FN Thumbnail
SV2C-PC12-20NB
SV2C-PC12-20NB Thumbnail
SV2C-PC12-10NB
SV2C-PC12-10NB Thumbnail
SV2C-PC12-05NB
SV2C-PC12-05NB Thumbnail
SV2C-PC12-03NB
SV2C-PC12-03NB Thumbnail
SV2C-PD12-10NN
SV2C-PD12-10NN Thumbnail
SV2C-PD12-20NN
SV2C-PD12-20NN Thumbnail
SV2C-PD12-03FB
SV2C-PD12-03FB Thumbnail
SV2C-PD12-05FB
SV2C-PD12-05FB Thumbnail
SV2C-PD12-10FB
SV2C-PD12-10FB Thumbnail
SV2C-PD12-20FB
SV2C-PD12-20FB Thumbnail
SV2C-PD12-03NB
SV2C-PD12-03NB Thumbnail
SV2C-PD12-05NB
SV2C-PD12-05NB Thumbnail
SV2C-PD12-10NB
SV2C-PD12-10NB Thumbnail
SV2C-PD12-20NB
SV2C-PD12-20NB Thumbnail
SV2C-PD08-05FB
SV2C-PD08-05FB Thumbnail
SV2C-PD08-03FB
SV2C-PD08-03FB Thumbnail
SV2C-PD08-20NN
SV2C-PD08-20NN Thumbnail
SV2C-PD08-10NN
SV2C-PD08-10NN Thumbnail
SV2C-PD08-05NN
SV2C-PD08-05NN Thumbnail
SV2C-PD08-03NN
SV2C-PD08-03NN Thumbnail
SV2C-PD08-20FN
SV2C-PD08-20FN Thumbnail
SV2C-PD08-10FN
SV2C-PD08-10FN Thumbnail
SV2C-PD08-05FN
SV2C-PD08-05FN Thumbnail
SV2C-PD08-03FN
SV2C-PD08-03FN Thumbnail
SV2C-PD08-10FB
SV2C-PD08-10FB Thumbnail
SV2C-PD08-20FB
SV2C-PD08-20FB Thumbnail
SV2C-PD08-03NB
SV2C-PD08-03NB Thumbnail
SV2C-PD08-05NB
SV2C-PD08-05NB Thumbnail
SV2C-PD08-10NB
SV2C-PD08-10NB Thumbnail
SV2C-PD08-20NB
SV2C-PD08-20NB Thumbnail
SV2C-PF06-03FN
SV2C-PF06-03FN Thumbnail
SV2C-PF06-05FN
SV2C-PF06-05FN Thumbnail
SV2C-PF06-10FN
SV2C-PF06-10FN Thumbnail
SV2C-PF06-20FN
SV2C-PF06-20FN Thumbnail
SV2C-PF04-05NN
SV2C-PF04-05NN Thumbnail
SV2C-PF04-03NN
SV2C-PF04-03NN Thumbnail
SV2C-PF04-20FN
SV2C-PF04-20FN Thumbnail
SV2C-PF04-10FN
SV2C-PF04-10FN Thumbnail
SV2C-PF04-05FN
SV2C-PF04-05FN Thumbnail
SV2C-PF04-03FN
SV2C-PF04-03FN Thumbnail
SV2C-PF06-20NN
SV2C-PF06-20NN Thumbnail
SV2C-PF06-10NN
SV2C-PF06-10NN Thumbnail
SV2C-PF06-05NN
SV2C-PF06-05NN Thumbnail
SV2C-PF06-03NN
SV2C-PF06-03NN Thumbnail
SV2C-PF04-10NN
SV2C-PF04-10NN Thumbnail
SV2C-PF04-20NN
SV2C-PF04-20NN Thumbnail
SV2C-B120-03FB
SV2C-B120-03FB Thumbnail
SV2C-B120-05FB
SV2C-B120-05FB Thumbnail
SV2C-B120-10FB
SV2C-B120-10FB Thumbnail
SV2C-B120-20FB
SV2C-B120-20FB Thumbnail
SV2C-B120-03NB
SV2C-B120-03NB Thumbnail
SV2C-B120-05NB
SV2C-B120-05NB Thumbnail
SV2C-B120-10NB
SV2C-B120-10NB Thumbnail
SV2C-B120-20NB
SV2C-B120-20NB Thumbnail
SV2C-E222-05FN
SV2C-E222-05FN Thumbnail
SV2C-E222-03FN
SV2C-E222-03FN Thumbnail
SV2C-E122-20NN
SV2C-E122-20NN Thumbnail
SV2C-E122-10NN
SV2C-E122-10NN Thumbnail
SV2C-E122-05NN
SV2C-E122-05NN Thumbnail
SV2C-E122-03NN
SV2C-E122-03NN Thumbnail
SV2C-E122-20FN
SV2C-E122-20FN Thumbnail
SV2C-E122-10FN
SV2C-E122-10FN Thumbnail
SV2C-E122-05FN
SV2C-E122-05FN Thumbnail
SV2C-E122-03FN
SV2C-E122-03FN Thumbnail
SV2C-E222-10FN
SV2C-E222-10FN Thumbnail
SV2C-E222-20FN
SV2C-E222-20FN Thumbnail
SV2C-E222-03NN
SV2C-E222-03NN Thumbnail
SV2C-E222-05NN
SV2C-E222-05NN Thumbnail
SV2C-E222-10NN
SV2C-E222-10NN Thumbnail
SV2C-E222-20NN
SV2C-E222-20NN Thumbnail
SV2-CN1-CBL50
SV2-CN1-CBL50 Thumbnail
SV2-CN1-CBL50-1
SV2-CN1-CBL50-1 Thumbnail
SV2-CN1-CBL50-2
SV2-CN1-CBL50-2 Thumbnail
SV2-CN1-RTB50
SV2-CN1-RTB50 Thumbnail
SV2-BBOX-1
SV2-BBOX-1 Thumbnail
SV2-CN3-TR2
SV2-CN3-TR2 Thumbnail
SV2-CN3-CON-2
SV2-CN3-CON-2 Thumbnail
SV2-TOR1
SV2-TOR1 Thumbnail
SV2-CM-ENETIP
SV2-CM-ENETIP Thumbnail
SV2-CM-MODTCP
SV2-CM-MODTCP Thumbnail
SV2-PRO
SV2-PRO Thumbnail
SV2-PGM-USB30
SV2-PGM-USB30 Thumbnail
SV2-PGM-USB15
SV2-PGM-USB15 Thumbnail
SV2-CN1-LTB20
SV2-CN1-LTB20 Thumbnail
SV2-BBOX-CBL
SV2-BBOX-CBL Thumbnail
ZL-HD15M-CBL-2P
ZL-HD15M-CBL-2P Thumbnail
ZL-HD15M-CBL-DB15F
ZL-HD15M-CBL-DB15F Thumbnail
GSDA-DP
GSDA-DP Thumbnail
GSDA-5K
GSDA-5K Thumbnail
SV2-CON-KIT
SV2-CON-KIT Thumbnail
SV2-CN1-CON
SV2-CN1-CON Thumbnail
SV2-CN10-STO
SV2-CN10-STO Thumbnail
SV2C-PA-CON
SV2C-PA-CON Thumbnail
SV2C-PB-CON
SV2C-PB-CON Thumbnail
SV2C-E3-CON
SV2C-E3-CON Thumbnail
SV2C-E2-CON
SV2C-E2-CON Thumbnail
SV2C-E1-CON
SV2C-E1-CON Thumbnail
SV2C-B1-CON
SV2C-B1-CON Thumbnail
SV2C-PF-CON
SV2C-PF-CON Thumbnail
SV2C-PD-CON
SV2C-PD-CON Thumbnail
SV2C-PC-CON
SV2C-PC-CON Thumbnail
SV2A-4040
SV2A-4040 Thumbnail
SV2A-4075
SV2A-4075 Thumbnail
SV2A-4150
SV2A-4150 Thumbnail
SV2A-4200
SV2A-4200 Thumbnail
SV2A-4300
SV2A-4300 Thumbnail
SV2A-4550
SV2A-4550 Thumbnail
SV2A-4750
SV2A-4750 Thumbnail
SV2A-4F00
SV2A-4F00 Thumbnail
SV2L-404N
SV2L-404N Thumbnail
SV2L-404B
SV2L-404B Thumbnail
SV2L-407N
SV2L-407N Thumbnail
SV2L-407B
SV2L-407B Thumbnail
SV2L-410N
SV2L-410N Thumbnail
SV2L-410B
SV2L-410B Thumbnail
SV2M-410N
SV2M-410N Thumbnail
SV2M-410B
SV2M-410B Thumbnail
SV2L-415N
SV2L-415N Thumbnail
SV2L-415B
SV2L-415B Thumbnail
SV2L-420N
SV2L-420N Thumbnail
SV2L-420B
SV2L-420B Thumbnail
SV2H-430N
SV2H-430N Thumbnail
SV2H-430B
SV2H-430B Thumbnail
SV2H-445N
SV2H-445N Thumbnail
SV2H-445B
SV2H-445B Thumbnail
SV2H-455N
SV2H-455N Thumbnail
SV2H-455B
SV2H-455B Thumbnail
SV2H-475N
SV2H-475N Thumbnail
SV2H-475B
SV2H-475B Thumbnail
SV2H-4B0N
SV2H-4B0N Thumbnail
SV2H-4B0B
SV2H-4B0B Thumbnail
SV2H-4F0N
SV2H-4F0N Thumbnail
SV2H-4F0B
SV2H-4F0B Thumbnail
SV2-FAN-1
SV2-FAN-1 Thumbnail
SV2-FAN-2
SV2-FAN-2 Thumbnail
SV2-FAN-3
SV2-FAN-3 Thumbnail
SV2-FAN-4
SV2-FAN-4 Thumbnail
SV2-FAN-5
SV2-FAN-5 Thumbnail
SV2-FAN-6
SV2-FAN-6 Thumbnail
SV2-FAN-7
SV2-FAN-7 Thumbnail
SV2-FAN-8
SV2-FAN-8 Thumbnail
SV2C-PF08-03NN
SV2C-PF08-03NN Thumbnail
SV2C-PF08-05NN
SV2C-PF08-05NN Thumbnail
SV2C-PF08-10NN
SV2C-PF08-10NN Thumbnail
SV2C-PF08-20NN
SV2C-PF08-20NN Thumbnail
SV2C-PF08-03FN
SV2C-PF08-03FN Thumbnail
SV2C-PF08-05FN
SV2C-PF08-05FN Thumbnail
SV2C-PF08-10FN
SV2C-PF08-10FN Thumbnail
SV2C-PF08-20FN
SV2C-PF08-20FN Thumbnail
SV-PRO
SV-PRO Thumbnail


To learn more: https://www.AutomationDirect.com/servos?utm_source=sx7OJBr-SPo&utm_medium=VideoTeamDescription

(VID-SV-0068)

Learn how to communicate with a SureServo2 Drive via Modbus RTU. In this video we'll use an AutomationDirect CLICK PLC and show you how to setup both the PLC and the Servo Drive for Modbus RTU communications so you can control and monitor the SureServo servo System via your PLC.

Online Support Page: https://community.automationdirect.com/s/?utm_source=sx7OJBr-SPo&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

We want a CLICK PLC to talk to a Sure Servo2 Drive over Modbus RTU. To do that, we just wire the CLICK’s 485 serial port to the Sure Servo 2 Drive’s RJ45 port like this. I just took an old Ethernet patch cord, cut one end off and for me it turned out to be the blue pair of wires that got me to the correct pins on the drive with the blue white wire being the plus signal. I didn’t connect the ground for our quick little demo. You will probably want to connect the ground for your application. Finally, since this is the only thing on the 485 network, you’ll want to terminate the RS485 wires at the drive with 120 ohms. You can make your own or use this handy port splitter. Put your RJ45 cable in one side and this 120-ohm resistor plug in the other and then plug that into connector CN3 on the drive. The cable is now properly terminated on this end of the 485 network. You could also use that port splitter to daisy chain multiple drives. Normally you will want another 120-ohm resistor here. I didn’t do that for this little demo because the cable is so short. I have this drive setup in position register mode to rotate this disk back and forth. In the position register video we learned that to trigger the path we could use the Free Sure Servo 2 Pro software to simply enter which path we wanted to start with here. And all that did was write that path number to Parameter 5.007. We could also enable and disable the servo by clicking on this guy. All that does is write to parameter 2.030. So let’s do that via Modbus RTU – we’ll enable the servo, trigger the path, and disable the servo. Let’s also read the current firmware version of the drive just to give us something to read via Modbus RTU. That’s at parameter 0.0. In the CLICK software I have already selected and connected to the PLC we are using. Let’s read the Firmware version first. We’ll have the rising edge of contact C1 … RECEIVE … from port 3 which is the 485 port on this PLC … a Modbus command. We need to setup the serial port. Again, we are using the 485 port and Modbus protocol. The Sure Servo2 drive defaults to address 127, so this PLC’s address can be anything else. We’ll leave it at address 1. Normally you would configure the drive to match your RS485 network settings. We don’t have a network setup, so we’ll just make the PLC match the drive’s default settings, which you can find in these parameters. The rest of this stuff is fine for most applications. Great! Our com port is setup. We want to read a register from the drive, and its default address is 127 and since we haven’t changed that, we’ll put that here. You would put whatever your drives address is here. We want to read a register using ModBus protocol. And we want to read the firmware version. In the user manual we see that is Parameter 0.0, it’s located at an offset of 0 and it’s two 16-bit registers. In fact, ALL Sure Servo 2 parameters are 32 bits or two holding registers wide which makes your programming super easy because you don’t have to figure out how many holding registers each parameter uses – every parameter in the Sure Servo 2 drive is 32 bits or two 16 bit holding registers wide. It’s the little things like that, that make working with the Sure Servo System so much easier. The CLICK starts ModBus addressing at this address so we just add the offset to the parameter we want, which is zero in this case, and put that here. We need to put the two 16 bit words into a double word so we’ll put that in DD1. And we’re only reading the one item. I’ll add some status bits, so we can see what’s going on if we need to. And Let’s a comment to remind us what we were doing. Let’s add an END and transfer this to the PLC. I’ll assuming you know how to do that. Let’s bring up a data view and add C1 so we can toggle the firmware version read command and see the result in DD1. The PLC is running so I’ll toggle this and sure enough we get the firmware version from the drive. Which we can compare with parameter 0.00 on the drives keypad. Yep. Same answer. Perfect. Ok, let’s write to the drive. Our plan is enable the servo, trigger a position register path that we already setup in the drive, and disable the servo. So, let’s have the rising edge of C2 … SEND … via port 3 – the RS-485 port on this PLC – using ModBus protocol. And that COM port is already setup from the previous read command so we can skip that. We want to send to the drive at address 127 – again, that’s just the drive’s default address, you would put your drive’s address here. We want to write a single register, using ModBus protocol. We want to write to parameter 2.030 which is at a ModBus off set of 23C hex so we bring up our handy windows calculator, switch it to programmer mode and select hexadecimal and enter that offset. Switch to decimal mode, add the ModBus base address of 400001 and copy that number … and put that here as the ModBus address we want to write to. We want to write a 1, which we will put in DS100. And I’ll create some status bits for that guy … hit OK and add a comment so we can remember what this guy’s doing. Next we want to write to parameter 5.007 to trigger the path. That will be very similar to what we just did so I’ll copy that whole rung and paste it here. Update the comment. Let’s change the contact to C3 and then modify the ModBus write. Everything here is the same except we want to write to parameter 5.007. So we go to the user manual and see that is at this hex address offset. Put that in the windows calculator, switch to decimal and add in the ModBus Base Address. Copy that and put that here so we are writing to parameter 5.007. Let’s send the value in DS101, and I’ll modify the status bits. Turning the servo off is identical to turning it on so I’ll copy that rung and paste it here. Update the comment. Change the toggle bit to C4 and edit the instruction. Everything in here is identical except we want to write a minus 1 which we will put in register DS102 and lets change the status bits here too. We over wrote our End instruction so I’ll add that back in. I’ll compile and transfer to the PLC. I went ahead and added the new elements to our data view and gave everything names to make things easier to read. We need to write a 1 to turn the servo on, a 1 to trigger the position register mode path and a minus one to turn the servo off. The panel switch says the servo is off, and I can verify the servo is not controlling the motor because I can rotate the disk. If I toggle the servo enable bit, sure enough the servo is enabled and holding that position – if I try and turn it, the drive forces it back to position. So the servo is definitely on even though we haven’t thrown the panel switch and there is no real indication on the drive. It’s important to remember that just because this command returned a successful result, it doesn’t mean the servo was actually enabled. If you want to verify the servo is enabled via ModBus, read parameter 0.046. Bit 1 tells you if the servo is active. And there’s a bunch of other things you can check out there too. OK, let’s tell the Position Register mode to start at path 1 by triggering that rung and sure enough the servo drive starts executing the back and forth path I programmed in to it. If we were to read parameter 5.007, we could monitor the status of the path. If the command is in process you get the path it is executing. If the command is complete, then you get the path plus 10,000, if the target position is reached then you get the path plus 20,000. You can also write a 1000 to disable the path. In our demo, we’ll just trigger the SERVO OFF command. We see the position register mode turned off and the motor is no longer being controlled by the drive. There is one thing you need to be aware of. When you issue a ModBus write, it’s just like entering the parameter from the drives keypad – that is, any retentive parameter gets written into the drives EEPROM. The problem is with ModBus you can issue a LOT of commands in a very short period of time which can quickly use up the useful life of the EEPROM. So whenever you use ModBus to control the drive it’s a really good idea to write a 5 to parameter 2.030. That tells the drive not to store any ModBus commands in EEPROM. Of course, that means anything written via ModBus won’t be retentive. If you do want something to be retentive, just write a -5 to Parameter 2.030 to turn this feature off. Write the retentive parameters, and then turn the feature back on by writing a 5 to Parameter 2.030. Now that you see how to read and write SureServo2 drive parameters via ModBus RTU, you now have full access to the drive and can do pretty much anything you would normally do from the Sure Servo2 Pro software or the drive’s keypad. Click here to learn more about the Sure Servo 2 System and to find more videos like this one. Click here to subscribe to our YouTube channel so you will be notified when we publish new videos like this and click here to learn about AutomationDirect’s free award-winning support options.



No data returned!
An error has occurred! Please contact support
Videos Home > SureServo2 Modbus RTU with a CLICK PLC from AutomationDirect
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info
„