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

D Dan Hooper 3 years 7 months ago
926 1 0

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!

Please Register or Login to post a reply

1 Replies

D David Perugachi

Hi Dan

Did you find any solution to your problem? Its a very common scenario.

Thanks for your feedback in advance.

CONTACT
Can’t find what you’re looking for?