September, 99
TTPM2 Installation and Programming Manual
31
5.3.4
Printing bar codes
!F C
Format bar code printing
Bar code printing can be used as ticket data carrier instead of, or in addition to, magnetic
encoding.
NOTE!
– To produce sharp code bars, the TTPM2 printer automatically reduces the print
speed by approx. 50% when printing tickets with east and west oriented bar codes.
Bar code data is treated as fixed data. You can however replace a bar code by overlaying
the previous data with new bar code data on the same X- and Y-coordinates. This way
you avoid deleting the complete ticket with a reset (!C) when you want to update the bar
code.
The syntax for defining and downloading of bar code data is as follows:
!F C <orientation> <xpos> <ypos> <narrow bar> <height> <wide bar> <type>_ <”bar
code data”>
!F
Command to load print parameter information
C
Indicates bar code mode.
<orientation> Indicates print orientation. Can be north (N), east (E), south (S), or west
(W).
xpos
Starting position (pixel) for the upper, left-hand corner of the first code bar
in the string. Automatically rounded off to be divisible by 8, (first bit in a
byte).
ypos
Starting position (pixel) for the upper, left-hand corner of the first code bar
narrow bar
Width of
narrow code bar
(both black and white lines) in pixels, (1–16)
height
Code bar height in pixels
Value
1 =
16 pixels =
2.6667 mm
2 =
32 pixels =
5.3334 mm
3 =
48 pixels =
etc.
4 =
64 pixels =
5 =
80 pixels =
…
16 = 256 pixels = 42.6667 mm
wide bar
Width of
wide code bar
in pixels. Values 1–16 applies only if the Code 39
font is selected (see
font
below). If the EAN type is selected, the width set-
ting is ignored but the value must be set to 1.
type
Selects type of bar code. The following types are available:
Value
1 =
EAN13 (partly implemented, no check sum)
Value
11 =
Code 39
space
A space (blank) has to be inserted between the type parameter and the
data string