Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set Receiving data: (External equipment -> PLC) ETX1 ETX2 Registers for received data, starting from the lower 8 bits of D120 STX 3. The STX and ETX of external equipments will be received by PLC in data receiving process, therefore, care should be taken on the setting of operand n (Length of data to be received) Program Example 3: COM2 RS-485 1. Connect PLC to VFD-B series AC motor drives (AC motor drive in ASCII Mode; PLC in 16-bit mode and M1161 = OFF). 2.

Write the data to be sent into registers starting from D100 in advance in order to read 6 data starting from address H2101 on VFD-B M1002 Set up communication protocol as 9600,7,E,1 Retain communication protocol Set up communication time-out as 100ms Pulse for sending request Write transmitting data in advance Sending request X0 Receiving completed Processing received data M1123 Reset M1123 PLC  VFD-B, PLC sends “: 01 03 2101 0006 D4 CR LF “ VFD-B  PLC, PLC receives “:

01 03 0C 0100 1766 0000 0000 0136 0000 3B CR LF “ Registers for sent data (PLC sends out messages) 3-223 D120L D120H D121L D121H D122L D122H D123L MOV H86 D1120 SET M1120 MOV K100 D1129 SET M1122 RS D100 K17 D120 K35 RST M1123 Register Data Explanation D100 low ‘: ’ 3A H STX D100 high ‘0’ 30 H ADR 1 Address of AC motor drive: ADR (1,0) D101 low ‘1’ 31 H ADR 0 D101 high ‘0’ 30 H CMD 1 Instruction code: CMD (1,0) D102 low ‘3’ 33 H CMD 0 D102 high ‘2’ 32 H Start data address D103 low ‘1’ 31 H D103 high ‘0’ 30 H D104 low ‘1’ 31 H D104 high ‘0’ 30 H Number of data (counted by words) D105 low ‘0’ 30 H