Usage of Printer Code Templates
Does anybody have a working example of a Printer Code Template?
We have a food production environment with bag and case printers for lot numbers and best-before-dates. Printer makes are mostly Markem-Imaje, VideoJet, SATO and Zebra.
For our normal operation we can use a direct print from BarTender, but when connected with a PLC, we would need a simple stored layout which can receive a few variable data items to fill in the print.
BarTender standard documentation on the subject is very thin, therefore I would ask for help from the community, if anybody has any experience with this.
Any feedback is much appreciated!
Cheers, Harry
-
Peter Thane
★ BarTender Hero ★
Not done any for a while, and only once with Sato I think but a few times with Zebra.
For the latter you would need to add the fields you want onto your label template and then configure them to be input fields such as like this (output file shown to the side)
At print time you would then need to recall the label and send the field variables down to the device with a file such as this
^XA
^XFE:OutputTest.ZPL
^FN1^FD123456789^FS
^FN2^FD987654321^FS
^XZwhere 123456789 and 987654321 are the two data strings
0 -
Harald Rauch
★ BarTender Hero ★
Thanks Peter Thane this is much appreciated.
I get the basic idea, because in the past I have worked with printers which had stored layouts and my application had to send the variable parts. I am just struggling with how to create a template from scratch, which I then can export as if it came out of Colos or Clarysoft :-)
I'll have a go and see where it takes me!
0 -
Peter Thane
★ BarTender Hero ★
Just create the label as if you were printing it directly from BarTender to the correct printer and then configure the Printer Code Template tweaking the print time/variable fields as above.
With a full licence you could just use the print to file option too to get the code, but you would then need to edit to add the ^FN commands etc so the Printer Code route maybe simpler in the long run and also probably better if you ever need to tweak/adjust the label layouts in the future
0
Iniciar sesión para dejar un comentario.
Comentarios
3 comentarios