beautypg.com

Epc programming example – Printronix T5000e User Manual

Page 58

background image

Chapter 3

RFID PGL Commands

58

length

The decimal number that specifies the
length of the data to be read.

format

Replace the optional

format parameter

with any non-zero number to convert the
data to hexadecimal format.

EPC Programming Example

This programming example shows reading and writing dynamic
EPC data to a tag.

~CREATE;HEX;431

//Create a form named HEX.

RFWRITE;HEX;RF3;16;AT1;

//Write Tag with data from dynamic RFID element 3.
//Length of data is 16, format is HEX.

ALPHA

//The following ALPHA element is defined below.
//It will be used to print the contents of the tag.

RFREAD@;AF1;16;10;10;0;0

//Read Tag Indicator character is “@”. Incorporate read
//data into Dynamic ALPHA field number 1. Length of
//ALPHA field is 16 characters. Place ALPHA field at
//dot position (10,10) on the form.

STOP

//Terminate the ALPHA element definition.

END

~EXECUTE;HEX

//Execute the form with dynamic data.

~RF3;“68656C6C6F746167”

//Dynamic data (in HEX) for Tag Write is
//“68656C6C6F746167”.

~AF1;*@1,16,1;*

//Print the data in AF1.

~NORMAL