Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set Program Example: Connect PLC to VFD series AC motor drive (ASCII mode, M1143 = OFF), (8-bit mode, M1161 = ON), Write the data to be sent into registers starting from D100 in advance for reading 6 data from address H0708 on VFD. M1002 Set up communication protocol to 9600, 7, E, 1 Retain communication protocol Sending request pulse Set up communication time-out: 100ms Write data to be sent in advance pulse Sending request X10 Receiving completed M1123 Processing received data Reset M1123 PLC  VFD, PLC sends: “:

01 03 07 08 0006 E7 CR LF ” Registers for sent data (sending messages) The error checksum LRC CHK (0, 1) can be calculated by LRC instruction (8-bit mode, M1161 = ON). 3-309 MOV H86 D1120 SET M1120 MOV K100 D1129 SET M1122 RS D100 K17 D120 K35 RST M1123 Register Data Explanation D100 low byte ‘: ’ 3A H STX D101 low byte ‘0’ 30 H ADR 1 ADR 0 Address of AC motor drive: ADR (1,0) D102 low byte ‘1’ 31 H D103 low byte ‘0’ 30 H CMD 1 CMD 0 Command code:

CMD (1,0) D104 low byte ‘3’ 33 H D105 low byte ‘0’ 30 H Starting data address D106 low byte ‘7’ 37 H D107 low byte ‘0’ 30 H D108 low byte ‘8’ 38 H D109 low byte ‘0’ 30 H Number of data (words) D110 low byte ‘0’ 30 H D111 low byte ‘0’ 30 H D112 low byte ‘6’ 36 H D113 low byte ‘E’ 45 H LRC CHK 0 LRC CHK 1 Error checksum: LRC CHK (0,1) D114 low byte ‘7’ 37 H D115 low byte CR D H END D116 low byte LF A H M1 000 LRC D101 K12 D113