Example routine, Example results – Rockwell Automation 56RF RFID System User Manual User Manual

Page 98

Advertising
background image

98

Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011

Chapter 9

RSLogix 5000 Code Examples

Example Routine

In the example routine below, 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

The figure below shows the output image table with the 10 bytes of data that will
be written to the RFID tag. The sequence is 11, 12, 13, 14, 15, 16, 17, 18, 19, and
20.

Advertising