User's Manual

94 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 9 RSLogix 5000 Code Examples
Write Multiple Blocks The Write Multiple Blocks command writes to either one or two blocks of user
data to a FRAM tag. This command only works on FRAM tags. Catalog number
56RF-TG-2KB is a FRAM tag.
a. xx:O.Channel[0].Command = 11
b. xx:O.Channel[0].Address = starting block to write
c. xx:O.Channel[0].BlockSize = number of bytes per block
d. xx:O.Channel[0].Data[0…xxx] = data to write
e. xx:O.Channel[0].Length =the number of blocks 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)
If UIDLow and UIDHi are set to 0, this command operates 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.
Table 26
shows the valid values for length, block size, and the number of bytes
written or each combination.
Example Routine
In the following example routine, the initialization in Rung 1 sets the address,
length, and block size values that are used to write multiple blocks and sets the
command value to 0. The BlockSize, Reset, Timeout, UIDLow, and UIDHi are
set to 0 in the output image table.
Table 26 - Valid Values
Description Value
Length 1 1 1 222
Block Size 048048
Bytes Written 4 488816