Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set 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 time-out as 100ms Sending request X0 Set communication instruction: D Data address: H2101 D ata length: 6 words evice address: 01 PLC converts the received ASCII data in D1070~D1085 into Hex data and stores them into D1050~D1055 M1127 Processing received data Receiving completed Reset M1127 PLC  VFD-B , PLC transmits: “01 03 2101 0006 D4” VFD-B  PLC , PLC receives:

“01 03 0C 0100 1766 0000 0000 0136 0000 3B” Registers for data to be sent (sending messages) 3-287 MOV H87 D1120 SET M1120 MOV K100 D1129 SET M1122 MODRD K1 H2101 K6 RST M1127 Register Data Descriptions D1089 low byte ‘0’ 30 H ADR 1 ADR 0 Address of AC motor drive: ADR (1,0) D1089 high byte ‘1’ 31 H D1090 low byte ‘0’ 30 H CMD 1 CMD 0 Command code: CMD (1,0) D1090 high byte ‘3’ 33 H D1091 low byte 2’ 32 H Starting data address D1091 high byte ‘1’ 31 H D1092 low byte ‘0’ 30 H D1092 high byte ‘1’ 31 H D1093 low byte ‘0’ 30 H Number of data (count by word) D1093 high byte ‘0’ 30 H D1094 low byte ‘0’ 30 H D1094 high byte ‘6’ 36 H D1095 low byte ‘D’ 44 H LRC CHK 1 LRC CHK 0 Checksum:

LRC CHK (0,1) D1095 high byte ‘4’ 34 H