Barcode either too long or truncates to even characters Code C vs Code B
I posted this and got a very helpful answer. https://support.seagullscientific.com/hc/en-us/community/posts/4420309997591-why-are-we-getting-the-in-our-prn-file-
follow up question, changing this to code B makes the barcodes really long (makes sense, as the point of type C is to reduce the size). Is there a way to keep using code set C and to get the 9th character in the barcode to show up when scanned? Thank you!
-
You would need to include a switch subset command into your string so for example for a Code128 barcode 12345678A in ZPL the command after the Field Data command (^FD) would be ^FD>;12345678>6A^FS
Here the >; instructs the printer to start in Subset C and then the >6 switches it Subset B for the A
1 -
Ahh, ok. We'll have to break up the input. We have a variable there right now and it prints when it is even, but it truncates the odd character if there is one. we are creating a prn file that gets used with the application to fill in the variables: ^FD(17)!BarcodeDate!(10)!FinishedGoodsLot!^FS where the finishedgoodslot can be 8 or 9 characters.
0 -
I hope that is not a copy of part of the barcode command but just part of the one for the human readable. The brackets are not encoded in the barcode itself and only appear the human readable. You will need to create your with the barcode and human readable as two separate commands as you are using a GS1-128 symbol so you would have something like for today's date (YYMMDD format) and the Lot number:
^BY6^BCN,156,N,N^FD>;>8172202011012345678>6A^FS
^A0N,51,69^FD(17) 220201 (10) 12345678A^FS
(The ;>8 is the function one command)
0 -
If we want to start in subset B and then switch to subset C, what is the switching command to C?
0 -
Probably best to check in the ZPL II programming manual but it looks like it would be
>: to start in subset B
and
>5 to shift to subset C
0 -
Yes - that works.
Thanks for the response!
0
Please sign in to leave a comment.
Comments
6 comments