^RT
^RT

^RT

Use this command to tell the printer to read the current RFID tag data. The data can be returned to the host via the
^HV
command.

Read RFID Tag

The
^RT
command is provided for backward-compatibility with label formats developed for older Zebra RFID printers. Use the
^RF
,
^RM
, and
^RR
commands in place of the
^RT
command.
Format:
^RT#,b,n,f,r,m,s
Parameters
Details
#
= number to be assigned to the field
Values:
0 to 9999
Default:
0
b
= starting block number
Values:
0 to n, where n is the maximum number of blocks for the tag.
Default:
0
n
= number of blocks/bytes to read
This parameter does NOT apply to R4Mplus printers with firmware version SP920X (R4Mplus U.S. version).
For firmware version SP994X:
This parameter applies only when the starting block number (parameter b) is 1.
Values:
1 to n, where n is the maximum number of bytes for the tag. For UCODE EPC 1.19, n is 32.
For all other supported printers:
Values:
1 to n, where n is the maximum number of blocks for the tag type 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 return block 6 and block 7 information.
Values:
1
f
= format
Values:
0 =
ASCII
1 =
Hexadecimal
Default:
0
r
= number of retries
Changes the number of times that the printer attempts to read a particular block of a single RFID tag. (Same retry rules as the
^RR
command.)
Values:
0 to 10
Default:
0
m
= motion
Enables or disables RFID motion for the current field.
Values:
0 =
Feed label after writing.
1 =
No feed after writing. Other ZPL may cause a feed.
Default:
0
s
= special mode
This parameter is used only for the printers referenced here.
For R4Mplus printers with firmware version SP920X (U.S. version):
Specify actions for mismatched checksums. For EPC Class 1 (Alien reader) only. Not applicable for EPC class 0.
Default:
0
Values:
0 =
Do not read if mismatched checksum
1 =
Read even if mismatched checksum
For R110Xi HF and R2844-Z printers:
Specify data order.
Default:
0
Values:
0 =
least significant byte first
1 =
most significant byte first
Example:
This example 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. The printer will retry the command five times, if necessary.
^XA ^FO20,120^A0N,60^FN1^FS ^RT1,,,,5^FS ^HV1,,Tag Data:^FS ^XZ
Example:
This example reads from a tag twice and prints the results on a label.
^XA ^FO20,120^A0N,60^FN1^FS ^FO20,100^A0N,20^FN2^FS ^RT1,7,3,,5^FS ^RT2,3,2,,5^FS ^XZ
The first
^RT
command starts at block 7 and reads three blocks of data in ASCII format. The data read will go into the
^FN1
location of the format. The printer will retry the command five times, if necessary.
The second
^RT
command starts at block 2 and reads two blocks of data in ASCII format. The data read will go into the
^FN2
location of the format. The printer will retry the command five times, if necessary.