User Manual

Table Of Contents
RFID Guidelines
ZPL II Commands for RFID
R4Mplus User Guide 73
^RT
Read Tag
Description The ^RT command tells the printer to read the current RFID tag data. The data
can be sent back to the host via the ^HV command.
Format ^RT#,b,n,f,r,m,s
Table 9 identifies the parameters for this format.
Table 9 • ^RT Parameters
Parameters Details
# = number to be assigned
to the field
Default value: 0
Other values: 1 to 9999
b = starting block
number*
Default value: 0
Other values: 1 to n, where n is the maximum number of blocks for the tag.
n = number of blocks
to read*
Default value: 1
Other values: 2 to n, where n is the maximum number of blocks minus the
starting block number. For example, if the tag has 8 blocks (starting with
block 0) and you start with block 6, n can be 2. This would give you block 6
and block 7 information.
f = format Default value: 0 ASCII
Other values: 1 Hexadecimal
r = number of retries Default value: 0
Other values: 1 to 10, number of retries
m = motion Default value: 0 (Feed label after writing.)
Other values: 1 (No Feed after writing. Other ZPL may cause a feed.)
s = special mode For EPC Class 1 (Alien reader) only. Not applicable for EPC class 0.
Default value: 0 (Do not read if mismatched checksum.)
Other values: 1 (Read even if mismatched checksum.)
* Not applicable for R4Mplus.
Example • This sample reads a tag, prints the data on a label, and sends the string
Tag Data:xxxxxxxx back to the host. The data read will go into the ^FN1 location of the
format. It will retry the command five times, if necessary.
^XA
^FO20,120^A0N,60^FN1^FS
^RT1,,,,5^FS
^HV1,,Tag Data:^FS
^XZ