6 - 35
6 - 35
6. HOW TO COMMUNICATE WITH ID TAGS
(2) Program example
M1040
RST
M1043
RST
M1044
RST
M1045
MOV
K0
D1040
M1040
X0
X2
X3
X4
X5
MOV
H3
U0\
G0
MOV
K10
U0\
G3
MOV
K4
U0\
G4
BMOV
D3410
U0\
G100
K2
SET
Y14
RST
M1040
M1042
X0
X3
RST
Y14
X2
RST
M1042
X2
X0
X3
SET
M1045
X4
X5
RST
Y14
=
U0\
G1
K0
=
U0\
G1
K1
=
U0\
G1
K3
Initialize output devices
ID instruction execution
<Command code specification >
<Head address specification >
<Number of processed points specification >
<Write to data storage area >
Clear Bit
command
Normal
completion
during
Clear Bit
Module error
during
Clear Bit
ID
communication
complete
during
Clear Bit
Error details
during
Clear Bit
Clear Bit
command
Module
ready
CH1 ID
communication
complete
CH.1 ID
-BUSY
CH1 ID
instruction
complete
CH1 error
detection
Clear Bit
data
CH1 ID
instruction
execution
request
Clear Bit
command
CH1 ID
instruction
execution
request
CH1 ID
communi
-cation
complete
CH1 error
detection
End processing / Cancel processing
Cancel
Clear Bit
command
CH1 ID
communication
complete
Module
ready
CH.1 ID
-BUSY
CH1 ID
communication
complete
CH.1 ID
-BUSY
Module
ready
CH1 ID
instruction
execution
request
Cancel
Clear Bit
command
ID communication
complete
during
Clear Bit