Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming M1002 Set communication protocol as 9600,8,E,1 Retain communication protocol Set receiving timeout as 100ms M1143 = OFF ASCII mode M1143 = ON RTU mode X0 Sending request X0 Force ON status (Set FF00H) Reserved Function Code K5: Force ON/OFF bit device Data address : Y0 = H0500 Receiving completed Connection device address: K1 M1127 Processing received data ASCII mode: The received data is stored in D1070~D1085 in ASCII format RTU mode: The received data is stored in D1070~D1085 in Hex. Reset M1127 ASCII mode (M1143 = OFF): When X0 = ON, MODRW instruction executes the function specified by Function Code 05 PLC1  PLC2, PLC sends:

“ 01 05 0500 FF00 6F ” PLC2  PLC1, PLC receives: “ 01 05 0500 FF00 6F ” Registers for data to be sent (sending messages) 3-376 MOV H87 D1120 SET M1120 MOV K100 D1129 RST M1143 SET M1143 SET M1122 MODRW K1 K5 H0500 D0 K1 RST M1127 Register Data Descriptions D1256 low byte ‘0’ 30 H ADR 1 ADR 0 Device address:

ADR (1,0) D1256 high byte ‘1’ 31 H D1257 low byte ‘0’ 30 H CMD 1 CMD 0 CMD (1,0) Control parameter D1257 high byte ‘5’ 35H D1258 low byte ‘0’ 30 H Data Address D1258 high byte ‘5’ 35 H D1259 low byte ‘0’ 30 H D1259 high byte ‘0’ 30 H D1260 low byte ‘F’ 46 H High byte to be force ON/OFF D1260 high byte ‘F’ 46 H D1261 low byte ‘0’ 30H Low byte to be force ON/OFF D1261 high byte ‘0’ 30 H D1262 low byte ‘6’ 36 H LRC CHK 1 LRC CHK 0 Checksum: LRC CHK (0,1) D1262 high byte ‘F’ 46 H