Variable-data label printing · Stored label formats, numbered fields, serial counters and GS1 logistic-label layout rules
A label template engine is the part of a label printing system that holds the fixed layout of a label (boxes, logos, static text, barcode positions) and merges the variable data for each label into numbered fields when the label is printed. It can live in printer firmware, where the host sends only the field data, or in host software that renders the finished label. Buyers specifying one need to settle where templates are stored and whether they survive power loss, how variable fields are addressed, how serial numbers advance, and whether the layout meets the label standard the receiving party scans against.
Printer-resident and host-side template engines for variable-data labels on production, packing and shipping lines: stored label formats, field numbering, database linking, serialization and the layout limits a GS1 logistic label imposes. Report formatter covers production and batch reports generated from control-system data, and Alert logging database covers stored alarm and event records; neither prints labels. Labelling machines, print-and-apply stations and the printers themselves are outside this page.
01
Zebra's ZPL II guide describes the ^DF command as saving format commands as text strings that are later merged with variable data using ^XF; the stored format may contain ^FN field numbers to be referenced when it is recalled. The guide states that stored formats reduce transmission time but save no formatting time, because the stored ZPL is formatted at print time, and that its ^IS/^IL image commands process faster in the printer than ^DF and ^XF. [1]
Storage location matters. In ZPL, ^DF takes a device of R:, E:, B: or A: (default R:), a name of 1 to 16 alphanumeric characters and the extension .ZPL. Zebra's exercise saves the template in R: memory, which it describes as volatile, and the stored-format section states that if the power is turned off, all stored formats in volatile memory (R:) will be lost; formats can be listed with ^HW and selectively erased with ^ID. [1]
Brother's P-touch Template works the same way with a different toolchain: the template is designed in P-touch Editor, transferred to the printer, and the host then sends ASCII text into the stored template. For the QL-810W and QL-820NWB the command reference allows up to 99 and up to 255 templates respectively, a transfer cannot be completed above 6 MB, and a single template can contain a maximum of 50 objects; a 51st object causes an error. [2]
The print trigger also has to be agreed. Brother lists three: a command character, data inserted into all objects (printing starts when the delimiter for the last object arrives), or a received data size of 1 to 999 characters, with the delimiter itself set as 1 to 20 characters. [2]
State the target printer family and firmware, the memory the templates must be stored in, how templates are reloaded after a power cycle or printer swap, and who owns the master template files.
02
In ZPL, ^FN takes values from 0 to 9999; Zebra notes that the maximum number of ^FN commands depends on the amount of data in the fields and recommends 400 or fewer fields. The same ^FN value can be stored with more than one field, and data sent to one of them prints in every field carrying that number. [1]
Serial numbers are advanced in the printer by ^SN, which Zebra says can be applied to 100 to 150 fields in a format, with a maximum of 12 right-most integers subject to indexing. The guide adds that if the printer runs out of paper or ribbon during serialized printing, the first label after recovery carries the same serial number as the partial label printed before the out condition. [1] A template specification therefore has to say whether serials are generated by the printer or by the host system, because a repeated number after a media change is documented behaviour, not a fault.
Brother addresses objects by order rather than by number: the order is determined only by the last four digits of the object name, objects without numbers go to the end, and Brother recommends adding the order number at the end of each object name. A template linked to a transferred database is limited to 65,000 rows and 100 columns, replaced text can contain up to 256 characters, and if the linked columns are missing the objects print as they were when the template was transferred. [2]
| Engine behaviour | ZPL stored format | P-touch Template (QL-810W / QL-820NWB) |
|---|---|---|
| Store and recall | ^DF stores, ^XF recalls. [1] | Template transferred from P-touch Editor; ^TS selects it. [2] |
| Field addressing | ^FN 0–9999; 400 or fewer recommended. [1] | Object order from last four digits of the object name. [2] |
| Template count and size | Limited by available memory. [1] | Up to 99 / 255 templates; 6 MB transfer; 50 objects each. [2] |
| What gets reset | Formats in R: memory are lost at power-off. [1] | Values set by dynamic commands are initialized when a template is transferred. [2] |
| Serial numbers | ^SN on 100–150 fields; 12 right-most digits. [1] | Numbering copies set with ^NN. [2] |
03
The GS1 Logistic Label Guideline makes the SSCC the single mandatory element on every logistic label and requires it to appear in the lowest barcode. Only the bottom building block, holding the barcodes and their human-readable interpretation, is mandatory; up to three segments (carrier, customer and supplier) may be stacked, with the SSCC segment at the bottom. [3]
Fixed dimensions belong in the template, not in the variable data. GS1 allows an X-dimension of 0.495 mm to 0.94 mm for the GS1-128 symbol, with 0.495 mm as the target, a minimum bar height of 31.75 mm, quiet zones of at least 10 X-dimensions on each side, human-readable text at least 3 mm high, and data content in the middle block at least 7 mm high. It states that concatenation shall not be used with the SSCC on cartons, outer cases and A6 / 4x6 labels, and recommends A5 or A6 paper sizes. [3]
Editorial calculation: at the 0.495 mm target X-dimension, each 10X quiet zone is 10 × 0.495 = 4.95 mm, so the two quiet zones together take 9.9 mm of label width before the first bar is placed. This assumes the target X-dimension; a template drawn at 0.94 mm needs 9.4 mm per side. [3]
GS1-128 data carries GS separators between variable-length fields. Brother's template settings include an FNC1 replacement option that replaces received GS codes with FNC1 codes in barcodes such as GS1-128; if it is cleared, GS codes are output as is. [2] Whether the engine converts separators correctly is something to check by scanning a verified test label, not by reading the template file.
04
Paste it into your enquiry below or into an email to a maker, then replace every bracket.
Label: [standard (e.g. GS1 logistic label); size; segments] Barcodes: [symbology; X-dimension; bar height] Variable fields: [list; maximum length; source system] Serials: [generated by host or printer; start; increment] Printers: [make and model; firmware; template storage memory] Verification: [test labels; scanner or verifier grade]
Manufacturer profiles associated with Template Engine.
Explore company information and manufacturing capabilities, then discuss the scope of your project with a relevant supplier.
Zebra states that stored ZPL formats reduce transmission time but save no formatting time, because the format is formatted at print time. [1]
Zebra states that stored formats in volatile R: memory are lost when the power is turned off; other memory devices can be selected with ^DF. [1]
Brother's QL-800 series reference allows up to 99 (QL-810W) or 255 (QL-820NWB) templates, with at most 50 objects per template. [2]
GS1 allows a GS1-128 X-dimension of 0.495 to 0.94 mm, with a minimum bar height of 31.75 mm and quiet zones of at least 10X. [3]
Sources checked 2026-10-17. Zebra and Brother are label-printer makers documenting their own printer-resident template commands; the GS1 Logistic Label Guideline (Release 1.3, 2019) sets the layout rules a shipping label template has to meet.
Ask for use case, specification boundaries, supplier type, and RFQ preparation information for this product.
Compare manufacturer profiles with relevant product and process capability.