
Appendix A Programming Guide
Appendix A Programming Guide
A-25
A-26
A-5.2 Resident Barcode Controlled by Private Command Sequence
A-5.2.1
Programming
Generally barcodes are programmed in three steps:
sequences added to the PCL5 emulation.
1. Select a barcode type and define the barcode specific parameter set of
The print position and print orientation of a barcode is controlled by standard
S
height
PCL5 commands.
S
module width
S
ratio of bars to spaces
S
Barcode print position
S
text control
Printing of any barcode starts at the current actual cursor position. The
2. Define barcode print position and print orientation
position can be set with any standard PCL5 cursor movement command.
3. Print the barcode by sending the barcode data command
Moving the cursor with printed characters, spaces and carriage return and
Note:
For every barcode an individual set of parameters (height, module width,
Setting the cursor to an absolute or relative position in PCL units is the best
ratio, text control) is stored. The default values (see table on page A-29)
way to position a barcode:
of these parameters are activated with the first selection of a barcode
type.
ESC * p P1 X
absolute horizontal position to P1
Programming a new parameter modifies only the value of the actual
ESC * p + P1 X
relative horizontal position P1 to the left
selected barcode type. The value is applied until it is overwritten by a
ESC * p - P1 X
relative horizontal position P1 to the right
new value or the printer is switched off. (Barcode parameters are not
ESC * p P1 Y
absolute vertical position to P1
stored in the printer environment !)
ESC * p + P1 Y
relative vertical position P1 down
S
The Resident Barcodes are:
Code 39,
Note:
S
The barcode
REFERENCE POSITION
is the left upper edge except
2 of 5 industrial,
for Postnet where the reference position is the character baseline.
2 of 5 interleaved,
EAN 8 SC2, EAN 8 SC6,
EAN 8 SC9,
S
The
cursor position is not changed
after printing the barcode.The
EAN 13 SC2, EAN 13 SC6, EAN 13 SC9,
cursor must be set to a new position for the next printable character.
UPC-A SC2, UPC-A SC6, UPC-A SC9,
UPC-E SC2, UPC-E SC6, UPC-E SC9,
S
One PCL unit is the unit of measure for cursor movements. The
Codabar,
default value is 300 units per inch.
MSI,
Code 93,
Postnet,
S
Barcode print orientation
Code 128, and
Barcodes are printable in all four print directions, selectable with the
RM4SCC/KIX.
following PCL5 command:
Programming of the resident barcodes is achieved by means of six new control
line feed is the simplest possibility.
ESC * p - P1 Y
relative vertical position P1 up
ESC & a P1 P
P1 = 0, 90, 180, 270 default = 0°