RFId Commands for Printers
Procedure to set the printer
Before send the command to encode the TAG, you must do always the below steps:
- Made a label calibration: this let the printer recognize the correct label size
Made a TAG calibration: this let the printer identify the correct position of the TAG inside the label sizeAfter this calibration (that is more or less the same for all the brand) it is possible to encode the TAG using specific commands
TSPL Command to encode the tag
For the TSC printers you must use TSPL commands (see RFID section in the manual) and you can send the RFID WRITE command to encode the data in the TAG
Below an example
CLS
RFID WRITE,0,H,0,12,EPC,"123456789012"
RFID READ,0,H,0,12,EPC,"Data Read: "
PRINT 1
with this Sample you can encode the Data and then READ the data encoded in the same tag.
The printer send back the data read to the host so if everything works fine you receive the below data
Data Read: 123456789012
Below the list of the command available
- RFID ON/OFF
- RFID ERROR
- RFID RETRY
- RFID RETRYERROR ON/OFF
- RFID POSITION
- RFID POWER
- RFID COUNTRESET
- RFID READ/WRITE
- RFID RFLOCK
- RFIDDETECT
PGL Command to encode the tag
PGL is the language used for the Printronix printers (now part of TSC brand)
ZPL Command to encode the tag
ZPL is the language used in Zebra printers