Need help with Encoding an EPC

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

Manuel Caicedo-...
Hi Sonu,How are you reading

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-pm-en.pdf

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

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Sonu Kapoor
I am using RFW. I am using an

I am using RFW. I am using an RFID Reader Software to read the tag. It's definitely not giving me the same EPC back. Do you see anything wrong with my ZPL or the iOS code? I can't print the results back at the moment as I don't have a ribbon installed. Would I need one to encode?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Manuel Caicedo-...
Hi Sonu,The ZPL looks to be

Hi Sonu,

The ZPL looks to be correct, please, could you implement the code I posted to read the tag, and let me know what results did you get?

Also, could you give us the specifications of the RFID reader that you are using, and the tags' specifications.

You do not need to use the ribbon to do that, but you will need to change the configuration of the printer to avoid the "ribbon" alert.

Thanks,

Manuel Caicedo

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Sonu Kapoor
Ok. I am trying to find out

Ok. I am trying to find out how to call the read function. Will reply back as soon as I know.

I am using the TSL1128 gun and the RFID Explorer app to read the SGTIN 96 BIT tags.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Sonu Kapoor
It seems that my ZPL was

It seems that my ZPL was wrong. Here is the correct one.

I had an extra ^FS and the width were off as well.

^XA^RB96,8,3,3,24,20,38^RFW,E^FD48,3,5,0614141,100041,1^FS^XZ

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


ISV NALA
Is It working now?

Is It working now?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Sonu Kapoor
Yes. I got it working.On Sep

Yes. I got it working.

On Sep 28, 2015 6:53 PM, "ISV NALA" <

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments