beautypg.com

Read transceiver settings, Example results – Rockwell Automation 56RF RFID System User Manual User Manual

Page 94

background image

94

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

Chapter 9

RSLogix 5000 Code Examples

Example Results

• Option Flag 0 —

This first example uses Option Flag = 0; return only the

data in the block. The block number is 26. The tag was a Cat. No.
56RF­TG-30 which has only 4 bytes per block. The data appears in the
input channel Data[0…3].

• Option Flag 1—

The second example demonstrates the results when

Option Flag = 1. Data[0] shows the security status of the block. The 1
indicates the block has been locked. A zero indicates the block is unlocked.
The data appears in Data[1…4].

Read Transceiver Settings

The Read Transceiver Settings command will retrieve the following information
from the transceiver:

Device ID

Baud rate

Retry time

Gain

Set the following values in the output image table:

a. xx:O.Channel[0].Command = 31
b. xx:O.Channel[0].Address = 0
c. xx:O.Channel[0].BlockSize = 0
d. xx:O.Channel[0].Data[0] = 0
e. xx:O.Channel[0].Length = 0
f. xx:O.Channel[0].Reset = 0
g. xx:O.Channel[0].Timeout = 0
h. xx:O.Channel[0].UIDLow = 0
i. xx:O.Channel[0].UIDHi = 0