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
See also