International Substitution Table – normal font . . . . . . . . . . . . . . . B-3
Appendix C Additional Technical Description
Index
Description of MTPL-Sequences
Introduction
Paper and Text Formatting
Character Spacing
Line Spacing
Character Styling
Print Positioning
Graphics
Miscellaneous
Introduction
Regardless of the specific MTPL sequences of your printer, this User’s Manual describes
the sum of all MTPL sequences and control codes. The only differentiation is made between 9 and 24 needle printers as we ll as the maximum possible paper width of 8 inches
(80 column printer) or 13.6 inches (132 column printer). Please note that the print quality
LQ (Letter Quality) is only available in the 24 needle printer.
Please be sure to observe the notes and steps described in the Operator’s Manual as
well as the specific MTPL sequences implemented in your printer and which of the
described sequences are thus not available.
Select the MTPL sequence as described in the Op er ato r ’s Ma nu al, chap te r 2.
Apart from the command language MTPL your printer also understands other printer emulation sequences and commands. MTPL and an additional emulation can be active at the
same time. For this refer to the chapter 2, “Emulations”, Operator’s Manual.
The following explanations will help you
understand the sequences better:
2 Introduction
Every sequence description begins with a header, in which the funct ion and the short
form of the sequence are listed without parameters, e.g.:
Set Form Lenght in Lines CSI ... t
With the CSI (hex.9B, dec.155) control code the most MTPL sequences are introduced.
*) MTPL: “Tally Printer Language”
CSI means “Control Sequence Introducer” and is described by the code 9B (hex.) or ESC [ :
It is sensible to use only ESC [ as “Control Sequence Introducer” if MTPL is used
associated with any other printer emulation.
The last character (in the following example t) specifies the function of the sequence.
The header is followed by the Data Structure in ASCII, hexadecimal und decimal syntax
with the necessary parameters, e.g.:
ASCIICSI n"t"[A] set form lenght in lines
hex.9Bn74
dec.155 n116
For the parameter (here n) it is necessary to differentiate between two types of syntax:
if the parameter is in pointed parenthe se s, th e decimal value is transferred
if the parameter is not in pointed parentheses, the ASCII value is transferred
Example:
Parameter syntax:<n>, with n=0
to be transmitted:dec.0 (hex.00)
Parameter syntax:n, with n=0
to be transmitted:ASCII "0" (hex.30, dec.48)
Each sequence description or a number of the available parameters is additionally speci-
fied with a code level from A to C in square brackets (e.g. “[A]”).
This three code levels are defined as follows:
[A]This code level is to be used for creating new printer driver versions.
[B]This is an optional extension of the MTPL standard.
[C]This function is to be used to ensure compatibility tp previous products. When
creating new printer driver versions this code level should not be used anymore.
Introduction 3
Character explanation and symbol description
ll
Lower case “ ”
Informations
Sequence only applies for 9 needle printer
Sequence only applies for 24 needle printer
In the following you will find an example for a MTPL sequence with a Basic programming
example:
Set to a form length of 72 lines:
4 Introduction
MTPL-SequenceCSIn
with n=72
TransmissionASCIICSI"72""t"
hex.9B37 3274
dec.15555 50116
100 REM Sample for the CSI n t sequence in ASCII,
110 REM using formulars with 72 lines.
120 REM Please note, in ASCII-Syntax you can use ASCII values
130 REM equal or bigger codetable no. 32 only.
140 LPRINT CHR$(155);"72";"t": REM mixed syntax;
150 REM set form length up to 72 lines
160 REM The same sequence written in hexadecimal syntax
170 LPRINT CHR$(&H9B);CHR$(&H37);CHR$(&H32);CHR$(&H74);
180 REM set form length up to 12 lines
190 REM The same sequence written in decimal syntax
200 LPRINT CHR$(155);CHR$(55);CHR$(50);CHR$(116);
210 REM set form length up to 72 lines
t
Paper and Text Formatting
Form LengthCSI ... t
Data SructureASCIICSI n"t"[A] set form lenght in lines
hex.9B n74
dec.155 n116
DescriptionPUM turned OFF:
1
⁄
n = 1...132 lines at a line spacing of
= 1...176 lines at a line spacing of
This MTPL-sequence sets the form length to n times the current line feed pitch (in inches). Also the current print position is simultaneou sly define d as top of form.
The value specified for n must be in the range 1 to 255. This value is multiplied by the current line feed pitch to obtain the form length. For example, if 60 is specified fo r n an d the
1
⁄
current line feed is
inch, the form length is set to 10 inches. Once set by this sequence,
6
the form length is not affected by changing the line spacing.
PUM turned ON:
The unit for n is either the decipoint or defined by the SSU function (Select Size Unit, see
page 8).
n = 0: Reset form lenght to default value.
(print menu setting)
inch (6 lpi)
6
1
⁄
inch (8 lpi)
8
Paper and Text Formatting
5
Example10 REM form length
20 LPRINT CHR$(27);"[4t";
30 FOR F=1 TO 2
40 FOR L=1 TO 3
50 LPRINT "length 4:form";F;" line";L
60 NEXT L:LPRINT CHR$(12);:NEXT F
70 LPRINT
80 LPRINT CHR$(27);"[3t";
90 FOR F=1 TO 3
100 FOR L=1 TO 2
110 LPRINT "length 3:form";F;" line";L
120 NEXT L:LPRINT CHR$(12);:NEXT F
130 END
6 Paper and Text Formatting
Turn ON Positioning Unit Mode (SM)CSI 11 h
Turn OFF Positioning Unit Mode (RM)CSI 11
Data StructureASCIICSI "1""1""h"[A] turn PUM ON
hex.9B313168
dec.155 4949104
l
ASCIICSI "1""1"" "[A] turn PUM OFF
hex.9B313169
dec.155 4949105
DescriptionPUM = Positioning Unit Mode
This mode decides, wether positioning commands or functions that deal with horizontal
or vertical position parameters, have characters and line positions as parameters or
some fixed units defined by the SSU control function (Select Size Unit, see the following
sequence).
If PUM is turned on and no unit is defined, the units shall default to decipoints (
inch).
If PUM is turned off, the units shall default to line or character distances.
By default the PUM mode is turned off. If PUM ist activated the accuracy cannot exceed
the vertical or horizontal resolution of your printer.
l
1
⁄
of an
720
Paper and Text Formatting 7
Select Size Unit (SSU)CSI ... SP I
Data StructureASCIICSI nSP"I"[B] select size unit
hex.9BnSP49
dec.155 nSP73
DescriptionFor n the following parameters are available:
53553Basic Measuring Unit BMU (
63654Micrometer (0,001 mm)
73755Pixels
➊
This unit is machine dependent and may be of different size horizontally and vertically.
Page printers support typically 200, 300 or 600 dpi, matrix printers e.g. 180 or 360 dpi.
Example:
CSI720SPI
1B 5537 32 302049
results in one inch
inch = 0,0353 mm)
720
inch = 0,0254 mm)
1
⁄
inch = 0,02117 mm)
1200
➊
By default the size unit is the decipoint. Other size units may not be available due used
printer type.
PUM must be set to ON (see page 7)
8 Paper and Text Formatting
Set Top and Bottom MarginCSI ... r
Clear Top and Bottom MarginCSI r
Data StructureASCIICSI n
hex.9Bn
dec.155 n
ASCIICSI "r"[A] clear top and bottom margin
hex.9B72
dec.155 114
Descriptionn
specifies the value of the top margin
1
specifies the value of the bottom margin
n
2
, n2= 1...132 lines at a line spacing of
n
1
= 1...176 lines at a line spacing of
Examples:
CSI n1 rset top margin, set bottom margin to default
CSI ; 0 rclear top and bottom margin
CSI ; n
rclear top margin, set bottom margin
2
Any change of margin settings is only effec tive fr o m th e ne xt pa g e on .
The setting of the top and bottom margins depends on the line spacing which is defined
before setting the margins. If line spacing is set after the setting of the top and bottom
margins, the margin positions on this page are not influenced.
If the form length is changed, the top margin is set to the first line, the bottom margin is
set to the last line (= form length).
";"n2"r"[A] set top and bottom margin
1
1
1
3Bn
59n
72
2
114
2
1
⁄
inch (6 lpi)
6
1
⁄
inch (8 lpi)
8
If there are any logical problems (for example, the settin g of top margin is larger then the
page length), the sequence i s ignored. If only one ma rgin is changed the other margi n
is automatically reset to the default value.
The unit depends on PUM and is either character positions or defined by the SSU function (Select Size Unit, see page 8).
Paper and Text Formatting 9
Example10 REM top and bottom margin
20 LPRINT CHR$(27);"[6t";:REM form length
30 LPRINT CHR$(27);"[2;5r":REM set margins
40 FOR F=1 TO 2
50 FOR L=2 TO 5
60 LPRINT "form";F;" line ";L
70 NEXT L:NEXT F
80 LPRINT
90 LPRINT CHR$(27);"[0;0r";:REM clear margins
100 FOR F=1 TO 2
110 FOR L=1 TO 6
120 LPRINT "form";F;" line ";L
130 NEXT L:NEXT F
140 END
10 Paper and Text Formatting
Set Left and Right MarginCSI ... s
Clear Left and Right MarginCSI s
Data StructureASCIICSI n
hex.9Bn
dec.155 n
ASCIICSI "s"[A] clear left and right margin
hex.9B73
dec.155 115
Descriptionn
specifies the value of the left margin
1
specifies the value of the right margin
n
2
, n
n
1
2
Values for n
, n2 are valid for a line length of 8 inches (80 column printer) or 13.6 inches
1
(136 column printer) set in the printer menu.
Example:
CSI n1 sset left margin, set right margin to default
CSI sclear left and right margin
CSI ; n
sclear left marg in, se t righ t mar g in
2
";"n2"s"[A] set left and right margin
1
1
1
3Bn
59n
73
2
115
2
Print width 8 inchesPrint width 13,6 inches
= 1... 80 at 10 cpi= 1...136 at 10 cpi
= 1... 96 at 12 cpi= 1...163 at 12 cpi
= 1...120 at 15 cpi= 1...204 at 15 cpi
= 1...136 at 17.1 cpi= 1...232 at 17.1 cpi
= 1...160 at 20 cpi= 1...272 at 20 cpi
The setting of the left and right margins depends on the current character density.
Any later setting of the character density will not influence the positions of the left and
right margins on this page.
The unit depends on PUM and is either character positions or defined by the SSU function (Select Size Unit, see page 8).
Paper and Text Formatting
11
If only one margin is changed, the other margin will be reset to default valu e.
If there are any logical problems (for example, left margin > right margin ), the sequen ce
is ignored.
Example10 REM left and right margin
20 WIDTH "LPT1:",255
30 LPRINT CHR$(27);"[10;53s";
40 LPRINT "Now the left margin is set to column 10 and the ";
50 LPRINT "right margin is set to column 53."
60 LPRINT CHR$(27);"[5;41s";
70 LPRINT "Now the left margin has been reduced to column 5 ";
80 LPRINT "and the right margin has been set to column 41."
90 END
12 Paper and Text Formatting
Set Line Home (SLH)CSI ... SP U
Set Line Limit (SLL)CSI ... SP V
Data StructureASCIICSI nSP"U"[A] set line home➊
hex.9Bn2055
dec.155 n3285
ASCIICSI nSP"V"[A] set line limit
hex.9Bn2055
dec.155 n3285
Descriptionn = 1...maximal print area
➊ Default setting: Physical left margin of medium or device.
n specifies the left margin. The first position is 1. The unit depends on PUM (Positioning
Unit Mode) and is either characters or defined by SSU (Select Size Unit, see page 8).
Example:
CSI SP Ureset to physical left margin
CSI 10 SP Uset left margin to position 10
➋ Default setting: Physical right margin (=1) of medium or device.
n specifies the right margin.
The unit depends on PUM (Positioning Unit Mode) and is either character positions or
defined by SSU (Select Size Unit, see page 8).
Example:
CSI SP Vreset to physical right margin
CSI 80 SP Vset right margin to position 80
➋
Paper and Text Formatting
13
Right Justification ONCSI 8 y
Centering ONCSI 9 y
Right Justification and Centering OFFCSI 10 y
Right Justification and Centering OFFCSI : y
Data StructureASCIICSI n"y"justification
hex.9Bn79
dec.155 n121
DescriptionFor n the following characters are available:
nhex. dec.justification
83856[A] right justification ON
93957[A] centering ON➋
1031 3049 48[A] right justification and centering OFF
:3A58[C] right justification and centering OFF
➊
➊ Leading blanks will not be corrected. Blanks at line end will be ignored.
➋ The text is centered between the active margins.
14 Paper and Text Formatting
Character Spacing
Spacing Increment (SPI)CSI ... SP G
Data StructureASCIICSI n
hex.9Bn
dec.155I n
Descriptionn
specifies the line spacing
1
specifies the character spacing
n
2
The unit is expressed in decipoints or other units defined by SSU (Select Size Unit, see
page 8).
For this note also the sequence “Set Line Spacing (SLS)” on page 26.
Example:
CSI 120 ; 0 G =∧ 6 lpi, basic cpi
CSI 90 ; 60 G =
The default setting of the spacing increment normally is 10 cpi.
n = 0: The distance is reset to the values set in the printer menu.
";"n2SP"G"[B] [C] set spacing increment
1
3Bn22047
1
59n23271
1
∧
8 lpi, 12 cpi
Character Spacing 15
Horizontal SpacingCSI ... w
Data StructureASCIICSI n"w"[A] set cpi
hex.9Bn77
dec.155 n119
DescriptionFor n the following parameters are available:
10* cpi in this sequence means higher horizontal resolution of the printed characters
(emphasized printing), but lower print speed.
Various character densities can also be used within one line.
The default value for the character density is the printer menu setting.
16 Character Spacing
Example 10 REM character densities
20 LPRINT CHR$(27);"[4wthis is 10 cpi, ";
30 LPRINT CHR$(27);"[12wthis is 10 cpi (high resolution), "
40 LPRINT CHR$(27);"[5wthis is 12 cpi, ";
50 LPRINT CHR$(27);"[6wthis is 15 cpi, ";
60 LPRINT CHR$(27);"[7wthis is 17.1 cpi, ";
70 LPRINT CHR$(27);"[11wthis is 20 cpi, "
80 LPRINT CHR$(27);"[0wthis is 5 cpi, ";
90 LPRINT CHR$(27);"[1wthis is 6 cpi, "
100 LPRINT CHR$(27);"[2wthis is 7.5 cpi, ";
110 LPRINT CHR$(27);"[3wand 8.6 cpi"
120 END
Character Spacing 17
Horizontal Character Spacing (SHS)CSI ... SP K
Data StructureASCIICSI nSP"K"[A] set cpi
hex.9Bn204B
dec.155 n3275
DescriptionFor n the following parameters are available:
nhex. dec.character spacing
0304810 cpi
131496 cpi
2325012 cpi
3335115 cpi
With this sequence the horizontal character spacing is defined.
The change of the character dimensions is implementation dependent.
18 Character Spacing
Character Spacing (SCS)CSI ... SP g
Data StructureASCIICSI nSP"g"[A] set character spacing
hex.9Bn2067
dec.155 n32103
Descriptionn specifies the character sp acin g
The unit is either decipoints or depends on the SSU selection (Select Size Unit, see page 8).
The character size will not be changed.
Character Spacing 19
Additional Character Spacing (SACS)CSI ... SP \
Data StructureASCIICSI nSP" \" [A] set additional character spacing
hex.9Bn205C
dec.155 n3292
Descriptionn specifies the additional cha racter spacing
The units are either decipoints or defined by SSU (Select Size Unit, see page 8).
This function enlarges the inter character spacing. The function will typically be used with
proportional spacing to get effects like “spaced out” or right justifica tio n.
With fixed spacing, functions like SCS (Set Character Spacing, see previous page 19)
should be used.
The character size will not be changed.
20 Character Spacing
Reduced Character Spacing (SRCS)CSI ... SP f
Data StructureASCIICSI nSP"f"[B] set reduced character spacing
hex.9Bn2066
dec.155 n32102
Descriptionn specifies the reduced characte r spacing
The units are either decipoints or defined by SSU (Select Size Unit, see page 8).
This function reduces the inter character spacing. The function will typically be used with
proportional spacing to get special effects like e.g. kerning.
With fixed spacing, functions like SCS (Set Character pacing, see page 19 ) sh ou ld be
used.
The character size will not be changed.
Character Spacing 21
Horizontal Motion Index (HMI)CSI ... p
Data SructureASCIICSI n"p"[C] set HMI
hex.9B n70
dec.155 n112
Descriptionn = 0...20
1
⁄
The normal character density is enlarged by n ∗
HMI is disabled.
inch. If n is set to zero (default setting),
120
Example10 REM horizontal motion index
20 LPRINT "this is normal width"
30 LPRINT CHR$(27);"[3p";
40 LPRINT "now 3/120 inch is added to normal width"
50 LPRINT CHR$(27);"[6p";
60 LPRINT "now 6/120 inch is added to normal width"
70 END
22 Character Spacing
Horizontal Step (Microspace)CSI ... q
Data StructureASCIICSI n"q"[C] set horizontal step
hex.9Bn71
dec.155 n113
Descriptionn = 1...255
1
⁄
The space between characters is enlarged by n ∗
Examples:
CSI qenlarging character space by n ∗1⁄
1
⁄
CSI 10 qinserts a
inch space
12
inch at the current print position.
120
inch
120
Example10 REM horizontal step
20 LPRINT "in the word ‘hori";
30 LPRINT CHR$(27);"[20q";
40 LPRINT "zontal‘ there is a step of 20/120 inch"
50 END
Character Spacing 23
Line Spacing
Vertical Spacing (SVS)CSI ... SP L
Data StructureASCIICSI nSP"L"[A] set vertical spacing (lpi)
hex.9Bn204C
dec.155 n3276
DescriptionFor n the following parameters are available:
Note that changing the line spacing also changes the number of lines per page.
Changing of line spacing does not affect the form length set before hand.
Loading...
+ 96 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.