beautypg.com

Ascii programming example – Printronix T5000e User Manual

Page 59

background image

ASCII Programming Example

59

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