3. Instruction Set d) The feedback data from the peripheral equipment will be stored in D1070 ~ D1080 After data receiving is completed, PLC will check if all data are correct automatically. If there is an error, M1142 will be ON. When n = 2, PLC will not receive any data. Program Example: COM2 (RS-485) 1. Communication between PLC and VFD-A series inverter. Retry for communication time-out and data receiving error. M1002 Set up communication protocol as 4800, 8, O, 1 Retain communication protocol X0 Set up communication time-out: 100ms M1129 Sending request Retry when receiving time-out occurs M1142 Retry when data receiving error Communication instruction setting: Device address:
0 Frequency: 500Hz K1: communicate with the designated VFD X0 Receiving completed M1127 Processing received data The received data is stored in low byte of D1070 ~ D1080 in ASCII format. Reset M1127 PLC VFD-A, PLC sends: “ C ♥ 0001 0500 ” VFD-A PLC, PLC receives: “ C ♥ ♠ 0001 0500 ” 3-297 MOV H0073 D1120 SET M1120 MOV K100 D1129 SET M1122 FWD K0 K500 K1 RST M1127