Delta DVP-ES2 User Manual
Page 460
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 4
H87
M OV
M1002
D1120
SET
M1120
K100
MOV
D1129
RST
M 1127
M ODRW
K5
K1
X0
H0500
D0
K1
Function Code K5:
Force ON/OFF bit device
Reserved
Force ON status (Set FF00H)
M1127
SET
X0
M 1122
RST
M1143
SET
M1143
Connection device address: K1
Data address : Y0 = H0500
M1143 = OFF
ASCII mode
Reset M1127
Set communication protocol as 9600,8,E,1
Retain communication protocol
Set receiving timeout as 100ms
ASCII mode: The received data is stored in D1070~D1085 in A SCII format
RTU mode: The received data is stored in D1070~ D1085 in Hex.
Sending request
Pr ocessing received data
M1143 = ON
RTU
mode
Receiving completed
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)
Register
Data
Descriptions
D1256 low byte
‘0’
30 H ADR 1
D1256 high byte
‘1’
31 H ADR 0
Device address: ADR (1,0)
D1257 low byte
‘0’
30 H CMD 1
D1257 high byte
‘5’
35H CMD 0
CMD (1,0) Control parameter
D1258 low byte
‘0’
30 H
D1258 high byte
‘5’
35 H
D1259 low byte
‘0’
30 H
D1259 high byte
‘0’
30 H
Data Address
D1260 low byte
‘F’
46 H
D1260 high byte
‘F’
46 H
High byte to be force ON/OFF
D1261 low byte
‘0’
30H
D1261 high byte
‘0’
30 H
Low byte to be force ON/OFF
D1262 low byte
‘6’
36 H
D1262 high byte
‘F’
46 H
LRC CHK 1
LRC CHK 0
Checksum: LRC CHK (0,1)