Setting up a Zebra Label Printer involves configuring the printer, printing test labels, and creating templates for production items, including basic and 2D barcode formats. The guide also covers using lookup fields and ZPL (Zebra Programming Language) formatting, essential for effective production and inventory management.
In this article:
Zebra Label Printer Setup
Easily connect your device to the Zebra Printer.
Tascus supports USB Zebra printer models:
GK420
ZD420
ZD421T
It is not required to Add Device as the Zebra Printer will connect via the USB Port
Check the connection of the printer through the Device Manager
Create a Test Label
Once connected, print a test label to confirm the connection using Tascus Parts List
Creating Labels for Production Items
To create a label for a production item, you will need to add a Create Label step to a production sequence at the appropriate point.
For most , this is in the first manufacturing operation, once the operator has started production by selecting a works / production / manufacturing order.
Here is an example of how that work flow looks:
Lookup Fields to Use in Label Templates
Use any of these fields in the Parts List label template, and Tascus will replace the short code with data from the item that is currently in production.
Tascus Short Code | Description |
---|---|
[Part_No] | Part Number |
[Serial_No] | Serial Number |
[Order] | Works / Production / Manufacturing Order Number |
[Username] | Username of the logged in user when the label is created |
[Plan_Location] | Planning Location the Order has been assigned to |
[Project] | Project |
[Customer_Name] | Customer Name |
[Qty] | Quantity assigned to the order |
[Yr_Production] | Year in format XXXX |
[Day_Production] | Day of the year in format XXX |
[Date] | Date in format DD/MM/YY |
[Time] | Time the label is printed in format HH:MM |
Example Label Template
Basic ZPL code for a ZD420 printer with just the Serial Number, Part Number & Date:
^XA
^LH180,60
^CFA,30
^FT180,150
^FT0,0^FD[Serial_No]^FS
^FT0,40^FD[Part_No]^FS
^FT0,80^FD[Date]^FS
^XZ
Adding a 2D Barcode / QR CODE to a Label
Use the following code to add a barcode to a label that contains Part Number, Serial Number and Date with a : colon seperator.
BQN,2,3^FDMM,:[Part_No]:[Serial_No]:[Date]^FS
Example with a barcode:
^XA
^LH180,60
^CFA,30
^FT180,150
^BQN,2,3^FDMM,:[Part_No]:[Serial_No]:[Date]^FS
^FT0,0^FD[Serial_No]^FS
^FT0,40^FD[Part_No]^FS
^FT0,80^FD[Date]^FS
^XZ
ZPL Formatting for Label Templates
^LH - sets the label home position. The default home position of a label is the upper-left corner (position 0,0 along the x and y axis).
^CW - Font Identifier All built-in fonts are referenced using a one-character identifier. The ^CW command assigns a single alphanumeric character to a font
^CF - sets the default font used in your printer.
^CFA - set the font size in pixels Format:
^CFf,h,w
h = individual character height (in dots) (0-32000)
w = individual character width (in dots) (0-32000)
^FO - sets a field origin, relative to the label home (^LH) position. ^FO sets the upper-left corner of the field area by defining points along the x-axis and y-axis independent of the rotation. Format: ^FOx,y,z
^FT - field position, relative to the home position of the label designated by the ^LH command.
^FS - denotes the end of the field definition.