Tallygenicom 6000 Applications Manual Volume 6

6000 Series
Applications Manual
Volume 6
MTPL Command Reference
Table of Contents
Description of MTPL-Sequences
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Form Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Turn ON Positioning Unit Mode (SM) . . . . . . . . . . . . . . . . . . . 7
Turn OFF Positioning Unit Mode (RM) . . . . . . . . . . . . . . . . . . 7
Select Size Unit (SSU) . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Set Top and Bottom Margin . . . . . . . . . . . . . . . . . . . . . . . . 9
Clear Top and Bottom Margin . . . . . . . . . . . . . . . . . . . . . . . 9
Set Left and Right Margin . . . . . . . . . . . . . . . . . . . . . . . . . 11
Clear Left and Right Margin . . . . . . . . . . . . . . . . . . . . . . . . 11
Set Line Home (SLH) . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Set Line Limit (SLL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Right Justification ON . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Centering ON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Right Justification and Centering OFF . . . . . . . . . . . . . . . . . . . 14
Character Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Spacing Increment (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . 15
Horizontal Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Horizontal Character Spacing (SHS) . . . . . . . . . . . . . . . . . . . 18
Character Spacing (SCS) . . . . . . . . . . . . . . . . . . . . . . . . . 19
Additional Character Spacing (SACS) . . . . . . . . . . . . . . . . . . . 20
Reduced Character Spacing (SRCS) . . . . . . . . . . . . . . . . . . . 21
Horizontal Motion Index (HMI) . . . . . . . . . . . . . . . . . . . . . . . 22
Horizontal Step (Microspace) . . . . . . . . . . . . . . . . . . . . . . . 23
Line Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Vertical Spacing (SVS) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Line Density 6 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Line Density 8 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Set Line Spacing (SLS) . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Character Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Superscript ON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Subscript ON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Microscript ON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Super-/Sub-/Microscript OFF . . . . . . . . . . . . . . . . . . . . . . . 27
Double Height ON (Upper Half) . . . . . . . . . . . . . . . . . . . . . . 29
Double Height ON (Lower Half) . . . . . . . . . . . . . . . . . . . . . . 29
Double Height OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Print Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Select Typestyle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Emphasized Mode ON . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Emphasized Mode OFF . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Italic Mode ON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Italic Mode OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Proportional Mode ON (SGR) . . . . . . . . . . . . . . . . . . . . . . . 37
Proportional Mode OFF . . . . . . . . . . . . . . . . . . . . . . . . . 37
Underline Mode ON (SGR) . . . . . . . . . . . . . . . . . . . . . . . . 39
Underline Double Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Underline Mode OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Overline Mode ON (SGR) . . . . . . . . . . . . . . . . . . . . . . . . . 40
Overline Mode OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Double Strike ON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Double Strike OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Graphic Size Selection (GSS) . . . . . . . . . . . . . . . . . . . . . . . 42
Graphic Size Modification (GSM) . . . . . . . . . . . . . . . . . . . . . 42
Font Designation (FNT) . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Print Positioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Horizontal Tab Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Set Horizontal Tab Stop at Current Position . . . . . . . . . . . . . . . . 45
Horizontal Tab Stops ON . . . . . . . . . . . . . . . . . . . . . . . . . 46
Horizontal Tab Stops OFF (TBC) . . . . . . . . . . . . . . . . . . . . . 46
Line Feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Vertical Tab Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Set Vertical Tab Stop at Current Position . . . . . . . . . . . . . . . . . 51
Vertical Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Vertical Tab Stops ON . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Vertical Tab Stops OFF (TBC) . . . . . . . . . . . . . . . . . . . . . . 52
Horizontal Posititon Absolute (HPA) . . . . . . . . . . . . . . . . . . . 54
Horizontal Position Relative (HPR) . . . . . . . . . . . . . . . . . . . . 55
Horizontal Position Backward (HPB) . . . . . . . . . . . . . . . . . . . 56
Vertical Position Absolute (VPA) . . . . . . . . . . . . . . . . . . . . . 57
Vertical Position Relative (VPR) . . . . . . . . . . . . . . . . . . . . . 58
Vertical Position Backward (VPB) . . . . . . . . . . . . . . . . . . . . . 59
Horizontal and Vertical Position Absolute (HVP) . . . . . . . . . . . . . 60
Backspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Carriage Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Form Feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Partial Line Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Partial Line Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Reverse Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Next Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Graphic Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Load Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Automatic Gap Adjustment (AGA) . . . . . . . . . . . . . . . . . . . . . 70
Direct Setting of the Print Head Distance . . . . . . . . . . . . . . . . . 70
Paper Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Shared Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Color Selection (Option) . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Input Data Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Sheet Feeder/Paperway . . . . . . . . . . . . . . . . . . . . . . . . . 76
Eject Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Reset to Initial State (RIS) . . . . . . . . . . . . . . . . . . . . . . . . . 79
Command Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Activation of Character Sets . . . . . . . . . . . . . . . . . . . . . . . 81
Designation of Character Set G0 . . . . . . . . . . . . . . . . . . . . . 83
Designation of Character Set G1 . . . . . . . . . . . . . . . . . . . . . 83
Designation of Character Set G2 . . . . . . . . . . . . . . . . . . . . . 83
Designation of Character Set G3 . . . . . . . . . . . . . . . . . . . . . 83
Activation of Characters . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Size of Character Set (1 Character Set) . . . . . . . . . . . . . . . . 88
Size of Character Set (2 Character Sets) . . . . . . . . . . . . . . . . . 88
Proportional Spacing (Draft) OFF . . . . . . . . . . . . . . . . . . . . 89
Proportional Spacing (Draft) ON . . . . . . . . . . . . . . . . . . . . . . 89
Font Selection for NLQ/LQ only . . . . . . . . . . . . . . . . . . . . . . 89
Font Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Print Code Area Expansion ON . . . . . . . . . . . . . . . . . . . . . . 90
Print Code Area Expansion OFF . . . . . . . . . . . . . . . . . . . . 90
Print Transparent Characters . . . . . . . . . . . . . . . . . . . . . . . 90
Printer Identification (DA) . . . . . . . . . . . . . . . . . . . . . . . . . 91
Device Status Report (DSR) . . . . . . . . . . . . . . . . . . . . . . . . 92
Enquiry for Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Fill Character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Start of Text Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
End of Text Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Positive Acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Negative Acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Clear Print Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Acoustic Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Start Character “Escape” . . . . . . . . . . . . . . . . . . . . . . . . . 98
MTPL-Start Character “Control Sequence Introducer” . . . . . . . . . . 98
Appendix A Summary of Possible Codes
Sorted by Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
Sorted by Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-8
Appendix B Character Sets
Standard Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-2
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 be­tween 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 emu­lation 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 [ :
7-Bit-environment hex. 1B, hex. 5B (= ESC [ ) 8-Bit-environment hex. 9B
STOP
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.:
ASCII CSI n "t" [A] set form lenght in lines hex. 9B n 74 dec. 155 n 116
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-Sequence CSI n
with n=72
Transmission ASCII CSI "72" "t"
hex. 9B 37 32 74 dec. 155 55 50 116
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 Length CSI ... t
Data Sructure ASCII CSI n "t" [A] set form lenght in lines
hex. 9B n 74 dec. 155 n 116
Description PUM 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 in­ches). 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 cur­rent 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
Example 10 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 Structure ASCII CSI "1" "1" "h" [A] turn PUM ON
hex. 9B 31 31 68 dec. 155 49 49 104
l
ASCII CSI "1" "1" " " [A] turn PUM OFF hex. 9B 31 31 69 dec. 155 49 49 105
Description PUM = 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 Structure ASCII CSI n SP "I" [B] select size unit
hex. 9B n SP 49 dec. 155 n SP 73
Description For n the following parameters are available:
n hex. dec. size unit
1
0 30 48 Decipoints ( 1 31 49 Millimeters 2 32 50 Decipoints (0,0353 mm) 3 33 51 Decididots (0,0376 mm)
1
4 34 52 Mils (
1000
5 35 53 Basic Measuring Unit BMU ( 6 36 54 Micrometer (0,001 mm) 7 37 55 Pixels
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:
CSI 720 SP I 1B 55 37 32 30 20 49 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 Margin CSI ... r Clear Top and Bottom Margin CSI r
Data Structure ASCII CSI n
hex. 9B n dec. 155 n
ASCII CSI "r" [A] clear top and bottom margin hex. 9B 72 dec. 155 114
Description n
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 r set top margin, set bottom margin to default CSI ; 0 r clear top and bottom margin CSI ; n
r clear 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
3B n 59 n
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 func­tion (Select Size Unit, see page 8).
Paper and Text Formatting 9
Example 10 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 Margin CSI ... s Clear Left and Right Margin CSI s
Data Structure ASCII CSI n
hex. 9B n dec. 155 n
ASCII CSI "s" [A] clear left and right margin hex. 9B 73 dec. 155 115
Description n
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 s set left margin, set right margin to default CSI s clear left and right margin CSI ; n
s clear left marg in, se t righ t mar g in
2
";" n2"s" [A] set left and right margin
1 1 1
3B n 59 n
73
2
115
2
Print width 8 inches Print 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 func­tion (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.
Example 10 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 Structure ASCII CSI n SP "U" [A] set line home
hex. 9B n 20 55 dec. 155 n 32 85
ASCII CSI n SP "V" [A] set line limit hex. 9B n 20 55 dec. 155 n 32 85
Description n = 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 U reset to physical left margin CSI 10 SP U set 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 V reset to physical right margin CSI 80 SP V set right margin to position 80
Paper and Text Formatting
13
Right Justification ON CSI 8 y Centering ON CSI 9 y Right Justification and Centering OFF CSI 10 y Right Justification and Centering OFF CSI : y
Data Structure ASCII CSI n "y" justification
hex. 9B n 79 dec. 155 n 121
Description For n the following characters are available:
n hex. dec. justification 8 38 56 [A] right justification ON
9 39 57 [A] centering ON 10 31 30 49 48 [A] right justification and centering OFF : 3A 58 [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 Structure ASCII CSI n
hex. 9B n dec. 155I n
Description n
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
3B n220 47
1
59 n232 71
1
8 lpi, 12 cpi
Character Spacing 15
Horizontal Spacing CSI ... w
Data Structure ASCII CSI n "w" [A] set cpi
hex. 9B n 77 dec. 155 n 119
Description For n the following parameters are available:
n hex. dec. horizontal spacing 0 30 48 5 cpi
1 31 49 6 cpi 2 32 50 7,5 cpi 3 33 51 [B] [C] 8,6 cpi 4 34 52 10 cpi 5 35 53 12 cpi 6 36 54 15 cpi 7 37 55 [B] [C] 17,1 cpi 11 31 31 49 49 [B] [C] 20 cpi 12 31 32 49 50 [C] 10* cpi
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 Structure ASCII CSI n SP "K" [A] set cpi
hex. 9B n 20 4B dec. 155 n 32 75
Description For n the following parameters are available:
n hex. dec. character spacing 0 30 48 10 cpi
1 31 49 6 cpi 2 32 50 12 cpi 3 33 51 15 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 Structure ASCII CSI n SP "g" [A] set character spacing
hex. 9B n 20 67 dec. 155 n 32 103
Description n 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 Structure ASCII CSI n SP " \" [A] set additional character spacing
hex. 9B n 20 5C dec. 155 n 32 92
Description n 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 Structure ASCII CSI n SP "f" [B] set reduced character spacing
hex. 9B n 20 66 dec. 155 n 32 102
Description n 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 Sructure ASCII CSI n "p" [C] set HMI
hex. 9B n 70 dec. 155 n 112
Description n = 0...20
1
The normal character density is enlarged by n HMI is disabled.
inch. If n is set to zero (default setting),
120
Example 10 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 Structure ASCII CSI n "q" [C] set horizontal step
hex. 9B n 71 dec. 155 n 113
Description n = 1...255
1
The space between characters is enlarged by n
Examples:
CSI q enlarging character space by n 1⁄
1
CSI 10 q inserts a
inch space
12
inch at the current print position.
120
inch
120
Example 10 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 Structure ASCII CSI n SP "L" [A] set vertical spacing (lpi)
hex. 9B n 20 4C dec. 155 n 32 76
Description For n the following parameters are available:
n hex. dec. vertical spacing 03048 6 lpi
13149 4 lpi 23250 3 lpi 33351 12 lpi 43452 8 lpi 93957 2 lpi
24 Line Spacing
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