//End and print label.
Example 3
This example uses the ^RF command to write and read the tag.
^XA
//Begin ZPL form.
^RFW,H,0^FD31323334^FS
//Write tag data 31323334 in hex.
^FO100,100^A0N,60,60^FN1^FS
//Print tag data in FN1.
^FN1^RFR,H,0^FS
//Read tag data and store into FN1.
^XZ
//End and print label.
Example 4
This example uses the ^RF command to write and read the tag with EPC format.
^XA
^RMY
^RB64,16,16,16,16
^RZ01^RR3^RFW,E^FD12594,13108,13622,14136^FS
^FO50,150^A0N,50^FN0^FS
^FN0^RR4^RFR,E^FS
^XZ
Example 5
On a Gen 2 tag, this example:
•
Writes EPC data "112233445566778899001122" to the tag in hexadecimal format
•
Locks the tag's EPC data with the password "1234ABCD"
•
Renders the tag's access password unreadable
^XA
^RFW,H^FD112233445566778899001122^FS
^RZ1234ABCD,E,L^FS
^RZ1234ABCD,A,L^FS
^XZ
This example:
•
Unlocks EPC data "112233445566778899001122" using the password "1234ABCD"
•
Writes EPC data "newdata" to the tag in ASCII format
•
Locks the tag's new EPC data
Since the access password and its lock state are not changed, the access password remains unreadable
^XA
^RZ1234ABCD,E,U^FS
48