6 - 72
6 - 72
6. HOW TO COMMUNICATE WITH ID TAGS
(b) Writing to ID tags
1) By turning on the Write to ID Tag command signal (M1020), the subsequent Write
program is executed.
2) The Write command and the data required for writing are set in the buffer memory
(U0
\
G0 to G4) of the RFID module.
3) The data to be written to the ID tag are transferred to the buffer memory (starting
from U0
\
G100) of the RFID module.
4) The ID instruction execution request (Y14) turns on.
5) When writing to the ID tag ends normally, the ID instruction complete signal (X4)
turns on.
6) The ID instruction execution request (Y14) turns off.
7) The Write to ID Tag command signal (M1020) turns off.
Write
setting
0:
1:
2:
3:
20:
21:
22:
23:
24:
25:
36H '6'
38H '8'
33H '3'
36H '6'
32H '2'
30H '0'
00H
00H
00H
00H
100
101
102
: 3638H '86'
: 3336H '63'
: 3230H '02'
[SET Y14]
Data storage
order
Upper -> lower
Buffer memory
[BMOV D2300 U0\G100 K4]
[RST Y14]
X4
26:
27:
34H '4'
35H '5'
D2300
D2301
D2302
: 3638H '86'
: 3336H '63'
: 3230H '02'
CPU internal data register
D2303
: 3435H '54'
103
: 3435H '54'
Data
storage
area
2)
3)
4)
5)
6)
[RST M1020]
7)
ID
instruction
execution
request
Write
request
Writing
the data
ID
instruction
execution
complete
Write data
storage
CPU module
[MOV H1 U0\G0]
Write to
ID Tag
command
[MOV K8 U0\G4]
Sequence program
1)
M
1020
[MOV H0 U0\G1]
[MOV H0 U0\G2]
[MOV K20 U0\G3]
ID
instruction
complete
Buffer memory
RFID module
0 (Command code): H1 (Write)
1 (Communication specification): H0 (Trigger)
2 (Processing specification): H0 (Upper -> lower)
3 (Head address): K20 (Address: 20)
4 (No. of processing points): K8 (8 bytes)
Write verify
ID tag
Memory
Write protect
area setting
Write data
(8 bytes)