Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set 4. M1320→M1139: ASCII/RTU mode selection 5. M1316→M1312: sending request 6. M1318→M1314: receiving completed flag M1002 Set communication protocol as 9600, 8, E, 1 Retain communication protocol Set receiving timeout as 100ms M1320 = OFF ASCII mode M1320 = ON RTU mode X0 X0 Sending request Data storing register Data length(bit) Function code: K15 Write in multiple bit devices Data address: H0500 Connection device address: K1 Receiving completed M1318 Received data ASCII mode: No processing on received data . RTU mode: No processing on received data . Reset M1318 ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):

When X0 = ON, MODRW executes the function specified by Function Code H0F PLC1  PLC2, PLC sends: “ 01 0F 0500 0010 02 3412 93 ” (No data processing on received data) PLC2  PLC1, PLC receives: “ 01 0F 0500 0010 DB ” RTU mode (COM3: M1320 = ON, COM1: M1139 = ON): When X0 = ON, MODRW executes the function specified by Function Code H0F PLC1  PLC2, PLC1 sends: “ 01 0F 0500 0010 02 34 12 21 ED ” PLC2  PLC1, PLC1 receives: “ 01 0F 0500 0010 54 CB ” , (No data processing on received data) Program Example 11: COM2 (RS-485), Function Code H10 1. Function code K16 (H10): Write in multiple Word devices. Up to 16 Words can be written. For PLC COM2 ASCII mode, only 8 words can be written. 2.

For ASCII or RTU mode, PLC COM2 stores the data to be sent in D1256~D1295, and the received data in D1070~D1085. 3-385 MOV H87 D1109 SET M1136 MOV K100 D1252 RST M1320 SET M1320 SET M1316 MODRW K1 K15 H0500 D0 K16 RST M1318