Insert Prompt Values into ZPL Code Stored in Printer Memory – Zebra Instructions
Summary
This Instruction Article explains how to insert prompt value into ZPL code to be stored in printer memory for Zebra printers. This is commonly used when integrating a keyboard directly into the printer for data input via a KDU.
Instructions
- Create ZPL code instructions for the printer
- For each ^FN variable marker (e.g. ^FN1, ^FN2, ^FN3, etc.), insert the prompt value name in quotes (e.g. ^FN1″Enter State”, ^FN2″Enter Zip Code”, etc.)
- Execute ZPL code (should start with an ^XFR command)
Note: These prompt values are not likely to be seen unless using a KDU with the printer.
Outside Sources and Helpful Links
See p.172 of the Zebra ZPL Programming Guide: Zebra ZPL Programming Guide #P1012728-011
Additional Comments
The full syntax of the Field Number command in ZPL is: ^FN#”a”.
- ^FN is the ZPL command
- # is the unique number assigned to the specific field (allows differentiation from other fields)
- “a” is field prompt value (put in quotes as described above)
Example: The ^FN1″Name” would result in “Name” being used as the prompt on the KDU unit.
Author
Related Articles
- Keyence CC-1020 – Product Information and User Guides
- Ribbon Detected Error After Printing a Label – Zebra Designer Problem
- Set Slide Hopper and Label Template for an ESPO Printer – NiceLabel Automation Instruction Article
- Upgrading Zebra Printer Firmware – Instructions
- Reset the Zebra ZT410 Print Server from the Front Panel – Zebra Instructions
- Changing Print Darkness on Thermal Printers – Printer Instructions