Delta DVP-ES2 User Manual
Page 451
3 . I n s t r u c t i o n S e t
3 - 3 3 5
Register
Data
Descriptions
D1260 Low
00 H
D1261 Low
10 H
Number of Data (count by word)
D1262 Low
79 H
CRC CHK Low
D1263 Low
0A H
CRC CHK High
Registers for received data (responding messages)
Register
Data
Descriptions
D0
1234 H
PLC stores the value 1234H into D1296
D1 Low
02 H
Function
D2 Low
02 H
Number of Data (Byte)
D3 Low
34 H
D4 Low
12 H
Content of address
H0500~H0515
D5 Low
2F H
CRC CHK Low
D6 Low
75 H
CRC CHK High
Analysis of the read status of PLC2 Y0~Y17: 1234H
Device
Status
Device
Status
Device
Status
Device
Status
Y0 OFF Y1 OFF Y2 ON Y3 OFF
Y4 ON Y5 ON Y6 OFF
Y7 OFF
Y10 OFF Y11 ON Y12 OFF Y13 OFF
Y14 ON Y15 OFF Y16 OFF Y17 OFF
Program Example 2: COM1(RS-232) / COM3(RS-485), Function Code H02
1.
Function code K2 (H02): read multiple bit devices. Up to 64 bits can be read.
2.
PLC1 connects to PLC2: (M1320 = OFF, ASCII mode), (M1320 = ON, RTU mode)
3.
For both ASCII and RTU modes, PLC COM1/COM3 only stores the received data in registers
starting from S, and will not store the data to be sent. The stored data can be transformed and
moved by using DTM instruction for applications of other purposes.
4.
Take the connection between PLC1 (PLC COM3) and PLC2(PLC COM1) for example, the
tables below explains the status when PLC1 reads Y0~Y17 of PLC2
z
If PLC1 applies COM1 for communication, the below program can be usable by
changing:
1. D1109→D1036: communication protocol
2. M1136→M1138: retain communication setting
3. D1252→D1249: Set value for data receiving timeout
4. M1320→M1139: ASCII/RTU mode selection
5. M1316→M1312: sending request
6. M1318→M1314: receiving completed flag