I have an existing application that is trying to print labels to a new ZT410 (203 dpi, firmware V75.20.14Z) printer but the images are being drawn too large and don't fit inside the label. In the application we have a calibrate button that sends the following to the printer:
"! U1 setvar \"device.languages\" \"zpl\" \r\n" +
"! U1 setvar \"media.printmode\" \"T\" \r\n" +
"! U1 setvar \"media.type\" \"label\" \r\n" +
"! U1 setvar \"media.sense_mode\" \"gap\" \r\n" +
"^xa^jus^xz"
And then we measure the size of the label by querying with SBD
val height = SGD.GET("zpl.label_length", connection).toInt()
val width = SGD.GET("ezpl.print_width", connection).toInt()
The problem we are having is that sometimes the zpl.label_length comes back with a really strange value, 8170, and sometimes, but very rarely we can get it to return us the correct 211 and then the printer will print the label correctly.
We are using the Link-OS sdk version 2.14.5198
Is there something we are doing incorrectly? Is this a bug in the ZT410? We also use the same code for ZQ510 printers with no issue.
Please advise.
ZT410 Printer Width Problem |
0 Replies