Label Printing
The default ZPL generated by the PLT upon completion of a
YAML test plan specification can be overridden by uploading
template-pass.zpl
and template-fail.zpl
files as
part of the Release deployed through PLTcloud.
Example template-fail.zpl
file:
^FX template-fail.zpl - ZPL Template for failing DUTs
^XA^LH40,30
^MD2
^FO0,10^ADN,30,8^FDCODE^FS
^FO0,80^ADN,30,8^FDN/G^FS
^XZ
Example template-pass.zpl
file:
^FX template-pass.zpl - ZPL Template for DUTs that pass testing
^XA
~SD22
^CF0,30
^FO40,20^FDProduct:DUT_PRODUCT^FS
^FO40,30^FDVersion:DUT_VERSION^FS
^FO40,40^FDS/N:DUT_SERIAL^FS
^FO40,50^FDMAC Address:MAC_ADDRESS^FS
^FO40,60^FDBLE Address:BLEMAC^FS
^FO40,70^FDFailure:FAILURE_MSG^FS
^FO40,80^FDCode:CODE^FS
^FO40,170^BY2
^BCN,50,N,N,N
^FDMAC_ADDRESS^FS
^XZ
Example: Substitute CODE
title: "Custom barcode substitution"
suite:
- ident: ICT-T0
title: Define label keys
steps:
- command: define CODE 12345
- command: label keys CODE
Commands
PLT Tested Label
This template contains a BARCODE_A1B2C3D4E5F6G7H8I9
placeholder for
the payload of the barcode, reserving sufficient size to encode 128 bits
of data. Include this file as template-pass.zpl
in the PLTcloud project
deployed to a PLT.
title: "PLT Tested barcode substitution"
suite:
- ident: ICT-T0
title: Define label keys
steps:
# 40-bit decimal representation of a UUID
- command: define BARCODE_A1B2C3D4E5F6G7H8I9 272591031380294133745056697788699092364
# Specify the placeholder to substitute
- command: label keys BARCODE_A1B2C3D4E5F6G7H8I9
See also