DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Program Example 3: 1. In the communication between PLC and VFD-B series AC motor drive (ASCII Mode, M1143 = OFF), executes Retry when communication time-out, data receiving error or parameter error 2. When X0 = ON, PLC will read the data of address H2100 in device 01(VFD-B) and stores the occurs. data in ASCII format in D1070 ~ D1085. PLC will automatically convert the data and store them in D1050 ~ D1055. 3. M1129 will be ON when communication time-out occurs. The program will trigger M1129 and send request for reading the data again. 4. M1140 will be ON when data receiving error occurs.
The program will trigger M1140 and send request for reading the data again. 5. M1141 will be ON when parameter error occurs. The program will trigger M1141 and send request for reading the data again. M1002 Set communication protocol as 9600, 8, E, 1 Retain communication protocol X0 Set communication time-out as 100ms Sending request M1129 Retry when communication time-out occurs M1140 Retry when data receiving error occurs M1141 Retry when parameter error occurs X0 Set communication instruction: Data address: Data length: 6 words H2100 Device address:
01 Receiving completed M1127 Handle received data The received ASCII data is stored in D1070-D1085 and PLC converts the data and store them into D1050-D1055 automatically. M1129 Reset M1127 Reset M1129 (receiving timeout) 3-290 MOV H87 D1120 SET M1120 MOV K100 D1129 SET M1122 MODRD K1 H2100 K 6 RST M1127 RST M1129