Troubleshooting
On this page
- Scripts: system.innorobix.zpl is not found, or a print call does nothing
- A network printer does not connect
- A USB printer: “There is no printer named …”
- A USB printer: the job says OK but no label comes out
- A network printer: the job ends “Failed: Outcome unknown: …”
- A USB printer: the job fails with “The print queue did not accept the job within 60000 ms”
- A USB printer: raw ZPL is refused
- A USB printer shows NoStatus and its Status/* tags are bad quality
- A printer is saved but does not run, “Host is required” or “OS printer name is required”
- An image is refused: “Only PNG and JPEG files can be converted”
- A label with an image fails: “uses the image X, which is not stored on this gateway”
- A photo prints rotated
- The image prints too dark, too light or as a black block
- A GS1 function raises an error
- The GS1-128 barcode does not scan
- The LastJob tags are Bad, or empty
- Not licensed, or only 2 printers run
- What to send when you ask for help
Read the gateway log first. Everything the module does, it does on the gateway, so the answers are in the gateway’s log
(the log view of the gateway web UI, or wrapper.log on the gateway machine), not in the Designer or
a client. Filter on innorobix.zpl. Every line names the printer. Loggers: innorobix.zpl.device (connection, one
WARN per fault), innorobix.zpl.print (jobs, refusals), innorobix.zpl.config (template changes), innorobix.zpl.trigger.
Scripts: system.innorobix.zpl is not found, or a print call does nothing
The functions exist in gateway scope only: gateway event scripts, Perspective session and component scripts that run on the gateway, tag change scripts. They are not available in Vision client scripts or in the Designer script console. Printing always goes from the gateway, so the printer, or the printer’s Windows installation for a USB printer, must be reachable from the gateway machine. A printer that works from your laptop proves nothing about the gateway.
A network printer does not connect
_Status/Stateand_Status/LastErrorof the printer say why (Reconnecting, refused, timeout).- From the gateway machine, not your PC, check the host and port (TCP 9100 by default).
- Many print servers accept one raw 9100 session at a time. Another program that prints to the same printer may block this module, or the module may block it (see the Compatibility chapter, Network).
- No
~HSanswer: printing still works; see the Quick Start chapter, “Printers that do not answer”.
A USB printer: “There is no printer named …”
The state or LastError of the printer (and the Test result) gives the reason followed by “Installed:” and as many installed
printer names as fit in 200 characters, then “and N more”. The Test button for a USB printer only checks that Windows
lists a printer of that name; its “answered” text does not mean the printer replied. The cause is nearly
always one of these.
- The name is not exact. Copy it from the list in the message, or from Windows (Settings, Printers and scanners).
A part of the name, or a different letter case, does not match. The same list is at
GET /data/zpl/config/os-printersin a signed-in gateway session. - The printer is installed on the wrong machine. It must be installed on the gateway machine. A printer installed on an operator PC or on the Designer machine is not seen by the gateway.
- The gateway service account cannot see or use the printer. The Ignition gateway runs as a Windows service,
often as
Local Systemor a service account, not as the user who installed the printer. A printer added only for your own user, or one shared with permissions that exclude the service account, is not in the gateway’s list or refuses the job. Open the Windows Services list, find the Ignition gateway service (its name depends on the installation) and look at its Log On account, then give that account Print permission (Printer properties, Security tab), or install the printer for all users. The module tries again by itself; if the printer does not connect, disable and enable it. - The list is empty and the message says “No printers are installed”. The gateway machine has none, or the service account sees none (same cause as above).
- The gateway is not Windows. Saving
OS_PRINTERis refused with “OS printer transport is supported on Windows gateways only”. Use a network printer. - The same printer name exists twice. The module uses the first and logs one WARN; rename one of them.
A USB printer: the job says OK but no label comes out
OK: sent to the print queue means the Windows print queue accepted the bytes, nothing more. The module gets no answer
from the printer. Look at the Windows print queue on the gateway machine (is the job stuck, is the printer offline or
paused), at the printer itself (paper, ribbon, head, error light) and at the driver. Use the Generic / Text Only
driver: a driver that renders pages can change the ZPL before it reaches the printer. Print the test label (Quick Start chapter)
before blaming the template.
Do not send the job again until you have checked the queue: the module never resends a job, and a job you send again may print twice.
A network printer: the job ends “Failed: Outcome unknown: …”
The job was sent, but the printer did not report that it finished it. Read the reason in Queue/LastJobResult or the
job history: “still reports work” (the printer’s buffer did not empty; it may be printing a large batch, paused or
out of labels), “reports paper out” (or ribbon out, head open, paused, temperature error), “sent no ~HS answer” (the
printer is in a state where it sends none, or does not support ~HS), or “the connection ended”. Look at the printer.
The label may be printed, may print when you clear the fault, or may be partial. The module never resends the job;
if you send it again after the printer printed the first, you get two labels. For a printer that cannot answer ~HS
at all, set the print confirmation wait of that printer to 0.
The extended alert tags (Status/HasError and the named flags) stay bad for a printer that does not answer ~HQES; the
log says so once at INFO (innorobix.zpl.device). Check the layout of the printer’s answer in your environment before
you build alarms on those tags.
A USB printer: the job fails with “The print queue did not accept the job within 60000 ms”
The full text ends “Check the print queue before sending the job again.” The queue did not accept the job within 60 seconds. The job may still print
later. Check the Windows print queue for the job before you resend. The printer shows NoStatus while this happens, so
the state tag will not tell you.
A USB printer: raw ZPL is refused
Raw ZPL with ~HS, ~HI or ^HQ is refused for a USB printer (one WARN in innorobix.zpl.print). A print queue cannot
carry an answer back, so such a query would be lost. Remove the query from the ZPL. The other raw-ZPL rules still apply
(see the Quick Start chapter, “Raw ZPL is off by default”).
A USB printer shows NoStatus and its Status/* tags are bad quality
That is the normal state of a USB printer: the module reads no status from a print queue. There is no online, paper-out or head state. Do not alarm on these tags for such a printer.
A printer is saved but does not run, “Host is required” or “OS printer name is required”
The settings page cannot check one field against another. NETWORK needs a host and OS_PRINTER needs a printer name.
Edit the printer and fill in the field of its connection type.
An image is refused: “Only PNG and JPEG files can be converted”
The module reads the first bytes of the file, not its name, so a GIF or BMP saved under a .png name is refused with “The image
is a GIF” or “The image is a BMP”. Save the image as PNG (RGB or gray). “could not be read” usually means a damaged
file or a JPEG in CMYK colours: open it in an image editor and save it again as RGB. “The image is N x N pixels; the
limit is 8000000 pixels” and “the limit is 4096 dots on a side” or “400000 bytes” are size limits: reduce the image or
give a smaller width or height. Every refusal is one WARN in innorobix.zpl.graphics (a script call) or
innorobix.zpl.config (an upload) with the same text.
A label with an image fails: “uses the image X, which is not stored on this gateway”
The template has ^GF${asset:X} and no image of that name is stored. List the stored names with GET /data/zpl/config/assets or system.innorobix.zpl.listAssets() and upload the image (names ignore letter case). Nothing
is sent to the printer when this happens. The image can be missing on a second gateway after you imported the templates:
images are not part of the template export; upload them there too.
A photo prints rotated
The module does not read the orientation note that a phone adds to a JPEG, so the picture prints as the pixels are stored. Save the image again upright (open and save it in an image editor) before you upload it.
The image prints too dark, too light or as a black block
Printer darkness and print speed decide this, not the module; the module never changes a printer setting. Try
dither="threshold" with a threshold between 100 and 160 for a logo, floyd-steinberg for a photo, invert=True for
a white logo on a dark background, and a width that matches the printer’s dots per inch. A very large graphic can also
exceed the printer’s memory; the printer then prints part of it or nothing, and the module cannot see that.
A GS1 function raises an error
The message names the value and says what is wrong, for example “The check digit of (01) 09501101530004 is wrong: the
last digit should be 3.” or “The company prefix must have 4 to 12 digits”. The module never corrects a value for you.
Pass keys as text ("0950110153000", not 950110153000): a number loses its leading zeros. “is not supported by this
module” means the application identifier is not in the list in the Quick Start chapter.
The GS1-128 barcode does not scan
Check the label with the scanner you use. Keep the UCC check digit and mode parameters of ^BC at N (the module
already puts the FNC1 and the code-set changes into the data), make the barcode wide enough (a longer value needs a
smaller module width ^BY or a wider label), leave a quiet zone of at least 10 modules on both sides, and use the
zpl value of gs1Barcode unchanged in a template field.
The LastJob tags are Bad, or empty
Bad after the printer disconnected (switched off, network down, or restarted after a saved change) is intended: the tags keep the last job’s values and turn Good again with the next job, not at the reconnect. The record is not damaged. Empty after a gateway restart is also intended: the tags hold the last job only, until the next job. A script that stores records must act on a changed value of LastJob/Record, not on the quality (Quick Start, “Storing records”).
Not licensed, or only 2 printers run
See the Compatibility chapter, Licensing. A USB printer counts as one printer like any other.
What to send when you ask for help
The module version, the gateway’s Windows version (for a USB printer), the printer’s connection type, the exact line from
innorobix.zpl and the state of the printer’s _Status tags. Do not send label content or licence keys; the module does
not log either.
Generated from the module's documentation for version 8.13.0. Questions: contact us.