User`s guide

STORING DATA IN THE PRINTER MEMORY
108 Copyright © 2006, Cognitive.
DEFINE VARIABLE
Function Defines a variable for use within printer commands
in a label format. When the printer encounters a
variable in a command line, it replaces the variable
name with entered or stored data. It can also
(optionally) send a prompt for data to the user via the
serial port.
Explicit Form
DEFINE_VAR location id length type range
alignpad "prompt" "initial"
Implicit Form
DR location id length type range alignpad
"prompt" "initial"
Memory location to store the defined
variable. The following memory areas
are available:
Location Memory Area
0 Volatile RAM
1 Reserved
2 Expanded Memory
3 Nonvolatile RAM
location
NOTE: Use the VARIABLE
ALLOCATE command to reserve space
in memory area 0 (volatile RAM).
Parameters
id
The variable name. This must be
eight or fewer ASCII alphanumeric
characters, with the first character an
uppercase or lowercase letter (A - Z or
a - z)
NOTE: The printer has several
predefined variables. You may not use
these variable names when defining
variables.