DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 3. Take the connection between PLC COM2 and VFD-B AC motor drive for example, the tables below explain the status when PLC COM2 writes multiple word devices in VFD-B. M1002 Set communication protocol as 9600, 8, E, 1 Retain communication protocol Set communication timeout as 100ms M1143 = OFF ASCII mode M1143 = ON RTU mode X0 Sending request X0 Data length(word) Data storing register Function code: K16 write in multiple Words Data address: H2000 Receiving completed M1127 Connection device address: K1 Processing received data ASCII mode: The received data is stored in D1070~D1085 in ASCII format RTU mode:
The received data is stored in D1070~D1085 in Hex Reset M1127 ASCII mode (M1143 = OFF) When X0 = ON, MODRW instruction executes the function specified by Function Code H10 PLC VFD-B, PLC transmits: “01 10 2000 0002 04 1770 0012 30” VFD PLC, PLC receives: “01 10 2000 0002 CD” Registers for data to be sent (sending messages) 3-386 MOV H87 D1120 SET M1120 MOV K100 D1129 RST M1143 SET M1143 SET M1122 MODRW K1 K16 H2000 D50 K2 RST M1127 Register Data Descriptions D1256 Low byte ‘0’ 30 H ADR 1 ADR 0 Address of VFD: ADR (1,0) D1256 High byte ‘1’ 31 H D1257 Low byte ‘1’ 31 H CMD 1 CMD 0 Control parameter:
CMD (1,0) D1257 High byte ‘0’ 30 H D1258 Low byte ‘2’ 32 H Data Address D1258 High byte ‘0’ 30 H D1259 Low byte ‘0’ 30 H D1259 High byte ‘0’ 30 H D1260 Low byte ‘0’ 30 H Number of Register D1260 High byte ‘0’ 30 H D1261 Low byte ‘0’ 30 H D1261 High byte ‘2’ 32 H D1262 Low byte ‘0’ 30 H Byte Count D1262 High byte ‘4’ 34 H D1263 Low byte ‘1’ 31 H Data contents 1 The content of register D50: H1770(K6000) D1263 High byte ‘7’ 37 H