EPL Commands

C

85

C

Counter

Description The counter (C) command defines one of 10 automatic counters used in consecutive numbering applications (i.e. serial numbers). Counters must be defined after variables.

For Numeric Serialization Only. The counter function does not support Alpha or Alpha- Numeric Serialization.

The C command is used in forms that require sequential numbering. When initializing counters, they must be defined in order (e.g. C0 first, C1 second...).

Field justification (p3) affects the printing of counter data. When L, R or C are selected, the counter field is the width of p2 value. Data will justify within the counter (p2) field per the selected p3. The N parameter will print the minimum number of characters.

To print the contents of the counter, the counter number is referenced in the “DATA” field of the A (ASCII text) or B (Bar Code) commands.

Syntax Cp1,p2,p3,p4 ”[-]PROMPT”

Parameters This table identifies the parameters for this format:

Parameters

Details

 

 

 

p1

= Counter number

Accepted Values: 0–9

p2

= Maximum number of

Accepted Values: 1–29

 

digits for counter

 

 

 

 

p3

= Field Justification

Accepted Values:

 

 

L = Left

 

 

R = Right

 

 

C = Center

 

 

N = No Justification

 

 

 

p4

= Step Value

Accepted Values: + or - sign followed by a single digit of 1–9.

 

 

Using a step value of +0 allows the counter to be used as an

 

 

additional variable data field.

 

 

”PROMPT”

An ASCII text field that will be transmitted to the KDU or

 

 

host (via the serial interface) each time the command is

 

 

executed. Typically used to request the operator to enter a

 

 

starting counter value.

 

 

[-]=KDU Prompt

Having the first character of the prompt a single minus sign

 

Options

will cause the prompt to display only once after form

 

 

retrieval.

 

 

 

The C command is used in forms that require sequential numbering. When initializing counters, they must be defined in order (e.g. C0 first, C1 second...).

12/16/13

EPL Programming Guide

14245L-003 Rev. A

Page 85
Image 85
Zebra Technologies 14245L-003 manual Counter