Zebra Technologies EPL2 Printer User Manual


 
A Command - ASCII TEXT
Simple Expressions
in Data Fields
An advanced function of the A command allows
addition and subtraction to be performed on
constant and variable values in flash printers.
Syntax Ap
1
,p
2
,p
3
,p
4
,p
5
,p
6
,p
7
,"DATA"[p
8
p
9
p
10
…]
Parameters For the p
1
- p
7
and “DATA” parameters -
See first page of A command, page 3-4.
p
8
= Required. Must be a variable data field
number, e.g. V00, V01 etc.
p
9
= Required. Operator, + or –
p
10
= Required. Variable data field number
or constant value.
Valid Number Ranges:
Constant = 0 to 2147483647
Variable = 0 to 2147483647
Result = -2147483648 to 2147483647
The Expression must start with a variable
field.
The character field length defined for the first
variable in the expression will be used to for
-
mat the result. If the result is of a greater
length than the defined character length,
then the result field will contain ‘X’s.
A syntax error will be generated during form
store if the constant value is too large.
If an error occurs during the evaluation of the
expression, the resultant field will be filled
with ‘X’s.
980352-001 Rev.A
3-7