3. Instruction Set
M1002
MOV H87 D1120
SET M1120
Set communication protocol as 9600, 8, E, 1
Retain communication protocol
Set communication timeout as 100ms
MODWR K1 H0100 H1770
X0
Set communication instruction:
Data address:
Data: H1770
H0100
Device address: 01
X0
M1129
M1140
M1141
Sending request
Retry when communication time-out occurs
Retry when data receiving error occurs
Retry when parameter error occurs
RST
M1127
M1127
RST
M1129
Receiving completed
Processing received data
The received data is stored in D1070-D1085
i.n ASCII format
Reset M1127
Reset M1129 (receiving timeout)
MOV K100 D1129
SET
M1122
M1129