Delta DVP-ES2 User Manual
Page 462
D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g
3 - 3 4 6
Register
Data
Descriptions
D1074 Low byte
FF H
D1075 Low byte
00 H
Data content (ON = FF00H)
D1076 Low byte
8C H
CRC CHK Low
D1077 Low byte
F6 H
CRC CHK High
Program example 6: COM1(RS-232) / COM3(RS-485), Function Code H05
1.
Function Code K5 (H05): Force ON/OFF bit device.
2.
PLC1 connects PLC2: (M1320 = OFF, ASCII Mode ), (M1320 = ON, RTU Mode)
3.
n = 1 indicates Force ON (set FF00H) and n = 0 indicates Force OFF (set 0000H)
4.
PLC COM1/COM3 will not process the received data.
5.
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
H87
M OV
M 1002
D1109
SET
M 1136
K100
M OV
D1252
M ODRW
K5
K1
X0
H0500
D0
K1
Function Code K5:
Force ON/OFF bit device
Reserved
Force ON status (Set FF00H)
SET
X0
M 1316
RST
M 1320
SET
M 1320
Connection device address: K1
Data address : Y0 = H0500
M1320 = OFF
ASCII mode
Set communication protocol as 9600,8,E,1
Retain communication protocol
Set receiving timeout as 100ms
Sending request
M1320 = ON
RTU
mode
RST
M 1318
M 1318
Reset M1318
ASCII m ode: No processing on received data .
RTU m ode: No processing on received data .
Received data
Receiving completed