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

Page 95

Advertising
background image

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

95

RSLogix 5000 Code Examples

Chapter 9

Example Routine

In the example routine below, the initialization in Rung 1 sets the address, length,
data, and command. Because the address, length and Data[0] can only be 0, the
source in the MOV instruction can be set to 0. The UIDLow, UIDHi, BlockSize,
Reset and Timeout are set to 0 in the output image table.

Example Results

The following information will be displayed:

xx:I.Channel[0].Data[0…1] = Device ID

xx:I.Channel[0].Data[2…5] = Baud rate

xx:I.Channel[0].Data[6…7] = Retry setting

xx:I.Channel[0].Data[8…9] = Gain

Gain is 0…3, with 0 being the highest gain.

Advertising