ZPL code works for S4M but not for ZT410

// Expert user has replied.
M Mario Hernandez 3 years 7 months ago
71 2 0

I have tried this in several printers. Very simple ZPL code generated by ZebraDesigner for mySAP. The ZebraDesigner software adds the forward slash ( "/" )on every line.
 
I'm using the internal web server these printer have and then i create the script there and print the label. The S4M prints the label. The ZT410 doesn't. By the way, this is how you import these labels into SAP. But this IS NOT AN SAP issue. What's wrong with the ZT410?
 
/(CT~~CD,~CC^~CT~
/:NEW-PAGE
/(^FX[Fonts]^FS
/(
/:NEW-PAGE
/(^FX[Format]^FS
/(^XA
/(^DFR:ZASC_Mar.ZPL^FS
/(~TA000~JSN^LT0^MNW^MTD^PON^PMN^LH0,0^JMA^PR4,4^MD15^LRN^CI0
/(^MMT
/(^PW812
/(^LL0305
/(^LS0
/(^FT37,72^A0N,34,33^FB370,1,0^FH\^FN7^FS
/(^FT37,113^A0N,23,24^FB286,1,0^FH\^FN8^FS
/(^FT168,151^A0N,23,24^FB54,1,0^FH\^FN9^FS
/(^FT39,188^A0N,23,24^FB213,1,0^FH\^FN2^FS
/(^FT320,245^A0N,39,38^FB460,1,0^FH\^FN12^FS
/(^FT207,246^A0N,39,38^FB107,1,0^FH\^FD- MK:^FS
/(^FT38,150^A0N,23,24^FB123,1,0^FH\^FDSales Office:^FS
/(^XZ
/(
/:NEW-PAGE
/ ^FX[Recall]^FS
/ ^XA
/ ^XFR:ZASC_Mar.ZPL
/ ^FN12^CI17^F8^FD&GW_MARK-ATWRT&^FS
/ ^FN7^CI17^F8^FD&GW_MARK-NAME&^FS
/ ^FN8^CI17^F8^FD&GW_MARK-MAKTG&^FS
/ ^FN9^CI17^F8^FD&GW_MARK-VKBUR&^FS
/ ^FN2^CI17^F8^FD&GW_MARK-SO_ITM&^FS
/ ^PQ1,0,1,Y
/ ^XZ
/ ^FX End of job

Please Register or Login to post a reply

2 Replies

M Mario Hernandez

The Zebra Support team figure it out.

It looks like the "/" in each line makes this ZPL code to be interpreted when the printer is setup as "ZPL only" language. The current setting of my printer was ZPL/EPL Language.

By sending the following 3 lines of code to the printer, it set the printer to "ZPL only" and that fixed the issue.

! U1 setvar "device.languages" "zpl"! U1 setvar "device.pnp_option" "zpl"! U1 do "device.reset" ""

S Samantha Corn

Hi Mario,

Does the ZT410 print anything? The ZPL you have looks fine as long as the saved formats you're using are ok. Have you tried printing the label to the ZT410 not through SAP? You should be able to print the label using Zebra Setup Utilities​ if you remove the leading /('s.

If the label does't print, are you able to print any other ZPL? Here's some ZPL to print a simple Code128 barcode you can try:
^XA
^FO100,100^BY3
^BCN,100,Y,N,N
^FD123456^FS
^XZ

Another thing you try is recreating the label in ZebraDesigner but selecting the ZT410 as the intended printer in the Label Setup Wizard.

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