Commands summary, Chapter – Rockwell Automation 56RF RFID System User Manual User Manual
Page 65

Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011
65
Chapter
8
Commands Summary
This section provide a summary of the commands supported by the RFID
transceiver. Detail of the commands can be found in
Chapter 9
. This guide
assumes familiarity with RSLogix 5000. The *.ACD file should already be
downloaded into the PLC and working properly.
The table below assumes the following:
•
The user has set up the RSLogix5000 AOP with Data Format set to
SINT.
•
The RFID tag has blocks that are only 4 bytes each.
•
The UUID is set to zero (unless specified).
TIP
A Universally Unique Identifier (UUID) can be specified in
xx.O.Channel[0].UIDLow and xx.O.Channel[0].UIDHi for most commands to
operate on a specific tag. If xx.O.Channel[0].UIDLow and
xx.O.Channel[0].UIDHi are set to 0, the command will operate on the first tag
in the transceiver field. All other Output values should be set to 0 where not
specified.
Command
Description
Output
xx.O.Channel[0]
Input
xx.I.Channel[0]
Inventory
Option Flag 0
Returns number of tags in field
Returns Universally Unique Identifier (UUID) of first tag in field
Command = 20
Length = 0
Data[0] = 0
Data[0] = # of tags
Data[2…9, 10…17, 18…25, 26…33] = UUID of
up to 4 tags
Option Flag 1
Returns number of tags in field
Returns Application Family Identifier (AFI) of first tag in field
Returns Universally Unique Identifier (UUID) of first tag in field
Command = 20
Length = 1
Data[0] = 1
Data[0] = # of tags
Data[2, 12, 22, 32] = AFI of up to 4 tags
Data[4…11, 13…21, 24…31, 34…41] = UUID of
up to 4 tags
Read Single
Block
Option Flag 0
Reads a single block of user data from a tag
Command = 1
Data[0] = 0
Data[0…3] = User data (4 bytes)
Option Flag 1
Reads a single block of user data from a tag
Returns security status of the block
Command = 1
Data[0] = 1
Data[0…3] = User data (4 bytes)
Data[4] = Security status
Write Single
Block
Writes a single block of user data to a tag
Command = 10
Length =Block size
BlockSize = Block size
Data[0-1] = User data (4 bytes)
All data bytes are zero
Lock Block
Locks a single block of user data, preventing writing
Command = 40
UIDLow = UIDLow
UIDHi = UIDHi
All data bytes are zero
Read Multiple
Blocks
Option Flag 0
Reads multiple blocks of user data from a tag
Command = 2
Length = Number of blocks
Data[0] = 0
Data[0…3] = Block x
Data[4…7] = Block x+1
Option Flag 1
Reads multiple blocks of user data from a tag
Returns security status of the blocks
Command = 2
Length = Number of blocks
Data[0] = 1
Data[0…3] = Block x
Data[4] = Security status of block x
Data[6…9] = Block x+1
Data[10] = Security status of block x+1