05-04-2016 02:15 PM
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
05-06-2016 11:08 AM
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.
^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