Delta DVP-ES2 User Manual
Page 469
3 . I n s t r u c t i o n S e t
3 - 3 5 3
Registers
for data to be sent (sending messages)
Register
Data
Descriptions
D1256 下 01
H
Address
D1257 下 0F
H
Function
D1258 下 05
H
D1259 下 00
H
Data Address
D1260 下 00
H
D1261 下 10
H
Number of Data(count by bit)
D1262 下
02 H
Byte Count
D1263 下
34 H
Data content 1
Content of D0: H34
D1264 下
12 H
Data content 2
Content of D1: H12
D1265 下
21 H
CRC CHK Low
D1266 下
ED H
CRC CHK High
Registers for received data (responding messages)
Register
Data
Descriptions
D1070 下 01
H
Address
D1071 下 0F
H
Function
D1072 下 05
H
D1073 下 00
H
Data Address
D1074 下 00
H
D1075 下 10H
Number of Data(count by bit)
D1076 下
54H
CRC CHK Low
D1077 下
CB H
CRC CHK High
Program example 10: COM1 (RS-232) / COM3 (RS-485), Function Code H0F
1.
Function code K15 (H0F): write in multiple bit devices. Up to 64 bits can be written
2.
PLC1 connects to PLC2: (M1143 = OFF, ASCII mode), (M1143 = ON, RTU mode)
3.
PLC COM1/COM3 will not process the received data.
4.
Take the connection between PLC1 (PLC COM3) and PLC2 (PLC COM1) for example, the
tables below explain the status when PLC1 force ON/OFF Y0~Y17 of PLC2.
Set value: K4Y0=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
z
If PLC applies COM1 for communication, the below program can be usable by changing:
1. D1109→D1036: communication protocol
2. M1136→M1138: retain communication setting