Receive Left Position/Label Top

J Justin Riendeau 3 years 7 months ago
463 2 0

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!

Please Register or Login to post a reply

2 Replies

Y Yanis Dalabiras

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.

D Dmitry Prokhorov

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

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