I'm building a "Zebra Terminal" to send commands and receive information from our Zebra Printers. Two pieces of information I'm looking for are: Left Position and Label Top, but I'm not sure what these parameters are called on the machine. I can, of course, change them with ^LS and ^LT but don't know how to get the machine to tell me them.
I've tried: ! U1 getvar ""zpl.left_position" " " ! U1 getvar ""media.left_position" " " and ! U1 getvar ""device.left_position"" " ' but it doesn't recognize those names.
I know the machine can as the Zebra Web interface shows below. Any help welcome! Thank you!
Receive Left Position/Label Top |
2 Replies
For get/set label top position, use the following SGD commands:
! U1 getvar "zpl.label_top"! U1 setvar "zpl.label_top" "100"
For get/set label left position, use the follwoing SGD commands:
! U1 getvar "zpl.left_position"! U1 setvar "zpl.left_position" "100"
Hope this helps.
Hello Justin,
I was unable to find a way to read value of label top position with any command.
However, you can try to use following SGD command to obtain label left position value:
! U1 getvar "zpl.left_position"
You can see details here: https://www.zebra.com/content/dam/zebra/manuals/printers/common/program…
Also you may need to check printer compatibility information on page 1405 of mentioned document.
Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies