beautypg.com

Write dsfid – Rockwell Automation 56RF RFID System User Manual User Manual

Page 99

background image

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

99

RSLogix 5000 Code Examples

Chapter 9

After successful completion of the Write Byte command, the input image table
shows the UUID of the tag.

The Read_Byte_Routine can be used to read the data. The data is stored in the
input channel data, starting at location 0.

Write DSFID

The Write DSFID (Data Storage Format Identifier)command will write one byte
of information in the Data Storage Format Identifier (DSFID) of the RFID tag.

Set the following values in the output image table:

a. xx:O.Channel[0].Command = 43
b. xx:O.Channel[0].Address = 0
c. xx:O.Channel[0].Data[0] = DSFID value
d. xx:O.Channel[0].Length = 1
e. xx:O.Channel[0].Reset = 0
f. xx:O.Channel[0].Timeout = 0
g. xx:O.Channel[0].UIDLow = 0 (or UIDLow)
h. xx:O.Channel[0].UIDHi = 0 (or UIDHi)

If UIDLow and UIDHI are set to 0, this command will operate 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.