Hello
I'm having difficulties with printing the label. I made a label with a Zebra designer. save to file, and used that code in the script.
everything works fine, but I'm unable to print objects/logos.
Tried with online generator as well, and works as fine as Zebra designer.
http://labelary.com/viewer.html
So the question is if there is some issue with the code or with the script?
I'm using Labview to send data. later on, will try with phyton.
BR Daniel
my code as follow:
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR5,5~SD15^JUS^LRN^CI0^XZ
^XA
^MMT
^PW559
^LL0240
^LS0
^FO448,160^GFA,01152,01152,00012,:Z64:
eJxjYBgFgwjw///D+P//Pyj7PzK7EQf7IFb2h/oDjP+gZn6wx8Gub4Cz//9HZjMg2H8YsIujqMdhvvwD0tj2D5DMfIDVfFQ2Djf/gLNHwSAHAFLYaCI=:3572
^FO0,96^GFA,01280,01280,00020,:Z64:
eJzt0TEOgyAUBmAMA8fgJnAxAx4Nw8A1aDo4FuMgTQn08RiKMU08gP/A8EV4P0LInTt/ww0szBDqf6bD2Uo82YAGOVg6W0zMi90U6uli+NSM8Cj3uVhPX17ix0MmMsnFViseS8BcX82VJ1gozXRUSjJnwbb13UrwNArBDAN7rKEZzTqD6d6IqjaXzmhAs1tvMY9EtBnVKtKSFcxwDu2NBveVCQzPg364+WDax9aZR5jx6Y0b+C9sXtH4FC8/2p3r+QLPmqcj:F308
^FO384,0^GFA,01920,01920,00020,:Z64:
eJztk0FrE1EQx+ftLtkUG6M9SOoeEuuz5w0pIYVol+Ihh4Jf4YEgOQRZPUjFoi/koIJKj+nNgx8gH2HbQ+lJPAZ7WTzY63rbIHT9z9s2BJKjehAnw768H7Nv/jPzlui//VWrLWDhAnYyj8Qns1Rmmf10nhXemkXOspKj59hNK+Ble5ZtCCPw6yzr0j4vB7PsC3VY0R1zqmtcfDTHC2nYc7gmO6AVbKxtziT6RBHkaVpilUfMLJdsoalExAKdPmd3WlSoEnnp7kuELIkRWDGiooK8NJ0gZMkouq6pgpe6fqiwXWmzotvALM8Pa9jekMzWid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p0++ivc6maW3kb5Cl+auBt4F6mI/vLLw+bgYw8OIIb8tErUVWyFdd3Km3zT+blEUvlsReNctBVsUf7gF6wSa0n6BviJXMM37bPuYXDzK0lF4fx5Lq+7p3hXwl3tePLNXvOJ/i9/+D2TY:3B4F
^FT15,63^A0N,45,50^FH\^FDDA-V-CCV^FS
^FO9,165^GB538,0,4^FS
^FT251,221^A0N,22,19^FH\^FDwww.lindab.com^FS
^FO160,110^A030,45^FD%s^FS
^FO20,115^A030,25^FD Serial no.^FS
^PQ1,0,1,Y^XZ
^P1
5 Replies
First of all, there is an invalid ^P1 in the ZPL that is outside ^XZ at the end. The ^P1 should be removed. Secondly, try to append the "\r\n" at the end of each text line of the ZPL command in your script.
Hi,
Tryied with "\r\n" on each line as you recomended.(^FO20,115^A030,25^FD Serial no.^FS\r\n) Didint helped.
P1 was used by Labview Users as a command to print directly to the USB port. Didn't have an effect on the print.
I was thinking if saving the logo on the internal printer memory will help?
Is there any other way to skip GFA command, looks like there is something in the way with that command. actually, I have twice "Serial no." in the script.
One with ^FD works, but another one with GFA dosent.
BR Daniel
HI.
Just run some tests with Python, ;( works perfectly.
Looks like there is some issue with the Labview.
PS. Work fine also when I'm calling phyton script from the Labview code. So probably Labview driver doesn't support all commands.
PSS. Will be great if it will work directly from Labview. So still I'm looking for the solution.
I'm glad that it works with Python. Probably the Labview driver may not handle all the characters in ^GF command correctly. Maybe the Labview driver encodes the characters differently. Does the Labview driver use UTF-8 encoding?
Hi,
It can be.
Zebra could think more about Labview users and deliver a Labview library to the users, I can see there is potential on the market.
I will stick to the Phyton script.