86

EPL Commands

C

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.

Note • If the starting value of a counter is “1“, then no leading zero padding will be added. If the starting value is “01”, then the counter will be padded, up to the maximum number of

digits (p2), with zeros.

Example 1 •

C0,10,L,+1,"-Enter Serial Number:"

Example 2 • Saving and Protecting Consecutive Numbers in Nonvolatile Memory

This feature is useful when the counter field represents a serial number (or others types of numbers) that should never be repeated. This feature allows for automatic retrieval and increment (or decrement) of the previous counter value used every time a form is retrieved (and printed).

By placing one minus sign as the first character of the prompt, the prompt will appear only once after the form is retrieved, thereby protecting the integrity of the data.

Example 3 • Single Digit Summation with Counters

Add or subtract a single digit from the recalled counter value in a form. If form recalled counter C0 had a value of 3, then processing C0+1 would yield a value of 4 and C0-2would yield a value of 1.

14245L-003 Rev. A

EPL Programming Guide

12/16/13

Page 86
Image 86
Zebra Technologies 14245L-003 manual C0,10,L,+1,-Enter Serial Number