Directlogic Basic Communication Program - Start With This Code - AutomationDirect DURAPULSE Series User Manual

Ac drive
Table of Contents

Advertisement

DirectLOGIC 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.
This program is for illustrational purposes only, and is not intended for a true application.
This rung counts the number of times the PLC attempts to communicate to the drive.
SP116
1
CT0
This rung counts the number of times an attempted communication to the drive fails.
SP117
2
CT1
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.
SP116
3
4
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 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.
1st Ed. Rev. D
05/2013
Chapter 5: DURA
PULSE
DURA
PULSE
MODBUS Communications
CNT
CT0
K9999
CNT
CT1
K9999
LD
Kf201
LD
LDA
O2000
RX
V20400
(
AC Drive User Manual
K30
)
END
5–39

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DURAPULSE Series and is the answer not in the manual?

Table of Contents

Save PDF