6 - 29
6 - 29
6. HOW TO COMMUNICATE WITH ID TAGS
(2) Program example
M1020
RST
M1023
RST
M1024
RST
M1025
MOV
K0
D1020
M1020
X0
X2
X3
X4
X5
MOV
H1
U0\
G0
MOV
K10
U0\
G3
MOV
K8
U0\
G4
BMOV
D2300
U0\
G100
K4
SET
Y14
RST
M1020
M1022
X0
X3
RST
Y14
X2
RST
M1022
X2
X0
X3
SET
M1025
X4
X5
RST
Y14
=
U0\
G1
K0
=
U0\
G1
K1
=
U0\
G1
K3
Write
command
<Command code specification >
Write
command
<Head address specification >
<Number of processed points specification >
<Write to data storage area >
Initialize output devices
Normal
completion
during Write
Module
error during
Write
ID
communication
complete
during Write
Error details
during Write
ID instruction execution
Module
ready
CH1 ID
communication
complete
CH.1 ID
-BUSY
CH1 ID
instruction
complete
CH1 error
detection
Write
data
CH1 ID
instruction
execution
request
CH1 ID
instruction
execution
request
Write
command
End processing / Cancel processing
Cancel
Write
command
CH1 ID
communication
complete
Module
ready
CH.1 ID
-BUSY
CH1 ID
instruction
execution
request
Cancel Write
command
ID communication
complete
during Write
CH.1 ID
-BUSY
Module
ready
CH1 ID
communication
complete
CH1 ID
communi
-cation
complete
CH1 error
detection