Installation
Test the module in your environment before production use.
The module is for Ignition 8.3 only (-ign83.modl). It supports network printers and USB printers through the Windows
print queue.
What to prepare
Two ways to reach a printer, chosen per printer in the Connection type field:
- NETWORK: the printer needs a network port that the gateway machine can reach on TCP 9100 (or the port you configure).
- OS_PRINTER (“USB printer (Windows print queue)”): the printer is installed on the gateway machine and the module sends the label to its Windows print queue. Requirements and limits are listed below. Serial printers are not supported.
USB printers (Windows print queue): what to prepare on the gateway machine
- The gateway machine must run Windows. On any other operating system the module refuses to save a printer of this type, and a stored one does not run.
- Install the printer on the gateway machine itself, not on an operator PC or Designer client. Printing always goes from the gateway, so a printer installed on a client is not seen.
- Use the Generic / Text Only driver, which passes the ZPL through unchanged. A driver that renders pages (a normal Zebra “ZDesigner” graphics driver) may convert or garble the ZPL.
- The Windows account that runs the Ignition gateway service must be allowed to print to that printer. A gateway
service often runs as
Local Systemor a service account, not as you; a printer shared or installed only for your own user is not visible to it. Set the printer’s permission (Printer properties, Security tab, Print) for the service account, or run the service as an account that may print. - In the printer form choose OS_PRINTER and enter the printer’s exact name as Windows lists it (Settings, Printers and scanners). A part of the name, or another letter case, does not match. If the name is not found the state shows the reason together with the first installed names that fit in 200 characters.
What a USB printer does not give you:
- No printer status. There is no online, paper-out, ribbon or head state, no model or firmware:
_Status/StateshowsNoStatusand theStatus/*tags have no value (bad quality). Do not alarm on them for such a printer. - “Sent” means the print queue accepted the job, not that the label was printed. A printer that is off or unplugged can still accept jobs into its queue, and they print when it returns.
- A job that fails with a timeout may still print later. The module never sends it again by itself; check the print queue before you send it again, or the label may print twice.
- Raw ZPL that asks the printer a question (
~HS,~HI,^HQ) is refused for these printers: there is no way to read an answer back through a print queue. - It counts as one printer for the licence like any other.
Print one test label on your own printer before you rely on it, and see the Troubleshooting chapter.
Install the module
- Download
ZPLLabelPrinting-<version>-ign83.modl(Ignition 8.3) from the release page and check it againstSHA256SUMS.txtof the same release. - In the gateway web UI open Platform > Modules > Install or Upgrade a Module, choose the file and accept the
signing certificate and the licence. The certificate is named
Innorobix Automation Inc: it is the certificate of Innorobix Inc., the company that publishes the module and licenses it to you. The licence the gateway shows is the Innorobix Module Licence Agreement (IMLA), with its version and date at the top, followed by the open source notices of the components in the module. Read it before you accept: installing or using the module accepts the IMLA. It explains that the module stops at the licence end date unless the licence is renewed and paid for. - The module appears as ZPL Label Printing with state Running. Without a licence it runs 2 printers while the gateway is in trial. On an activated gateway without a licence for this module, no printer runs (see the Compatibility chapter, Licensing).
- Licence: activate the licence key for this module in Platform > Licensing like any Ignition module licence. Renew through Inductive Automation activation before the licence end date, or let the module renew online (optional): enter the key in the Licence key field of the Module settings card on the module’s Connections page (Compatibility chapter, Licensing). With the key field empty the module contacts no Innorobix server and connects only to your printers. To buy or extend a licence, contact www.innorobix.com.
- Add printers under Connections > ZPL Label Printing > Printers (Quick Start chapter). Try a test label on a printer that is not on a production line first.
The system.innorobix.zpl.* functions exist in gateway scope only (gateway event scripts, Perspective session and
component scripts that run on the gateway, tag events), not in Vision clients or the Designer script console.
Printing always goes from the gateway, so the printer must be reachable from the gateway machine (network printers:
TCP 9100 or the port you configure). The gateway logs (logger names starting with innorobix.zpl) are where to look
when a printer does not connect.
Unattended install, stored configuration and upgrade
Unattended or container install (module file copied into user-lib/modules, or a gateway restored from a backup on a
new installation): the gateway does not run this module until its certificate and licence are accepted. A new gateway
stops in the commissioning step for modules; accept the Innorobix certificate and the licence there, or use the
gateway web UI.
If a new version carries a different licence text (a new IMLA version, or a new open source notice), the gateway may ask you to accept it again.
Where the settings are kept: printers, label templates and label images are stored as the gateway’s configuration
resources, as other Ignition 8.3 configuration is. Each printer, template and image is one resource in the gateway’s
core collection; on disk this is one folder per printer, template or image under <gateway data>/config/resources/core/. They
survive a restart of the module or the gateway and are part of a gateway backup (.gwbk). Do not edit these files by
hand: a file the module cannot read is left untouched and named in the gateway log. The module keeps nothing in the
gateway’s internal database.
Limits of the stored configuration:
- A change made outside the module (a hand edit, a git or EAM pull of the config directory, the gateway’s resource API) is not seen until the module restarts. Restart the module after such a change.
- Saving a printer on the backup node of a redundant gateway pair is refused. Make changes on the primary.
- If a deployment mode overrides the module’s resource type, a deleted printer can come back. Do not override that resource type in a deployment mode.
- The gateway’s change history shows no user for changes made by the module. The module’s own log (
innorobix.zpl.config) names the user for template changes.
Upgrade: install the new .modl over the old one. Stored printers, templates and images are kept.
Uninstall: removing the module stops every printer and removes the tag provider [ZPL]. The stored printers,
templates and images are left on the gateway as resources.
Generated from the module's documentation for version 8.13.0. Questions: contact us.