Label design screen
Labels are not 2D screens. They sit in the Barcode Labels section of the project tree and open in their own design screen. Sizes are in millimetres: a label is 10 – 300 mm wide and 5 – 600 mm high. A new label can start from ready sizes such as 100 × 50, 100 × 150 or 58 × 40 mm.
The canvas has millimetre rulers, the Tools, Variables and Objects lists on the left and the properties of the selected object on the right. Objects are placed by dragging and snap to a 1 mm grid and to the edges of other objects. Align, distribute, 90° rotation, copy and undo work on the design screen as well.
- Print preview shows the label dot by dot at the printer’s resolution, with sample values.
- Show code opens the commands that will be sent to the printer. They can be copied or saved as a
.prnfile. - Test print sends the label to the selected printer with sample values.
Ready-made label templates
A new label can start from one of 14 ready-made thermal label templates instead of an empty design. The template window opens with From template… on the Design bar, From a template… on the empty design screen and From template… in the Labels table. The window previews each template at its real size; Create adds the label and opens the Design tab. Creating it is a single undo step.
- Product and packaging: Product Label (EAN-13, 100 × 50 mm), Food Product Label (ingredients, allergens, nutrition table, QR; 100 × 100), Weighing Label (GS1-128 product and batch; 80 × 50), Carton Label (ITF-14; 100 × 70).
- Logistics and shipping: GS1 Pallet Label (SSCC; 102 × 152) and Shipping / Address Label (100 × 150).
- Production, warehouse and quality: Batch / Lot Label (DataMatrix), Raw Material Receipt, Quality Status, Shelf / Location and Work Order Card.
- Assets, maintenance and laboratory: Asset Tag, Maintenance / Calibration and Sample label.
The templates are single-color: a small upper-case heading, a bold value, a thin separator. The logo is chosen from the project images or from a file. The template’s fields come bound to variables; the SSCC number is produced from a counter and its check digit is calculated at print time.
Objects and barcode types
| Object | Settings |
|---|---|
| Text | Font, size (mm), bold, alignment, inverse (black background, white text). By default the box fits the text. |
| Barcode | Code 128, GS1-128, EAN-13, EAN-8, UPC-A, Code 39 and ITF-14. The human-readable line is shown below or hidden. |
| QR Code | Error correction level L, M, Q or H. |
| DataMatrix | ECC200. The size is chosen from the data. |
| Line, Border, Ellipse | Line width (mm); borders and ellipses can be filled and a border can have rounded corners. |
| Image / Logo | The image is converted to black and white with a black threshold and then printed. |
For EAN-13, EAN-8, UPC-A and the GTIN in GS1-128, the check digit is calculated when it is left out and verified when it is given. GS1-128 data is entered with application identifiers, as in (01)…(17)…(10)….
Variables and tag binding
The data of text, barcode, QR and DataMatrix objects is given in three modes: Fixed is plain text, Variable prints one variable and Combined joins text and variable parts. Dragging a row from the variable list onto the canvas creates a text that shows that variable. A tag dropped from the detail view creates a tag variable automatically.
| Variable type | What it prints |
|---|---|
| Tag value | The tag value at print time; decimals and zero padding can be set. |
| Counter (serial no) | A number that increases with every label: start value, increment, reset every day, month or year. |
| Date / time | The print time with a format. Add days gives an expiry date (for example 365). |
| Asked at print time | Asked from the operator when Ask the operator for values is on in the Print label function; the default value is used when the PLC trigger prints. |
| Constant value | A fixed text written on the label. |
Parti: {LOT} // Text and a variable together {Net:0,00} kg // Number format: two decimals, comma separator {SKT:yyMMdd} // Date format; jjj day of year, ww week (01)0123456789012(17){SKT:yyMMdd}(10){LOT} // GS1-128 data
Printer settings
On the Printers tab every printer is one row. A printer is chosen for each label; an event function or a script can name another printer. The connection is TCP/IP only, so the printer needs a network interface.
| Field | Description |
|---|---|
| Printer language | ZPL, TSPL, PPLB or PPLA. Choose the language that is enabled in the printer’s settings.
|
| IP address, port | IP address or network name. The port is the printer’s raw data port, 9100 by default.
|
| Resolution | 203, 300 or 600 dpi. |
| Sending method | Mixed (recommended): barcodes, QR codes and lines go as printer commands, text and images as images, so Turkish letters print as on screen. Printer font: text without Turkish letters uses the printer’s own font. Whole label as one image. |
| Darkness, speed | When left empty, the printer’s own setting applies. |
| Status tag | Live polls the printer every 10 s and writes a code to this tag: 0 ready, 1 no connection, 2 paper out or jammed, 3 ribbon out, 4 head or cover open, 5 paused, 9 other error. Detailed status comes with ZPL and TSPL. |
Test printer connects to the printer and asks for its status. Test label prints a ready-made label with the printer name, the date, a barcode and a QR code.
Starting a print
A label is printed in three ways:
- PLC trigger: on the Trigger and Printing tab you choose a tag and a condition: 0 → 1, 1 → 0, on change or when the value equals. The number of copies is fixed or read from a tag at print time. When the label is sent, 1 or 0 is written to the Feedback tag; with a pulse duration it is reset when the time is up.
- Button: the Print label function is attached to an object’s event. The label, printer and number of copies are chosen; with Ask the operator for values on, a window asks for the variables that are asked at print time.
- Script: all four script languages have functions to print a label and to read the printer status.
Label.print("Koli_Etiketi", { LOT: "P-2611-014" }, { kopya: 2 }) // JavaScript Label.Print "Koli_Etiketi", "LOT=P-2611-014" // VBScript label_print("Koli_Etiketi", {"LOT": "P-2611-014"}) // Python LabelPrint("Koli_Etiketi", "LOT=P-2611-014", 0); // C (0 = the label’s number of copies)
Who prints in Live
Only the Live server, that is the main window on the Live PC, sends jobs to the printer. Each label is printed once.
- A user monitoring from a browser does not connect to the printer. With remote control rights, the Print label button they press forwards the request to Live and Live prints the label. Automatic events that run when a screen opens do not print in the browser.
- TV screens and extra monitor windows do not connect to the printer either.
- In a redundant server pair only the master prints and watches the PLC trigger. A button pressed on the standby is passed to the master.
- If a single-station project is opened on more than one PC, the computer name in Device configuration decides: the PLC trigger is watched only on that PC. If a label has a PLC trigger and no name is entered, Check project warns.
Counter, log and errors
- On a label with a counter every copy gets its own number. The counter is kept in Live and only advances when the label has been sent to the printer, so a label that fails does not use up a number.
- Requests for the same label are printed in order. Only one job goes to a printer at a time, so two triggers in a row do not mix their labels. A queued label prints the tag values as they were when the request came in.
- Every print job is written to the label log as one line: label, printer, copies, source (trigger, function, script), user, result and counter range.
- A label that cannot be printed is written to the event log and a Label not printed window opens in the middle of the screen. Errors that arrive while it is open are counted in the same window. The feedback tag is not written when a label fails.
Frequently asked
Can a label printer on USB or a serial port be used?
No. Labels are sent over TCP/IP only. The printer needs a network interface and must understand the selected printer language.
Can I design a label on a 2D screen?
No. Labels are designed on a separate design screen measured in millimetres. A 2D screen holds the button that prints the label.
Can I design without a label printer?
Yes. The design, the print preview and the printer code work without a printer. A printer is only needed for a test print and in Live.
Related pages
Operator actions
System menu, favorite screens, login and authorization, the action log, Event view and closing the program.
LiveScripts and tasks
Scripts and tasks run in Live: script permissions, time limit and task triggers.
StudioAnimation and events
Binding properties to tags, direct and range-table conversion, the state model, events and event functions.
StudioHMI tags
External and internal tags, scaling, quality, structures (UDT), cross reference and Excel transfer.