Chapter 4 — ESim Commands
ESim for the PC4 and PF8 Printers Programmer’s Reference Manual 59
Remarks: This command is used in forms that require sequential numbering.
When initializing counters, they must be defined in order (for
example C0, C1, C2, etc.) after possible variables.
To print the contents of the counter, the counter number
(C0- C9) is entered in the "DATA" field of A (Print Text) or B (Print
Bar Code) commands.
Prompts only display if a UI command has been issued after last
power-up. The Keyboard display unit sends the UI command
automatically.
The field justification parameter (p
3
) affects the way the counter is
printed. When p
3
= L, R, or C, the counter value is printed left, right or
center justified in an area with a width defined by p
2
(number of
digits). If no justification is selected
(p
3
= N), the field is truncated from the right side so as to not exceed
the set maximum field length, which may be useful when using a
counter as input data to a bar code.
If the start value entered, when the form is retrieved for printing, is
started by one or several zeros (0), the entire area specified by p
2
(number of digits) is padded with leading zeros and p
3
(field
justification) has no effect.
Note: If a single counter is incremented several times on the same
form, then the step value p
4
must be set to the number of times the
counter is used in the form or equivalent to what the step values for
the single counter add up to in this form. A Cn±x command must also
be used when designing the actual form. See the A and B commands.