6 - 54
6 - 54
6. HOW TO COMMUNICATE WITH ID TAGS
(2) Program example
X4
RST
Y14
X5
Initialize output devices
M1100
Copy
command
RST
M1102
RST
M1103
MOV
K0
D1100
ID instruction execution
<Command code specification >
M1100
Copy
command
X0
X2
X3
X4
X5
MOV
H9
U0\
G0
<Head address specification >
MOV
K10
U0\
G3
<Number of processed bytes specification >
MOV
K100
U0\
G4
<Command option specification >
MOV
K110
U0\
G5
SET
Y14
RST
M1100
End processing / Cancel processing
M1101
X0
X3
RST
Y14
RST
M1101
Module
ready
CH1 ID
communication
complete
CH.1 ID
-BUSY
CH1 ID
instruction
complete
CH1 error
detection
Copy norma
completion
Module error
during Copy
Error details
during Copy
CH1 ID
instruction
execution
request
Copy
command
CH1 ID
instruction
execution
request
Cancel
Copy
command
Cancel
Copy
command
Module
ready
CH.1 ID
-BUSY
CH1 ID
instruction
execution
request
CH1 ID
communi
-cation
complete
CH1 error
detection