DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
Example program of RS-485 communication:
MOV D1120
H86
M1002
SET M1120
SET
MOV D1129K100
X20
M1123
RST M1123
RS D100 K2 D120 K8
Setting communication protocol 9600, 7, E, 1
Communication protocol latched
Setting communication time out 100ms
Write transmitting data in advance
Transmission
request
Pulse
Sending request
Receiving
completed
Receiving completed and flag reset
Process of receiving data
X0
M1122
Timing diagram:
SET M1122 X0
RS executes X20
MODRD/RDST/MODRW
data receiving/converting
completed
M1127
Coverting data of
MODRD
to hexadecimal
/RDST/MODRW
M1131
Transmission ready M1121
Sending request M1122
Receiving completed M1123
Receiving ready M1124
Communication reset M1125
Transmitting/receiving M1128
Receiving time out M1129
Receive time out
timer set by D1129
Residual words of
transmitting data D1122
Residual words of
receiving data D1123
Auto reset after transmitting completed
Change
status
immediately
User has to
reset in program
manually
Reset the status to the initial
communication ready status.
ASCII to HEX,
less than a scan cycle
Activated when time-out timer reaches
the set value
Stop timing after complete
data is received
Converting data
1 2 3 1 2 3 4 5 6 7 8
3
2
1
0
3
2
1
0
4
5
6
7
8