6 - 70
6 - 70
6. HOW TO COMMUNICATE WITH ID TAGS
6.5 Specialized Sample Program for Read/Write of ID Tags with the Trigger Communication
The following describes a simple and versatile sample program specialized for reading
data from and writing data to an ID tag with the trigger communication.
6.5.1 Sample program
(1) System configuration
(2) Operating conditions
Mounting and connection of
the RFID module
Mount the RFID module to slot 0 of the MELSEC-Q programmable controller
and connect the amplifier and the antenna to channel 1 for communication with
ID tags.
Communication method
Trigger
Reading data from an ID tag
By turning on the Read command signal (M1010), the 8 bytes of data from
address 10 to address 17 of the ID tag are read and stored in the CPU
module's data register D1200 to D1203.
Writing data to an ID tag
By turning on the Write command signal (M1020), the 8 bytes of data stored in
the CPU module's data register D2300 to D2303 are written to address 20 to
address 27 of the ID tag.
Po
wer Mod
ule
CP
U Mo
dule
RFID
Module
24VDC
power
supply
MSLSEC-Q series programmable controller
CH1
Slot 0
Amplifier
Antenna
ID tag