ZPL2 - can you print a degree symbol?

Hello there,

 

I'm writing ZPL-2 code to print to a Zebra Z410 barcode printer.  Is there a way to print a "degree" symbol in a standard Zebra font ^ADN?  I did a little search and found some logic to print ASCII characters, but it's not working.I am able to print the tilde symbol but not the degree

 

This is the code I am sending to a Zebra Z410 printer

 

^XA

^LH0,0

^FO50,50

^FO50,450^ADN,18,10^FPH\^FH^FDStore below 30 _B0 C. Protect from Freezing _7E^FS

^XZ

 

Any help will be appreciated!!.

 

cheers

Samantha Corn
Hi Zolf,You should be able to

Hi Zolf,

You should be able to print the degree symbol. I think you just had the hex wrong for it. According to page 1267 of the ZPL Programming Guide, The hex for a degree symbol is A7. I made this change in you ZPL and tried to print it on my ZD410, and it printed successfully.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Zolf Jafari
Hi Samantha,Thank you for

Hi Samantha,

Thank you for your response but for me it is not printing anything when i am sending this command to the printer.Please see the image I have attached. It prints the tilde but not the degree sign

20170805_130411.jpg

^XA

^LH0,0

^FO50,50

^FO50,450^ADN,18,10^FPH\^FH^FDStore below 30 _A7 C. Protect from Freezing _7E^FS

^XZ

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Samantha Corn
Hi Zolf,I tried it again on

Hi Zolf,

I tried it again on my ZD410 and ZQ520, both of which printed it successfully. There is an alternate degree symbol at _F8 that you could try using.

Are you able to print special characters other than the tilde?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Zolf,You can also try

Hi Zolf,

You can also try setting the code page, It might have gotten modified at some point on your printer.  Default is ^CI0  but you can also try ^CI27 in order to use the more Microsoft Windows friendly 0xB0 as your hex value like in your initial code. 

Another thing to try is giving the ^FH command a value.  Try this:

^XA

^LH0,0

^FO50,50

^CI27

^FO50,450^ADN,18,10^FPH\^FH\^FDStore below 30 \B0 C. Protect from Freezing \7E^FS

^XZ

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Zolf Jafari
Hi guys,Thanks a lot

Hi guys,

Thanks a lot everybody for your help. it worked when I added ^CI27. But the question for me is how or when could have this value been modified. Is there some command where I can check what code page I am using or if this code page has been deleted or modified.

cheers

Zolf

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
HI Zolf, Good question.  I

HI Zolf, Good question.  I don't think so.  If you are using a downloaded conversion table (.DAT file) you could check that it was present or not, but not what the printer is currently using... That sound like a request we can take to the product team. 

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Santharaj Arumugam
Dear Team, Please find the


Dear Team,

Please find the below Zebra Label Design , customer using DIA Symbol in  Zebra ZT410 - 203 dpi Not printer the DIA SYMBOL .Same Printer ZM400-203dpi ,DIA Symbol Also Printing the label, but it's not working ZT410-203dpi .I am able to print the tilde symbol but not the DIA

This is ZT410-203dpi printer the label 

This is Zm400-203dpi printer the label

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Santharaj Arumugam
^XA^FO0,64^GFA,02560,02560

^XA

^FO0,64^GFA,02560,02560,00020,:Z64:

eJztVb2O1DAQHodErFYUsdYRFJxkbbUFxT2CT8pS21LMtfcIFFyNdVVegD7aioqa8k6CB9jiCjp4Ehjnd2wHUSPdKHbk8efP82cb4En+H+FlqtukKmttopOQxaqLM7CPCQwS4A02plbMkcGo6nvxL+Ng8KEIdD+HH92EjX+9QkFp84A2nKe4aV6s4Ki8x1Zjex7pnQuGPiCVsWFkXErp3VA9KHFE0kExBFCEjsB2aIsO3b29fShsFGmZgQvyJhi31cO5UCTSG3Dtwbk7iisrWzffzFs9B9JLBtJ1AV9ZVsw053diTgxuekBc121f9J4PogRTqn4UOQ0MMkl5CnZQBbsy9ozWBQGUcOipFj5QUjUGivpIcEgnEbLfT2OuQWM6OLCl9g9ffew+t46s0zl+quKUq7dQAoV5XMkM/5QmrUUbF7EN5sae6yYm3LtTtgCZ5u6S2R+/Lx7t9c3kbL+l6/PWjbq6QD5l4AjLadh7gBzO5USJXpZMG9iRApzmMljip3LPdwXPCB/iXvmCobgK/WClBU74tq2v5hAnGsyiPua7+EoY+SYRAgpmv3MOpF782djcBXx5A+zYHM1O0boC+CL3v06OUGK1G11xo8d7pl+M7X4DmSOnDnWXSuQWgmqb4zLLcN7Yy+i8jWYuOnbffx+GiyEWueCwUirubYtKpm2Ju+O0N42G7+/XZHhRruGm+dcrcxTP9LJ/LI4OmoFWpbDwYahIPyM6378Jl3nC+P2QCR1SaWDX8Z5tZJ0XfN9S67IEBoyzRPckgfwBTJ5dcA==:0A66

^FO6,6^GB631,270,4^FS

^FO12,203^GB622,0,2^FS

^FO137,133^GB361,0,1^FS

^FO10,65^GB622,0,1^FS

^FO497,66^GB0,205,1^FS

^FO142,69^GB0,204,1^FS

^FT66,59^A0N,57,43^FH\^FDDC A400 420 28 01 ZGS 004^FS

^FT182,262^A0N,63,72^FH\^FDAF 5429M^FS

^FT184,122^A0N,63,72^FH\^FD29023234^FS

^FT55,262^A0N,70,72^FH\^FDBI^FS

^FT512,251^A0N,42,55^FH\^FDDICV^FS

^FT175,191^A0N,59,60^FH\^FD\9D 410 x 220^FS

^FT524,156^A0N,28,28^FH\^FDREAR ^FS

^FT524,189^A0N,28,28^FH\^FD   RH^FS

^FT519,121^A0N,28,28^FH\^FDRT4-1^FS

^FT539,91^A0N,28,28^FH\^FD25T^FS

^LRY^FO144,206^GB353,0,63^FS^LRN

^LRY^FO144,68^GB353,0,63^FS^LRN

^PQ1,0,1,Y^XZ

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments