User's Manual

90 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 9 RSLogix 5000 Code Examples
Example Results
Figure 22 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.
Figure 22 - Input Image Table
Write Byte Command The Write Byte command writes bytes of user data to a tag. You 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 address to 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)