Printronix T5000 User Manual

Page of 74
Read Tag
59
BARCODE
// The following BARCODE element is defined below:
C3/9;RFREAD@;BF1;10;5;5
// Code 3 of 9 bar code; the RFID Data Indicator
// character is “@”.
PDF
// Dynamic bar code field number is 1; display the
// readable part.
STOP
// Terminate the BARCODE element definition.
END
// Terminate the READTAG form creation.
~EXECUTE;READTAG
~AF1;*DATA FROM 0 TO 7 = @1,8;*
// Execute READTAG form with dynamic and RFID
// data from the first eight bytes inside the tag, using the
// RFID Data Indicator character, which is “@”.
// Since we programmed that tag with “HELLOTAG”,
// the string is “DATA FROM 0 TO 7 = HELLOTAG” is
// printed.
~BF1;*@1,5,1;*
// Read the first five bytes from the tag, which is
// “HELLO”, and convert it to hexadecimal format,
// which is “48454C4C4F”. Next, attach the hex format
// data to the bar code. The 3 of 9 bar code containing
// the data “48454C4C4F” is printed.
~NORMAL
// Complete the EXECUTE mode, and return to
// NORMAL mode.