Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 3. In ASCII or RTU mode, when PLC’s COM2 sends out data, the data will be stored in D1256~D1295. The feedback data will be stored in registers starting with S and converted into D1296~D1311 in Hex automatically. 4. Take the connection between PLC1 (PLC COM2) and PLC2(PLC COM1) for example, the tables below explains the status when PLC1 reads Y0~Y17 of PLC2.

M1002 Set communication protocol as 9600, 8, E, 1 Retain communication protocol Set communication timeout as 100ms M1143 = OFF ASCII mode M1143 = ON RTU mode X0 Sending request X0 Data length (bit) Data address Y0=H0500 Data storing register Function code K2 read multiple bits Receiving completed Connection device address K1 M1127 Processing received data ASCII mode: The received data is stored in registers starting from D0 in ASCII format and PLC converts the content to hexadecimal automatically. registers D1296~D1311 in RTU mode: The received data is stored in registers starting from D0 in Hex. Reset M1127 ASCII Mode (M1143 = OFF):

When X0 = ON, MODRW instruction executes the function specified by Function Code 02. PLC1  PLC2 , PLC1 sends: “ 01 02 0500 0010 E8 ” PLC2  PLC1 , PLC1 receives: “01 02 02 3412 B5 ” Registers for data to be sent (sending messages) 3-366 MOV H87 D1120 SET M1120 MOV K100 D1129 RST M1143 SET M1143 SET M1122 MODRW K1 K2 H0500 D0 K16 RST M1127 Register Data Descriptions D1256 Low ‘0’ 30 H ADR 1 ADR 0 Device address: ADR (1,0) D1256 High ‘1’ 31 H D1257 Low ‘0’ 30 H CMD 1 CMD 0 Control parameter:

CMD (1,0) D1257 High ‘2’ 32 H D1258 Low ‘0’ 30 H Y0 = H0500 Starting Data Address D1258 High ‘5’ 35 H D1259 Low ‘0’ 30 H D1259 High ‘0’ 30 H D1260 Low ‘0’ 30 H Number of Data(count by bit) D1260 High ‘0’ 30 H D1261 Low ‘1’ 31 H D1261 High ‘0’ 30 H D1262 Low ‘E’ 45 H LRC CHK 1 Checksum: LRC CHK (0,1) D1262 High ‘8’ 38 H LRC CHK 0