90
Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011
Chapter 9
RSLogix 5000 Code Examples
Example Results
The input image data fields are populated with the number of tags, followed by
the UUID and block data of each tag.
In the example below, four Cat. No. 56RF-TG-30 RFID tags were read. These
tags hold 4 bytes per block. Since two blocks (25 and 26) were read, a total of
eight data fields are used to store the user data. The figure only shows the
information from two of the four RFID tags.
Read Multiple Blocks
The Read Multiple Blocks command reads multiple blocks of user data from an
RFID tag. Option Flags can be set to return just the data in the blocks or return
the data and the security status for each block of data. The maximum number of
blocks that can be read at one time is 10.
• Option Flag 0
– Returns multiple blocks of user data. Set
xx:O.Channel[0].Data[0] = 0.
• Option Flag 1
– Returns multiple blocks of user data and the security
status of each block. Set xx:O.Channel[0].Data[0] = 1.
Set the following values in the output image table:
a. xx:O.Channel[0].Command = 2
b. xx:O.Channel[0].Address = the first block to read
c. xx:O.Channel[0].BlockSize = 0
d. xx:O.Channel[0].Data[0] = the Option Flag
e. xx:O.Channel[0].Length = the number of blocks to read
f. xx:O.Channel[0].Reset = 0
g. xx:O.Channel[0].Timeout = 0
h. xx:O.Channel[0].UIDLow = 0 (or UIDLow)
i. xx:O.Channel[0].UIDHi = 0 (or UIDHi)