9 Application Instructions API 150-199 M1002 Set up communication protocol 9600, 8, E, 1 Retain communication protocol Communication time-out 100ms M1143 X10 RTU mode X0 Set up sending request X0 Address of communi- cation device K1 Function code K3: read many data Data address H2100 Register for storing the data Data length (word) M1127 Process of received data ASCII mode: The r eceived data will be stored in the designated registers starting from D0 in ASCII format and PLC will automatically convert the data into hex value and store them in special registers D1296 ~ D1311. RTU mode: The r eceived data will be stored in the designated registers starting from D0 in hex format.
Sending/receiving of data is completed. The flag is reset. 9. ASCII Mode: When PLC is connected to VFD-S AC motor drive. PLC VFD-S, PLC sends: “01 03 2100 0006 D5” VFD-S PLC, PLC receives: “01 03 0C 0100 1766 0000 0000 0136 0000 3B” Registers for sent data (sending messages) Registers for received data D0 (responding messages) DVP-PLC Application Manual 9-9 MOV H87 D1120 SET M1120 MOV K100 D1129 SET M1122 MODRW K1 K3 H2100 D0 K6 RST M1127 Register DATA Explanation D1256 Low ‘0’ 30 H ADR 1 ADR 0 Address of AC motor drive: ADR (1,0) D1256 High ‘1’ 31 H D1257 Low ‘0’ 30 H CMD 1 CMD 0 Command code:
CMD (1,0) D1257 High ‘3’ 33 H D1258 Low ‘2’ 32 H Starting Data Address D1258 High ‘1’ 31 H D1259 Low ‘0’ 30 H D1259 High ‘0’ 30 H D1260 Low ‘0’ 30 H Number of Data (counted by words) D1260 High ‘0’ 30 H D1261 Low ‘0’ 30 H D1261 High ‘6’ 36 H D1262 Low ‘D’ 44 H LRC CHK 1 LRC CHK 0 Error checksum: LRC CHK (0,1) D1262 High ‘5’ 35 H Register DATA Explanation D0 Low ‘0’ 30 H ADR 1 D0 High ‘1’ 31 H ADR 0 D1 Low ‘0’ 30 H CMD 1 D1 High ‘3’ 33 H CMD 0