Write byte command, Example results – Rockwell Automation 56RF RFID System User Manual User Manual

Page 97

Advertising
background image

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

97

RSLogix 5000 Code Examples

Chapter 9

Example Results

The following figure shows an example of results on the input image table. The
Command is showing 41 and theChError is showing 0. The data bytes are all
zero. Confirmation that the AFI was written can be observed in the
Get_System_Information_Routine.

Write Byte Command

The Write Byte command writes bytes of user data to a tag. The user must specify
the data, the start byte, and the number of bytes to write.

a. xx:O.Channel[0].Command = 14
b. xx:O.Channel[0].Address = starting addressto write
c. xx:O.Channel[0].BlockSize = 0
d. xx:O.Channel[0].Data[0…111] = the data to write
e. xx:O.Channel[0].Length = the number of bytes to write
f. xx:O.Channel[0].Reset = 0
g. xx:O.Channel[0].Timeout = 0
h. xx:O.Channel[0].UIDLow = 0 (or UIDLow)
i. xx:O.Channel[0].UIDHi = 0 (or UIDHi)

Unless a UUID is specified, 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.

Advertising