From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ZEBRA PRINTER

Hello All,

 

I have a Zebra ZT410 printer that I am using to print barcode labels. I have created a VISA resource and am using VISA write modules to connect to the printer. I am able to print labels that have 2 lines of text, followed by a barcode on the third line and the corresponding serial number on the fourth line. 

 

I can reposition the top two lines with no problem using ^FO however, I cannot get the third and fourth lines to move independently of each other. I can move both of them left or right but not just one of the lines. 

 

My end goal is to center the serial number under the barcode. 

 

^XA

^MD20

^A,25,15

^FO150,5

^FDTESTMOTOR_REV6_4814

^FS

^A,25,15

^FO150,20

^FD24VDC_2.7AMPS_07378

^FS

^FO5,30

^BC

^BY2,2,30

^A,25,15

^FO150,40

^FD481407378

 

Thanks in advance!

Sam

0 Kudos
Message 1 of 2
(2,964 Views)

You forgot to add the Field Seperators.  I think that is all you need to add (plus the label complete command).

 

See the first Excercise in the ZPL Manual.

 

zpl example 1.PNG

 

 

^XA

^MD20

^A,25,15

^FO150,5

^FDTESTMOTOR_REV6_4814 

^FS

^A,25,15

^FO150,20

^FD24VDC_2.7AMPS_07378

^FS

^FO5,30

^BC

^BY2,2,30

^FS

^A,25,15

^FO150,40

^FD481407378

^FS

^XZ

Kenny

0 Kudos
Message 2 of 2
(2,908 Views)