User`s manual

6 - 79 6 - 79
6. HOW TO COMMUNICATE WITH ID TAGS
(7) Programming
(1) Program conditions
(a) Setting contents
Setting Contents Buffer
Memory
Address
Buffer Memory Name
Reading Writing
0 Command code specification area (CH1) H0 (Read) H1 (Write)
1 Communication specification area (CH1) K0 (Trigger)
2 Processing specification area (CH1)
K0 (Data storage order:
Upper –> Lower
Calculation method: Addition
Calculation/Verification : Calculation)
3 Head address specification area (CH1) K10 (Address: 10)
4 Number of processed points specification area (CH1) K8 (8 bytes)
100 Data storage area (CH1)
Specifies the data to
be written to the ID tag
(b) Devices used by user
1. External inputs (commands)
Device Application
M1160 Read ID Tag command
M1161 Cancel Read ID Tag command
M1170 Write ID Tag command
M1171 Cancel Write ID Tag command
D0 Command code
D1 Communication specification
D2 Processing specification
D3 Head address
D4 Number of processed points
D1170
D1173 Specifies the data to be written to the ID tag during Write to ID Tag
2. External outputs (verification)
Device Application
D1178 Error details storage during Read ID Tag
D1160
D1163 Read data storage during Read ID Tag
(8) Sample Program
(a) The operation of the program
Action Explanation of the operation
Read data
from an ID tag
The data from address 10 of the ID tag to 8 bytes are retrieved by turning
on a device (M1160).
And, those data are stored by a storage device (D1160 to D1163).
Write in data
at an ID tag
By turning on a device (M1170), read the data of the device (D1170 to
D1173) and write in data for 8 bytes from address 10 of the ID tag..
Error Processing
When an operation error occurs to the RFID module, an error code is
stored by device (D1178).
Cancel Operation
In the case of communications specification method is either of repeat
auto, FIFO repeat, multi-repeat, the reading or writing to ID tag is
continued till turning on a device (M1171).