Help · version 1.1
Label destinations GESXNQLD
ContentsA destination is where a label goes: a network printer, which X3 sends the labels straight to; a
directory that the label files are written into, where a queue script takes each file and sends it
to a printer; or BarTender, which prints a BarTender label through a connection. Labels comes with
an example queue script, XNQL_QUEUE.ps1, which sends a directory’s files to a printer that takes
ZPL, such as a Zebra;
the install guide says how to
run it.
Prerequisites. For a network printer, the X3 server reaches the printer’s address and port over the network, and X3 may run the send on its server (see the install guide). For a file destination, the directory exists on the server that runs X3’s sessions, and X3 is allowed to write there (see the install guide). For a BarTender destination, a BarTender connection.
Header
| Field | What to enter |
|---|---|
| Destination code | Up to 20 characters: A–Z, 0–9 and _, starting with a letter. |
| Description | A description of the destination. |
| Active | Only an active destination can be printed to. |
Tab Transport
| Field | What to enter |
|---|---|
| Type | File, BarTender or Network printer. Changing it empties and greys the fields of the other types. |
| Path | File: the directory, as the X3 server sees it, such as E:\Labels\Receiving. Required. |
| BarTender connection | BarTender: the connection to BarTender (BarTender connections). Required. |
| BarTender printer | BarTender: the printer as BarTender names it, printer:<computer>/<printer> for one a BarTender Print Gateway shares, or PDF. Required. |
| Printer address | Network printer: the printer’s host name or IPv4 address, as the X3 server reaches it, such as 10.20.30.40. Required. |
| Port number | Network printer: the port the printer takes labels on, 9100 on a Zebra and most other label printers. From 1 to 65535. |
| Time limit (seconds) | Network printer: how long X3 waits for the printer to answer before the print’s lines fail, from 1 to 60 seconds. 5 is proposed. |
A ZPL label prints to a network printer or a File destination, a data file to a File destination
and a BarTender label to a BarTender one. A printer’s address holds letters, digits, dots and
hyphens only, such as zebra-receiving.example.com.
Printing to a network printer. X3 connects from its server to the printer’s address and port and sends the job’s labels in that one connection, each as many times as its copies. Nothing is installed beside X3, and no queue script runs. When the printer has taken the labels, every line of the job is OK and its message reads Taken by printer …. Taken is not printed: a printer that is paused or out of labels takes them too, and prints them when it is put right, or loses them when it is switched off. When the printer did not take them, every line is Error with what happened: the printer refused the connection, gave no answer within the time limit, or could not be reached, with the reason as Windows names it. When a send broke off once connected, some labels may have come out, so look at the printer before printing the lines again. The labels are logged first, so nothing is lost: print the lines again from the log once the printer answers.
X3 sends the labels with a command that it runs on its own server, in Windows PowerShell. Where X3 may not run it, X3 says so when a network printer is saved, and at each print and each test; the install guide says what the administrator sets. A network printer needs an X3 server on Windows, and does not work in Sage X3 Cloud.
Printing to BarTender. Each row is one request to BarTender, which prints the label’s document to the destination’s printer with the row’s values and copies. X3 waits for BarTender’s answer up to 30 seconds a row. A row BarTender printed is OK; one it refused is Error with BarTender’s answer; look at the job in BarTender before printing it again, since a row still running after the 30 seconds may still print. When BarTender cannot be reached, or BarTender Cloud refuses the sign-in, every row of the job fails with that message.
The files. Each printed row is one file named <folder>_<job>_<line>_<time>.zpl, or .csv or
.json for a data file: the X3
folder, the job number, the job line in five digits and the time of the print in UTC, such as
SEED_LJ00000123_00001_20261001T101500Z.zpl. The names sort in print order. A file is written
first as .zpl.tmp and renamed when it is whole, so a queue script that takes *.zpl in name
order never finds half a label. With several copies, the file holds the label that many times.
Files are UTF-8.
Whether X3 may write into the directory is known only when it prints: a directory it may not write fails every line of the job, and a file that cannot be written fails its line. The labels are logged first, so nothing is lost: print the lines again from the log once the directory is put right. A destination that a label’s Print from line names cannot be deleted.
Button Test
Test sends a small test label to the network printer that the screen shows, saved or not, so an address can be tried before it is kept. When the printer took the label, X3 says so with the time it took, and the label should come out of the printer. Otherwise the box shows the message a print would get. A value just typed is tested as it stands, and is kept only by Save. The test writes no print job. It needs a licence key that allows printing, as a print does. On a destination of another type, Test says how that type is tested: by printing to it.
Stuck? Ask your Sage partner, or write to info@nortiqo.com.