Zebra 140xi ユーザーガイド

ページ / 82
35
ZPL Forms Mode
6/12/06
KDU Plus User’s Manual
980548-001 Rev. A
ZPL Forms Mode Memory and Programming Issues
The KDU Plus in ZPL Forms Mode utilizes printer and KDU memory very differently than the 
EPL Forms Mode operations. The EPL printer stores all variable data internally. The KDU 
Plus with the ZPL printer stores the variable data for the printer and passes it to the printer with 
each print form request.
When retrieving a form and the form’s name is valid, then the printer will send the entire form 
format to the KDU Plus. The KDU Plus will parse the entire format and search for field 
numbers (denoted by ^FN) and serial number fields (denoted by ^SN). A message will be 
displayed on the KDU Plus to indicate to the user that the form is being processed.
A field number may have a prompt associated with it which will be embedded in quotes (“”) 
immediately following the field number. As the format is parsed, the KDU Plus will construct 
a list of prompts. If no prompt is associated with a field number, then the field number 
including the FN prefix will be used as the prompt.
If a ^SN is detected during the parsing of the form, a flag is set that will cause the KDU to 
display the number of Copies of each serial number.
The KDU Plus has 576 bytes in which to store the prompts and the field data entered by the 
user. The amount of storage used for each variable can be determined as follows:
2 bytes for field number
2 bytes for field prompt pointer (pointer to text string)
2 bytes for field data pointer (pointer to text string)
(m+1) bytes for prompt text (includes zero or NULL byte terminator)
(n+1) bytes for data text (includes zero or NULL byte terminator)
If 576 bytes are exceeded during parsing of the format, the KDU Plus will display the error 
message “Insufficient memory”. The KDU Plus will abort the form recall process and 
returning to the top level ZPL forms menu.
If 576 bytes are exceeded during data entry, the KDU Plus will clear the oldest previous value 
entered and continue the data entry process and store the new value. If the new value exceeds 
the storage limit, then the value will not be saved for the next iteration of the form.
The maximum number of characters that can be entered during a single data entry (prompt) is 
99 characters.
Each form to be stored for retrieval by the KDU Plus must have the Download Format 
command (denoted by ^DF). An example would be ^DFE:FILENAME.ZPL^FS located near 
the beginning if the form (label) format.