User's Manual

Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021 91
Chapter 9 RSLogix 5000 Code Examples
Unless a UUID is specified, this command operates on the first tag in the field.
Specify a UUID in xx:O.Channel[0].UIDLow and xx:O.Channel[0].UIDHi to
perform the command on a specific tag.
Example Routine
In the following example routine, the initialization in Rung 1 sets the address,
length, and Data[0] values used to read multiple blocks and sets the command
value to 0. The BlockSize, Reset, Timeout, UIDLow, and UIDHi are set to 0 in
the output image table.
The example ladder diagram is initially set for Address =0, the Length = 10.
Data[0…9] are set to a sequential list of numbers starting with 11.
Example Results
Figure 23 shows the output image table with the 10 bytes of data that is written
to the RFID tag. The sequence is 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20.
Figure 23 - Output Image Table