6 - 38
6 - 38
6. HOW TO COMMUNICATE WITH ID TAGS
(2) Program example
Initialize output devices
M1050
RST
M1053
RST
M1054
RST
M1055
MOV
K0
D1050
ID instruction execution
<Command code specification >
M1050
X0
X2
X3
X4
X5
MOV
H4
U0\
G0
<Head address specification
>
MOV
K10
U0\
G3
<Number of processed points specification >
MOV
K4
U0\
G4
<
テ
Write to data storage area
>
BMOV
D3420
U0\
G100
K2
BMOV
D3422
U0\
G102
K2
SET
Y14
RST
M1050
Write
Mask Bit
command
Write
Mask Bit
normal
completion
Module error
during Write
Mask Bit
Write
Mask Bit ID
communication
complete
Error details
during Write
Mask Bit
Write
Mask Bit
command
Module
ready
CH1 ID
communication
complete
CH.1 ID
-BUSY
CH1 ID
instruction
complete
CH1 error
detection
Mask data
during Write
Mask Bit
Write data
during Write
Mask Bit
CH1 ID
instruction
execution
request
Write
Mask Bit
command