Write multiple blocks – Rockwell Automation 56RF RFID System User Manual User Manual

Page 101

Advertising
background image

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

101

RSLogix 5000 Code Examples

Chapter 9

Write Multiple Blocks

The Write Multiple Blocks command writes to either one or two blocks of user
data to a FRAM tag. This command will only work on FRAM tags.
Cat. No. 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 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.

The table below shows the valid values for length, block size and the number of
bytes written or each combination.

Length

1

1

1

2

2

2

Block Size

0

4

8

0

4

8

Bytes Written

4

4

8

8

8

16

Advertising