6 - 71
6 - 71
6. HOW TO COMMUNICATE WITH ID TAGS
(3) Explanation of the operation
(a) Reading from ID tags
1) By turning on the Read ID Tag command signal (M1010), the subsequent Read
program is executed.
2) The Read command and the data required for reading are set in the buffer memory
(Un
\
G0 to G4) of the RFID module.
3) The ID instruction execution request (Y14) turns on.
4) The data is read from the ID tag and the ID instruction complete signal (X4) turns on
when reading ends normally.
5) The data read from the data storage area (starting from U0
\
G100) in the buffer
memory are transferred to the CPU module's data register D1200 to D1203.
6) The ID instruction execution request (Y14) turns off.
7) The Read ID Tag command signal (M1010) turns off.
Buffer memory
CPU module
RFID module
0 (Command code): H0 (Read)
1 (Communication specification): H0 (Trigger)
2 (Processing specification): H0 (Upper -> lower)
3 (Head address): K10 (Address: 10)
4 (No. of processing points): K8 (8 bytes)
[MOV H0 U0\G0]
Read
ID Tag
command
Read
setting
[MOV K8 U0\G4]
ID tag
Memory
0:
1:
2:
3:
10:
11:
12:
13:
14:
15:
33H '3'
30H '0'
31H '1'
35H '5'
36H '6'
30H '0'
00H
00H
00H
00H
Write protect
area setting
100
101
102
: 3330H '03'
: 3135H '51'
: 3630H '06'
Read data
(8 bytes)
[SET Y14]
ID
instruction
execution
request
Read
request
Reading
the data
Sequence program
Data storage
order
Upper -> lower
Buffer memory
[BMOV U0\G100 D1200 K4]
ID
instruction
complete
[RST Y14]
ID
instruction
execution
complete
X4
Read data
storage
D1200
D1201
D1202
: 3330H '03'
: 3135H '51'
: 3630H '06'
CPU internal data register
1)
2)
3)
4)
5)
6)
M
1010
[MOV H0 U0\G1]
[MOV H0 U0\G2]
[MOV K10 U0\G3]
D1203
: 3934H '49'
103
Data
storage
area
: 3934H '49'
16:
17:
39H '9'
34H '4'
[RST M1010]
7)