User Manual Manual
Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011 109
Chapter 10
SLC Code Examples
This sample code is an example using a SLC-5/05 with a Cat. No.
56RFINIPD22 interface block.
Read Byte Routine
The Read Byte command (value =4) reads a user-specified number of bytes from
a tag, starting at a user-specified address. Additionally, an Option Flag can be set
to return the UUID of the tag.
•Option Flag 0 – Returns the specified user data
•Option Flag 1 – Returns the UUID of the tag and the specified user data
Note: This command operates only on the first tag in the field.
Example Routine
The example code below is for an SLC-5/05.