5–39
Direct
LOGIC Basic Communication Program – start with this code
We recommend starting with the following program code, and using it to test
communication to each of your drives before adding more advanced code for
your application.
To target different drives, change the value Kf201 to Kf202 for slave 2, Kf203 for
slave 3, etc.
SP117 is a special relay in the DirectLOGIC CPUs that monitors the PLC’s
communications. SP117 is on when Port 2 has encountered a communication error.
SP116 is a special relay in the DirectLOGIC CPUs that monitors the PLC’s
communications. SP116 is on when Port 2 is communicating with another device.
SP117
CT1
CT1
K9999
CNT
2
Kf201
LD
V20400
RX
O2000
LDA
K30
LD
This rung counts the number of times an attempted communication to the drive fails.
3
SP116
This rung reads the ‘Status Addresses’ information from the drive.
Use this code to test communication to each of your drives before writing more
advanced code that polls multiple drives. To target different drives, change the
value ‘Kf201’ to ‘Kf202’ for slave 2, ‘Kf203’ for slave 3, etc.
4
CT0
K9999
CNT
1
This rung counts the number of times the PLC attempts to communicate to the drive.
SP116
(
)
END
CT0
This program is for illustrational purposes only, and is not intended for a true application.
Chapter 5:
DURA
PULSE
MODBUS Communications
DURA
PULSE
AC Drive User Manual
1st Ed. Rev. D 05/2013
Summary of Contents for DURAPULSE GS3-2010
Page 1: ...230V Class 1 50 Hp 460V Class 1 100 Hp User Manual AC Drive...
Page 2: ......
Page 6: ...w 4 DURAPULSE AC Drive User Manual 1st Ed Rev D 05 2013...
Page 8: ...Revision History DURAPULSE AC Drive User Manual h 2 BLANK PAGE...
Page 148: ...Chapter 4 AC Drive Parameters 4 80 DURAPULSE AC Drive User Manual 1st Ed Rev D 05 2013...
Page 241: ...DURAPULSE AC Drive User Manual A 1c Appendix A Accessories 1st Ed Rev D 05 2013...
Page 292: ...Appendix A Accessories DURAPULSE AC Drive User Manual A 52 BLANK PAGE 1st Ed Rev D 05 2013...
Page 314: ...Index i 8 DURAPULSE AC Drive User Manual 1st Ed Rev D 05 2013...
Page 315: ......
Page 316: ......