Define variable – CognitiveTPG DLXi User Manual
Page 138

S T O R I N G D A T A I N T H E P R I N T E R M E M O R Y
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
port selected with the
VARIABLE TERMINAL
command.
Explicit Form
DEFINE_VAR
location id length type range
align
pad "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
Parameters
id
NOTE: Use the
VARIABLE
ALLOCATE
command to reserve space
in memory area 0 (volatile RAM).
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.
Revision F, January 2012, CognitiveTPG
129