Writing RFID & Label and Reading RFID Tag ID in 1 ZPL Command

Hello!

I'm trying to log the RFID Tag ID to a database after printing a tag.  I am using a Zebra ZE500R.

What I originally wanted to do was first read the Tag ID in 1 command, then send another command to write to the RFID and the tag label.  But if I understand correctly this cannot be done in separate ZPL commands.

I've been trying to get it all to work in 1 command but have been unsuccessful so far. 

I can send a ZPL command to read the Tag ID, and it works nicely.

I can also do 1 ZPL command to write to the label and RFID successfully.

The problem comes when I try to combine the two scenarios.  The label prints, but with void all over the label indicating the RFID operations failed.

Here is the code I'm trying.  (I've removed most of the graphic to make it shorter)

^XA

^RS8,,,3,N^FS

^XZ

^XA

^FO20,15^GFA,3060,3060,45,,:::::::::01NF8,... ^FS

^FO122,105^BX,17,200,,,,^FDUserData^FS

^FO85,105^A0R28,28^FDMore Data^FS

^FO55,105^A0R22,28^FDSome More Data^FS

^FO5,105^A0R50,50^FDRFID EPC^FS

^RR0

^RFW,H,0,64,3^FDUserData^FS

^RFW,H,2,12,1^FDEPCData^FS

^RFR,H,0,24,2^FN1^FS^HV1,24,TAGID:,**^FS

^RMY^FS

^PQ1,0,1,Y

^XZ

Any help would be greatly appreciated!!!

Thanks!

Anonymous (not verified)
There is a good example on

There is a good example on RFID Programming Guide to encode the tage, read the tage and print the label based on the data read from the tag in one ZPL.

Based on the example above, I used the following ZPL to encode, read and print successfully.

^XA

~TA000^MNN^MTT^POI^PMN,0^JMA^PR6,6^MD15^LRN^CI0

^MMT

^PW639

^LL0200

^RS8

^FO60,10

^A0N,20

^FN7

^FS

^RFW,A

^FD0data

^FS

^FN7

^RFR,A

^FS

^XZ

Hope this helps.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments