User's Manual
Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021 85
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 catalog number 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 catalog number
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.










