Lock dsfid, Example routine – Rockwell Automation 56RF RFID System User Manual User Manual

Page 84

Advertising
background image

84

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

Chapter 9

RSLogix 5000 Code Examples

Lock DSFID

The Lock DSFID command will lock the 1 byte of information for the Data
Storage Format Identifier (DSFID) area of the tag, preventing it from being
modified.Once the DSFID byte is locked, it cannot be unlocked.

Set the following values in the output image table:

a. xx:O.Channel[0].Command = 44
b. xx:O.Channel[0].Address = 0
c. xx:O.Channel[0].Data[0] = 0
d. xx:O.Channel[0].Length = 0
e. xx:O.Channel[0].Reset = 0
f. xx:O.Channel[0].Timeout = 0
g. xx:O.Channel[0].UIDLow = UIDLow
h. xx:O.Channel[0].UIDHi = UIDHi

The UIDLow and UIDHi bytes must be specified to lock the DSFID value. The
UUID can be found by performing the Inventory command.

Example Routine

In the example routine below, the initialization in Rung 1 sets the address, length,
the Data[0], UIDLow and UIDHi values used to lock the DSFID and sets the
command value to 0. The BlockSize, Reset, and Timeout are set to 0 in the
output image table.

Advertising