Overview
The Label Manager Module operates as a hybrid Ignition extension spanning both the Gateway and Designer scopes. The module decouples label visual authoring from physical output execution. Visual templates are constructed and serialized as standard Ignition project resources inside the Designer. Hardware socket management, status polling and sending raw commands execute exclusively within the Gateway runtime.
Ignition Scope Distribution
Gateway scope
-
Device Driver - manages TCP/TLS network sockets to printers, schedules heartbeat/status polling, and exposes device diagnostics as system tags.
-
RPC Dispatch Handler - receives print and preview requests initiated from Designer test routines or client/gateway scripting functions via remote procedure calls.
Designer scope
-
Resource Workspace - implements the WYSIWYG canvas, component palette, grid snapping, property editors, and Project Browser hooks for labels.
-
Live Preview Engine - listens to live tag changes and expression updates inside the Designer to render active values onto the canvas.
Data Flow
Lifecycle
On module startup, the Gateway registers the ZPL Printer device, along with the RPC handlers for Designer communication and script functions under the system.labelManager.* package. It restores configured printer connections and initiates polling schedules. The Designer regusters the new workspace in the Designer context, adds custom resource types to the Project Browser tree, loads the component palette and registers drag-and-drop handlers. On shutdown, the Gateway terminates the background polling, closes the sockets and unregisters the devices and script namespace. The Designer closes the open canvas editors and unbinds the dynamic preview listeners. It also unregisters workspace panes and project resource hooks.
External Dependencies
-
An Ignition installation compatible with the module release.
-
A ZPL-compatible printer, reachable from the Gateway over the configured network connection.