Need help with Encoding an EPC

// Expert user has replied.
S Sonu Kapoor 3 years 7 months ago
64 1 0

I am using the following page as a helper:
 
http://www.tharo.com/documents/tech582.htm
 
On that page the EPC is broken down into the bits that need to be passed to the printer in ZPL.
Based off that I have used the following ZPL and sent it to the printer:
 
^XA
^RB96,8,3,3,20,24,38^FS
^RFW,E^FD48,3,5,0614141,100041,1^FS
^XZ

Unfortunately I do not get the same EPC written to the tag as outlined in the document.
Do you see any issues with the ZPL?
The code I am using to print this:

NSString *zplData = @"XA^RB96,8,3,3,20,24,38^FS^RFW,E^FD48,3,5,0614141,100041,1^FS^XZ";
NSError *error = nil;
success = success && [thePrinterConn write:[zplData dataUsingEncoding:NSUTF8StringEncoding] error:&error];

Thanks

Please Register or Login to post a reply

1 Replies

M Manuel Caicedo-Rivera

Hi Sonu,

How are you reading the EPC?

To write EPC you should use RFW, and for reading the EPC, you should use RFR.

Like the sample on pag 396 of the ZPL Programming Language manual. Please, see link below.

https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2…

To read this EPC data and print the results on the label, you would use the following code:
^XA
^RB96,8,3,3,20,24,38^FS
^FO50,50^A0N,40^FN0^FS
^FN0^RFR,E^FS
^XZ

Thanks,

Manuel Caicedo

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