Zpl code for Zebra Printer (Strings on Micrologix PLC)
Here's an example for the printer I install yesterday.Ĥ.- If you need the PLC program let me know i will send it to you. (ASCII Config for Port 0 or 2)Ģ.- You have to use AWT instruction to send "STRINGS" over Channel 0 or 2.ģ.- If everything is ok, there's a trick for this PLC model on the ZPL Code, pls be advice that you have to add and \ before any ^. ❺lguien de ustedes sabe que formato exacto debe ser para que la impresora pueda imprimir?ġ.- Confirm Baud Rate, Stop bits, etc. He intentando comunicarme con una impresora zebra modelo GK420t por medio de puerto serie enviando codigos ASCII en formato HEXADECIMAL pero solo he logrado que me parpadee el LED sin imprimir nada.
what steps have i to follow? any example?Įdit: I know how to recall a format or a grafic, but how can i save them before? what have i to do to save some formats or grafics? I whould like to do something like he told me, to save something to be called later as many times as i like. Thanks for being so polite with me :beer:īTW can someone explain me better what zap358 told me? i'm a rookie and also my english is not the best. I will continue to be able to do things like zap358 said, but the first step is completed.
The problem was the settings of the serial port as JordanCClark said. I got it! Thank you so much to everyone ) Had to reset the printer's serial port settings to match the PLC serial port. Spent a half-hour last week troubleshooting a printer until I found out that the maintenance associate had reset the printer to default settings. No special settings to use the serial port, but the settings of the PLC serial port and the printer must match (baud, stop bits, parity). Here are links to Zebra's Programming Language Vol 1 & 2: However, I had done some reading in preparation for that upgrade.
We were supposed to upgrade all our Intermec 3600 printers to Zebra ZM600 earlier this year, but that was knocked on the head. Your label format then prints out with its fields filled with the data contained in the ASCII string. You then send ASCII strings containing ZPL commands such as font type, size and co-ordinates, barcode type, number and co-ordinates, and which stored format to use.
Or you may be able to use software similar to Intermec's 'PrintSet' to send format and graphics files to the printer. This doesn't print anything, it just stores the label format in the Printers memory. You can then open created format files in Notepad and use 'Print' to send the format to the printer. You design your label using fields, such as text or barcode, etc.
I'm not sure what software is used to create formats for Zebra printers, but I have used LabelDesigner for Intermec printers.
The 'templates' you are refering to Tharon are usually called 'Formats' or 'Masks' in the printing world. They are indeed ASCII based command sets. Zebra printers use ZPL (Zebra Programming Language), similar to Intermec's IPL, which I have some experience with. I know our IT guy worked with the Zebra Tech support and they were helpful. It's been about 5 or 6 years since they were initially setup, so my memory's a little flaky, but I could look up my old information if you need it. Prints a label using the named template filled with the variables in the ASCII string. The command contains a File Name and any variable data. Then it waits for an ASCII command across it's serial port. This template contains a file name and permanent/variable data. These Zebra printers are model number ZM400.įrom what I remember about their setup, a template is 'printed' to them from a computer. I will gather more info on our printer model number later today when I get out on the shop floor. So depending on what Zebra printer you have, I would say it is a special purpose printer. I send it an ASCII string containing print variables and start command variables, and it prints a template filled with the variables. The Zebra printers I was given by my IT department are specifically designed to read variables from an ASCII string. I have a few Zebra printers being controlled by AB Micrologix PLCs.