Printronix T5000e setup guide Ascii Programming Example

Models: T5000e

1 76
Download 76 pages 43.78 Kb
Page 59
Image 59

ASCII Programming Example

ASCII Programming Example

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

~CREATE;READTAG

//Create a form named READTAG.

RFWRITE;RF3;8;AT1;

//Write Tag with data from dynamic RFID element 3. //Length of data is 8.

ALPHA

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

RFREAD@;AF1;8;10;10;0;0

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

STOP

//Terminate the ALPHA element definition.

END

~EXECUTE;READTAG

~RF3;“hellotag”

//Dynamic data for Tag Write is “hellotag”.

~AF1;*@1,8;*

//Execute READTAG form with dynamic and RFID data //from the first eight bytes in the Tag.

~NORMAL

59

Page 59
Image 59
Printronix T5000e setup guide Ascii Programming Example