DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Program Example 1: Communication between PLC and VFD-B series AC motor drives (ASCII Mode, M1143 = OFF) M1002 Set communication protocol as 9600, 8, E, 1 Retain communication protocol X1 Set receiving timeout as 100ms Sending request X0 Set communication instruction: Data address: H0100 Data: H1770 Device address: 01 M1127 Processing received data The received data is stored in D1070~D1085 in ASCII format. Receiving completed Reset M1127 PLC VFD-B, PLC transmits: “01 06 0100 1770 71 ” VFD-B PLC, PLC receives:
“01 06 0100 1770 71 ” Registers for data to be sent (sending messages) 3-292 MOV H87 D1120 SET M1120 MOV K100 D1129 SET M1122 MODWR K1 H0100 H1770 RST M1127 Register Data Descriptions D1089 low ‘0’ 30 H ADR 1 ADR 0 Address of AC motor drive: ADR (1,0) D1089 high ‘1’ 31 H D1090 low ‘0’ 30 H CMD 1 CMD 0 Command code of AC motor drive: CMD (1,0) D1090 high ‘6’ 36 H D1091 low ‘0’ 30 H Data address D1091 high ‘1’ 31 H D1092 low ‘0’ 30 H D1092 high ‘0’ 30 H D1093 low ‘1’ 31 H Data contents D1093 high ‘7’ 37 H D1094 low ‘7’ 37 H D1094 high ‘0’ 30 H D1095 low ‘7’ 37 H LRC CHK 1 Checksum: LRC CHK (0,1) D1095 high ‘1’ 31 H LRC CHK 0