Read single block, Example results – Rockwell Automation 56RF RFID System User Manual User Manual
Page 92

92
Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011
Chapter 9
RSLogix 5000 Code Examples
Example Results
This first example uses Option Flag = 0; return only the data in the blocks. With
a starting block number of 25 and two blocks to read, data from Blocks 25 and 26
are returned. The tag was a Cat. No. 56RF-TG-30 which has only 4 bytes per
block. The data appears in the input channel Data[0…7].
This second example shows the results for Option Flag = 1; return the data and
the security status. With a starting block number of 25 and two blocks to read,
data from Blocks 25 and 26 are returned. The tag was a Cat. No. 56RF-TG-30
which has only 4 bytes per block.
The data for the first block appears in the input channel Data[0…3]. The security
status appears in Data[4]. The value of 0 indicates that the block is not locked.
The data for the second block appears in the input channel Data[6…9]. The
security status appears in Data[10]. The value of 1 indicates that the block is
locked.
Read Single Block
The Read Single Block command reads a single block of user data from a tag.
Option Flags can be set to return information the UUID and security status of
the block.
• Option Flag 0
– Returns a single block of user data.
Set xx:O.Channel[0].Data[0] = 0.
• Option Flag 1
– Returns a single block of user data and the security status
of that block. Set xx:O.Channel[0].Data[0] = 1.