51
Used for:
Form Edit Mode
Syntax:
Ca,b,c,
±
d,"pmt"
where...
a
=
Counter number. One digit number from 0 to 9.
b
=
Is maximum number of digits for the counter. Valid lengths
are 1 through 29.
c
=
L for left justification
R for right justification
N for no justification
±
d
=
Defining step value and counting Up or Down. Valid data
is a "+” or "-” sign followed by step value.
"pmt" =
A text field (prompt) which is transmitted to on the serial
interface telling the operator to enter the appropriate input
data.
This command is used for forms that require sequential numbering
of labels, such as serial numbers.
The prompt will only be displayed on the screen of the host if a UI
command has been issued after last power-up (see page 46). The
KDU sends the UI command automatically.
The syntax requires that counters are defined in order starting with
C0 on the command line following variables, if any, or otherwise
directly after the FS"Filename" line.
Left and right justification means that if the input is less then the
maximum field length, the full field length is going to be retained,
and the data is will be left or right justified. If no justification is
selected, the field will adjust to fit the actual length of the data and
will not exceed the set maximum field length.
Example:
C0,6,L,+1,"Enter Serial Number:"
↵
Note:
If a single counter is stepped up several times on the same form, then
the step value
±
d 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
±
b command must also be used when designing the actual
form. See the “Place Text” and “Place Bar Code” commands later
in this manual.
UBI EasyCoder 71 – Programming
CONSECUTIVE NUMBERING COMMAND
C
Define Counter