Zebra Technologies radio frequency identification (rfid) ユーザーズマニュアル

ページ / 162
ZPL II Commands for RFID
^RI
100
58978L-008 Rev. A
RFID Programming Guide
11/14/2008
^RI
Get RFID Tag ID
Description   Use this command to get the unique serial number of the tag and return it in 
hexadecimal format. The data can be sent back to the host via the 
^HV
 command.
For Gen 2 tag types, this command will return the 32-bit tag ID (TID) for the tag. If your 
Gen 2 tag supports TID data beyond 32 bits, see 
 to access the TID memory 
bank. 
Format   ^RI#,s,r,m
This table identifies the parameters for this format.
Important • 
This command is not supported by all printers or firmware. See 
 for the list of printers and firmware with which you can 
use this command.
Parameters
Details
#
  =  number to be 
assigned to the field
Accepted values: 0 to 9999
Default value: 0
s
  =  specify data order
Note • 
This parameter applies only to the R110Xi HF 
and R2844-Z printers.
Accepted values: Accepted Values: 
0 =
Most significant byte first for Tag*It and PicoTag. 
Least significant byte first for I*code and 
ISO15693.
1 =
Reverse the data order
Default value: 0
r
 = number 
of 
retries
Accepted values: 0 to 10
Default value: 0
m
 = motion
Accepted values: 
0 =
Feed label after writing
1 =
No Feed after writing (other ZPL commands may 
cause a feed)
Default value: 0
Example • 
This example reads a tag ID, prints it on a label, and sends string 
Tag ID:xxxxxxxx
 to the host. The data read will go into the 
^FN0
 location of the 
format. The printer will retry the command five times, if necessary.
^XA
^FO20,120^A0N,60^FN0^FS
^RI0,,5^FS
^HV0,,Tag ID:^FS
^XZ