Compuprint 9058 Programmer Manual

9900558
99005588D
Prr
P
o
o
grr
g
a
a
m
m
m
m
8
D
err
e
M
M
a
a
n
n
u
u
all
a
Rev. 001

A. Commands

This appendix provides information about the commands supported by your printer. The commands are organized by function groups. Each command has both a brief and a det ailed description.
Introduction..........................................................................................2
General Overview ................................................................................2
Command Summary in Alphabetical Order.......................................2
EPSON/IBM Mode................................................................................6
Print and Line Feed Execution ...........................................................6
Format Control.....................................................................................8
Print Mode..........................................................................................22
Character Set .....................................................................................42
Download Character..........................................................................47
Bit-Image............................................................................................51
Data Input Control ............................................................................56
Miscellaneous.....................................................................................59
COMPUPRINT Mode.........................................................................65
Format Control...................................................................................65
Automatic Sheet Feeder ....................................................................67
Native Character Set.........................................................................69
Bar Codes ...........................................................................................71
Miscellaneous.....................................................................................87
A78408098-003 1

Introduction

Introduction

General Overview

This appendix provides information about the commands supported by your printer. The commands are organized by function groups. Each command has both a brief and a det ailed description.
Each command has the following structure:
Name and function description. Information about protocol (IBM Proprinter XL24E, IBM Personal 2391, EPSON ESC LQ 1050-
2550)
The hexadecimal and decimal codes for the command: n represents variable parameters of the command. The functions of these parameters are explained in its corresponding command description.

Command Summary in Alphabetical Order

//n// BEL BS CAN CAN CR
DC1 DC1 DC2 DC2 DC3 DC4 DC4 DC4 ESC ! DC4 DC4 ESC (GS
2
ASF and Bin selection. (Compuprint) 68 Buzzer. (EPSON) 59 Print and space back one position. (IBM, EPSON) 60 Cancels line. (EPSON) 56 Cancels data. (IBM) 56 Prints all received data and the c olum n c ounter i s s et t o the left margin. (IBM) Selects printer. (IBM) 57 Selects printer. (EPSON) 57 Sets 10 cpi printing. (I BM) 22 Cancels compressed printing. (EPSON) 23 Deselects printer. (EPSON) 57 Cancels double width printing. (IBM, EPSON) 23 Bar Code Selection. 73 Prints bar code symbols (Compuprint) 88
A78408098-003
6
Introduction
DC4 DC4 ESC @ DC4 DC4 ESC 1 DC4 DC4 ESC 3 1 DC4 DC4 ESC 3 3 DC4 DC4 ESC 3 4 DC4 DC4 ESC 3 6 DC4 DC4 ESC 3 8 DC4 DC4 ESC 4 DC4 DC4 ESC 5 DC4 DC4 ESC 8 DC4 DC4 ESC 9 DC4 DC4 ESC A
DC4 DC4 ESC g DC4 DC4 ESC J DC4 DC4 ESC N
DC4 DC4 ESC p DC4 DC4 ESC R DC4 DC4 ESC r DC4 DC4 ESC S
DC4 DC4 ESC T DC4 DC4 ESC u
DC4 DC4 ESC Y DC4 DC4 ESC Z DEL ESC ­ESC ! ESC # ESC $ ESC % ESC & ESC ( ­ESC * ESC / m ESC : ESC : ESC ? ESC @ ESC [ ­ESC [ @ ESC [ @ ESC [ \ ESC [ I
Re-initializes the printer. (Compuprint) 89 Sets vertical spac i ng n/180 inch. (Compuprint) 65 Sets vertical spac i ng 12 l i nes/30 mm. (Com pupri nt) 65 Sets vertical spac i ng to 3 lines/30 mm. (Compuprint) 65 Sets vertical spac i ng 4 l i nes/30 mm. (Com pupri nt) 66 Sets vertical spac i ng 6 l i nes/30 mm. (Com pupri nt) 66 Sets vertical spac i ng 8 l i nes/30 mm. (Com pupri nt) 66 Selects ASF Bi n 3 f or paper loading. (Compuprint) 67 Ejects cut sheet or FF. (Compuprint) 67 Selects ASF Bi n 1 f or paper loading. (Compuprint) 67 Selects ASF Bi n 2 f or paper loading. (Compuprint) 68 Sets the horizontal spacing to 15, 17, 20, 24 CPI. (Compuprint) Selects LQ fonts (Compuprint). 71 Sets amplification factor. (Compuprint) 89 Selects/loads or parks the fanfold from the upper path. (Compuprint) Sets quality printing. (Compuprint) 91 String rotation. (Compupri nt) 91 Digit rotation. (Compupri nt) 92 Selects character s et ISO Character Sets or Code Pages. (Compuprint) Selects/loads or parks the fanfold from the lower path. (Compuprint) Selects the user macros. (Compuprint) 93 Selects emulat i on. (Compuprint) 92 Makes AGA in column. (Compuprint) 93 Deletes the last character. (EPSON) 58 Sets or cancels underlined printing. (IBM, EPSON) 23 Mater Select. (EPSON) 24 Cancels MSB control. (EPSON) 58 Sets the absolute printing position. (EPSON) 8 Selects user-defined character set. (EPSON) 47 Defines user-defined characters. (EPSON) 47 Sets score line. (EPSON) 24 Sets dot graphics printing. (EPSON) 51 Selects the Vertical Format Unit (VFU) channel. (EPSON) 10 Sets 12 CPI. (IBM) 26 Copies characters from ROM to RAM. (EPSON) 48 Reassigns dot graphics mode. (EPSON) 53 Initializes the printer. (EPSON) 60 Selects the score line. (IBM 2391 only) 25 Selects the printi ng t ype style. (IBM 2391 only) 26 Sets double high printing and double line feed. (IBM) 27 Sets vertical units. (IBM) 9 Sets font and pitch of a character. (IBM 2391 only) 29
66
90
71 90
A78408098-003
3
Introduction
ESC [ K ESC [ T ESC [d ESC \ ESC \ ESC ] ESC ^ ESC _ ESC + ESC < ESC = ESC = ESC > ESC 0 ESC 1 ESC 2 ESC 2 ESC 3 ESC 3 ESC 4 ESC 4 ESC 5 ESC 5 ESC 6 ESC 7 ESC 7 ESC A ESC A ESC a ESC B ESC b ESC b ESC C ESC c ESC C 0 ESC D ESC d ESC e ESC E ESC EM ESC F ESC G ESC g ESC H ESC I ESC J ESC j ESC k
Sets initial conditions. (IBM 2391 only) 61 Selects a Code page. 42 Set the print quality. (IBM 2391 only) 28 Sets the relative horizontal print position. (EPSON) 9 Prints characters from all characters t abl e. (IBM) 43 Sets a reverse line feed. (I B M) 6 Prints a single character from the all charact ers table. (IBM) 44 Sets or cancels overscore printing. (IBM mode) 31 Sets n/360-inch line spacing. (EPSON) 10 Prints characters for one line from lef t to right. (EPSON) 26 Sets MSB to 0. (EPSON) 58 Defines downloaded characters. (IB M) 49 Sets MSB to 1. (EPSON) 59 Selects 1/8-inch line spacing. (IBM, EPSON) 11 Selects 7/72-inch li ne spacing. (IBM) 11 Selects 1/6-inch line spacing. (EPSON) 11 Enables the line spacing s et by ESC A command. (IBM) 11 Sets n/180-inch line spacing. (EPSON) 12 Sets graphics line spacing at n/216 inch. (IBM) 12 Sets top of form (first printable line). (IBM) 12 Sets italics printing mode. (EPSON) 31 Sets an automatic l ine feed after a carriage return. (IBM) 7 Cancels italics printing. (EPSON) 31 Enables Upper Control Codes. (EPSON) 44 Selects the Character Set 1. (IBM) 44 Enables Upper Control Codes. (EPSON) 45 Sets text line spacing at n/60 inch. (EPSON) 13 Sets text line spacing at n/72 inch. (IBM) 13 Sets Letter Quality justification printing. (EPSON) 32 Sets vertical tabs. (IBM, EPSON) 13 Sets vertical tabs in VFU channels. (EPSON) 14 Selects black ribbon band. (IBM) 32 Sets form length t o n lines. (IBM, EPSON) Selects cyan ribbon band. (IBM) 32 Sets form length t o n inches. (IBM, EPSON) Sets horizontal tabs. (IBM, EPSON) 15 Spaces forwards relative dot posi tion. (IBM) 15 Spaces backwards relative dot position. (IBM) 16 Sets emphasized printing. (IBM, EPSON) 33 Loading/ejection of paper. (EPSON) 16 Cancels emphasized printing. (IBM, EPSON) 33 Sets double strike printing. (IBM, EPSON) 33 Sets 15 CPI. (EPSON) 34 Cancels double strike printing. (IBM, EPSON) 34 Selects printing type f or resident and DLL characters. (IBM) 34 Advances paper n/180 inch. (EPSON) 7 Stops printing. (IBM) 63 Selects LQ fonts. (EPSON) 45
14 14
4
A78408098-003
Introduction
ESC K ESC l
ESC L ESC M
ESC m ESC N ESC O ESC P ESC P ESC p ESC Q ESC Q ESC R ESC r
ESC R ESC S ESC s ESC SI ESC SO ESC SP ESC T ESC t ESC U ESC W ESC w ESC X ESC x ESC y ESC Y
ESC Z FF
HT LF SI SO VT
Normal density dot graphics printing (60 dpi). (IBM, EPSON) Sets left margin (10 cpi). (EPSON) 16 Double density dot graphics printing (120 dpi). (IBM, EPSON) Selects 10.5 point, 12 cpi. (EPSON) 35 Selects magenta ri bbon band. (IBM) 35 Sets the skipover perforation to n lines. (IBM, EPSON) Disables the skipover perforation. (IBM, EPSON) 18 Selects 10.5 point, 10 cpi. (EPSON) 36 Sets or cancels proporti onal pri nting. (IBM) 36 Sets or cancels proportional printing. (EPSON) 36 Sets the right margin (10 cpi). (EPSON) 19 Deselects Printer. (IBM) 59 Sets all tabs to power-on sett i ngs. (IBM) 19 Selects print col or (if the color ribbon cart ridge is installed). (EPSON) Selects an international character set. (EPSON) 46 Sets subscript or superscript print i ng. (IBM, EPSON) 38 Sets and resets Quiet printing. (EPSON) 39 Selects condensed mode. (IBM, EPSON) 38 Sets double width printing (one line). (IBM, EPSON) 39 Sets intercharacter space. (EPSON) 20 Cancels subscript or superscript printing. (IBM, EPSON) 39 Selects characters table. (EPSON) 46 Sets printing direction. (IBM, EPSON) 64 Sets or cancels double width printing. (IBM, EPSON) 40 Sets or cancels double height printing. (EPSON) 40 Sets left and right margins. (IBM) 20 Selects Letter Quality or Draft. (EPSON) 41 Selects yellow ribbon band. (IBM) 41 Double density dot graphics printing at double-speed graphics (120 virtual dpi). (IBM, EPSON) Quadruple density dot graphics printing (240 virtual dpi). (IBM, EPSON) Advances paper to the top of the next page. (IBM, EPSON) 21 Horizontal Tab. (IBM, EPSON) 21 Line Feed. (IBM, EPSON) 7 Sets condensed printing. (IBM, EPSON) 41 Sets double width printing (one line). (IBM, EPSON) 42 Vertical Tab. (IBM, EPSON) 22
53
54
17
37
55 55
A78408098-003
5

EPSON/IBM Mode

EPSON/IBM Mode
This printer according to the IBM Proprinter XL24E-XL24AGM, IBM 2391 and EPSON LQ 1050-2550 emulations support the following printer commands.

Print and Line Feed Execution

CR
Prints all received da ta and the column counter is set to the left margin. (IBM)
ASCII Code CR Hexadecimal Value 0D Decimal Value 13
This code is a terminator code; when received, it causes any data in the buffer to be printed out. The print head then moves logically to the left margin position. The column counter is set to the le ft margin value and a line feed is inserted automatically after the carriage return (see the automatic carriage return function in the printer setup). The code resets the double width printing set by SO code.
ESC ]
Sets a reverse line feed. (IBM)
ASCII Code ESC ] Hexadecimal Value 1B 5D Decimal Value 27 93
This code is a terminator code; when received, it causes the current contents of the print buffer to be printed out, be fore reve rsing the paper by one line at the current vertical spacing. If no data precedes this command or if the preceding data consists of spaces, the code causes only a reverse line feed to be performed. When the line counter is equal to or less than the top of the form value, the ESC ] is ignored.
6
A78408098-003
EPSON/IBM Mode
ESC 5
Sets an automatic line feed after a carriage return. (IBM)
ASCII Code ESC 5 Hexadecimal Value 1B 35 Decimal Value 27 53
n
n
n
If n is equal to 1, this command sets an automatic line feed on receiving of a CR code. If n is equal to 0, this command cance ls the automatic line feed.
n Automatic line feed 0 Disabled
1 Enabled
ESC J
Advances paper n/180 inch. (EPSON)
ASCII Code ESC J Hexadecimal Value 1B 4A Decimal Value 27 74 Range 1 < n <
This is a terminator code; it therefore causes the current contents of the print buffer to be printed out before performing a single line feed of n/180 inch. This command is can celled afte r the line feed has been performed. The printin g will restart af ter a line feed fro m th e co lumn at which the command was sent.
n
n
n
255
LF
Line Feed. (IBM, EPSON)
ASCII Code LF Hexadecimal Value 0A Decimal Value
This is a terminator code; it therefore causes the current contents of the print buffer to be printed out be fore advancing the pape r by one line at
A78408098-003
10
7
EPSON/IBM Mode
the current vertical spacing. If no data precedes the LF code, or if the preceding data consists of spaces , the code ca uses onl y a lin e feed. When the line counter reaches the last line of the form (defined by software or function menu), the LF code causes a skip to the first line of the next form or ejects a cut sheet , if loaded. This code cancels the double width printing set by the SO code. In IB M mode, the column cou nter is set to the first column if the automatic carriage return is selected. In EPSON mode, the column is always set to the first column.

Format Control

ESC $
Sets the absolute printing position. (EPSON)
ASCII Code ESC & n1 n Hexadecimal Value 1B 24 n1 n Decimal Value 27 36 n1 n Range 0 < n1 < 255
0 < n2 < 127
2
2
2
This command specifies the distance from the left margin where you want to print subsequent characters. The default unit is 1/60 inch. The distance is in number o f dots and must be calculated using the following formula:
+ (n
Margin distance = n Where n
is equal to:
2
[(horizontal position) – (left margin position)]
INIT
x 256) x 1/60” + (left margin)
1
2
256
x
defined unit
(
1
)
Where n1 is equal to:
1
defined unit
)
MOD
[(horizontal position) – (left margin position)]
256
x
(
8
A78408098-003
EPSON/IBM Mode
If the selected position is outside the current right margin, the sequence will be ignored.
ESC [ \
Sets vertical units. (IBM)
ASCII Code ESC [ \ Hexadecimal Value 1B 5B 5C Decimal Value 27 91 92 Range
m m
0 < 0 <
t
3
t
4
m1 m2 t1 … t
m1 m2 t1 … t
m1 m2 t1 … t
= 4
1
= 0
2
< 255
t
1
< 255
t
2
= 0 = 180 or 216
4
4
4
This command changes the base units for the graphics line spacing commands (ESC J, ESC 3). The default value is 1/216 or 1/180 inch.
ESC \
Sets the relative horizontal print position. (EPSON)
ASCII Code ESC \ Hexadecimal Value 1B 5C Decimal Value 27 92 Range 0 <
This command mov es the horizontal print positio n left or righ t from the current position as specified by the following formula:
Horizontal position =
For positive (right) movement:
Where
Where
n
is equal to:
2
INIT
n
is equal to:
1
MOD
[(horizontal position) – (current position)]
[(horizontal position) – (current position)]
0 <
(
n1 n
n1 n
n1 n
< 255
n
1
< 127
n
2
n
x 256) +
2
2
2
2
n
) x (defined unit) + (current position)
1
(
x
256
(
x
256
1
defined unit
1
defined unit
)
)
A78408098-003
9
EPSON/IBM Mode
For negative (left) movement:
Where n
32768-INIT
is equal to:
2
[(current position) – (horizontal position)]
256
(
x
1
defined unit
)
Where n1 is equal to:
1
defined unit
)
32768-MOD
[(current position) – (horizontal position)]
256
(
x
The default unit is 1/120 inch in Draft mode and 1/180 inch in LQ mode. If it would move th e print position outside the printing area, the printer ignores this command.
ESC +
Sets n/360-inch line spacing. (EPSON)
ASCII Code ESC + n Hexadecimal Value 1B 2B n Decimal Value 27 43 n Range 0 < n <
This command sets the line spacing to n/360 inch. If the line sp acing is changed, it does not affect previous settings for vertical tabs or page length.
255
ESC / m
Selects the Vertical Format Unit (VFU) channel. (EPSON)
ASCII Code ESC + n Hexadecimal Value 1B 2F n Decimal Value 27 47 n Range 0 < n <
This command selects the vertical tab set m. The values for m specifies the number of the tab set being changed . These sets of tabs are called vertical format unit (VFU) channel s.
10
7
A78408098-003
EPSON/IBM Mode
ESC 0
Selects 1/8-inch line spacing. (IBM, EPSON)
ASCII Code ESC 0 Hexadecimal Value 1B 30 Decimal Value 27 48
This command causes line spacing to be set to 1/8 inch. If the line spacing is changed, it does not affect previous settings for vertical tabs or page length.
ESC 1
Selects 7/72-inch line spacing. (IBM)
ASCII Code ESC 1 Hexadecimal Value 1B 31 Decimal Value 27 49
This command causes line spacing to be set to 7/72 inch.
ESC 2
Selects 1/6-inch line spacing. (EPSON)
ASCII Code ESC 2 Hexadecimal Value 1B 32 Decimal Value 27 50
This command causes the line spacin g to be set to 1/6 inch. If the line spacing is changed, it does no t af fe ct p re vio u s settin gs f or v e rtical tabs o r page length.
ESC 2
Enables the line spacing set by ESC A command. (IBM)
ASCII Code ESC 2 Hexadecimal Value 1B 32 Decimal Value 27 50
This command starts line spacing at a value that was set by ESC A..
A78408098-003
11
EPSON/IBM Mode
ESC 3
Sets n/180-inch line spacing. (EPSON)
ASCII Code ESC 3 n Hexadecimal Value 1B 33 n Decimal Value 27 51 n Range 0 < n <
255
This command sets the line spacing to n/180 inch. If the line sp acing is changed, it does not affect previous settings for vertical tabs or page length.
ESC 3
Sets graphics line spacing at n/216 inch. (IBM)
ASCII Code ESC 3 n Hexadecimal Value 1B 33 n Decimal Value 27 51 n Range 0 < n <
This command sets graphics line spacing at n default unit defined by the ESC [ \ command. To move exactly n/216 inch, n must be an integer multiple of 3.
255
ESC 4
Sets top of form (first printable line). (IBM)
ASCII Code ESC 4 Hexadecimal Value 1B 34 Decimal Value 27 52
This sequence sets t he first line of t he fanfold paper a s the current paper position of the form.
12
A78408098-003
ESC A
Sets text line spacing at n/60 inch. (EPSON)
EPSON/IBM Mode
ASCII Code ESC A Hexadecimal Value 1B 41 Decimal Value 27 65 Range 0 < n <
n
n
n
85
This command changes the default line spacing to n/60 inch. The new line spacing value is immediately activated.
ESC A
Sets text line spacing at n/72 inch. (IBM)
ASCII Code ESC A Hexadecimal Value 1B 41 Decimal Value 27 65
n
n
n
This command changes the line spacing to n/72 inch . The li ne spac ing value is stored and activated only after the ESC 2 code is received.
ESC B
Sets vertical tabs. (IBM, EPSON)
ASCII Code ESC B Hexadecimal Value 1B 42 Decimal Value 27 66 Range 1 < n <
n1 … n
... nx 00
n
1
... n
n
1
255
0
x
0
x
In EPSON mode, sets vertical tab stops in the 0 Vertical Fo rmat Unit (VFU) channel. This code sets up to 16 v ertical tab stops at the line
, n
specified by n
and so on in the 0 VFU ch annel. The tab stops are
1
2
memorized as physical positions. In IBM modes, this code sets u p to 64 vertical tab stops at the line
number specified by n
, n2 and so on in the 0 VFU chan nel. The line
1
at top of form is line 1. The tab stops are memorized as logical positions.
A78408098-003
13
EPSON/IBM Mode
ESC b
Sets vertical tabs in VFU channels. (EPSON)
ASCII Code ESC b m n1 n Hexadecimal Value 1B 62 m n1 n Decimal Value 27 98 m n1 n Range m = channel
8
8
8
This command sets vertical tabs in one of the 8 VFU channels available. n
tab stops.
1-n8
ESC C 0
Sets form length to n inche s. (IBM, EPSON)
ASCII Code ESC C 0 n Hexadecimal Value 1B 43 00 n Decimal Value 27 67 0 n Range 1 < n <
22
This command sets the form len gth to the n umber of in ches spe cified by n. The current position of the paper is assumed as top of form. Setting the paper length cancels the top and bottom-margin settings.
ESC C
Sets form length to n lines . (IBM, EPSON)
ASCII Code ESC C n Hexadecimal Value 1B 43 n Decimal Value 27 67 n Range 1 < n <
127
This command sets the form length to the nu mber of lin es specifie d by n at the current vertical spacing. The current position of the paper is assumed as top of form.
14
A78408098-003
ESC D
Sets horizontal tabs. (IBM, EPSON)
EPSON/IBM Mode
ASCII Code ESC D Hexadecimal Value 1B 44 Decimal Value 27 68 Range 1 < n <
n1 n2 nx 0
nx 00
n
1 n2
nx 0
n
1 n2
255
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops after canceling the current setting. The n
to n
1
parameters specify the number of columns at which horizontal tab stops are required and must be entered in the sequence in ascending numerical order. Any value outside this range will be ignored.
In IBM mode, the tab stop position is memorized as logical position in the page so that it is affected by changin g the horizo ntal spacing . The columns are numbered 1 through 136.
In EPSON mode, the tab sto p position se t by ESC D is memor ized as physical position in the page and therefore it is not affected by changing the horizontal spacing. The physical position of the tab stop depends on the horizontal spacing in operation when ESC D is used. The ESC D 0 cancels all active tab stops.
ESC d
Spaces forwards relative dot position. (IBM)
ASCII Code ESC d Hexadecimal Value 1B 64 Decimal Value 27 100 Range 0 <
n1 n
2
n
1 n2
n1 n
2
< 255
, n
n
1
2
x
This command moves the print carriage of a (n1 + (n2*256))/120 inch displacement on the right of its current dot position. If the selected position is outside the current right margin, it is forced to the last column.
A78408098-003
15
EPSON/IBM Mode
ESC e
Spaces backwards relative dot position . (IBM)
ASCII Code ESC e n1 n Hexadecimal Value 1B 65 n Decimal Value 27 101 n1 n Range 0 < n1, n2 < 255
2
1 n2
2
This command moves the print carriage of a (n1 + (n2*256))/120 inch displacement on the left of its current dot position.
ESC EM
Loading/ejection of paper. (EPSON)
ASCII Code ESC EM n Hexadecimal Value 1B 19 n Decimal Value 27 25 n
This command controls cut sheet feeding (ASF) according to the parameters below:
n Description 0 Disables
1Bin 1 2Bin 2 3Bin 3 4 Last bin R Ejects cut sheet
ESC l
Sets left margin (10 cpi). (EPSON)
ASCII Code ESC l n Hexadecimal Value 1B 6C n Decimal Value 27 108 n Range 0 < n <
255
This code sets the left margin at the current horizontal spacing. It must be sent at the beginning of the line. The n parameter specifies the number of columns. For each type of horizontal spacing there is a different range of possible va lues, as shown in th e following table.
16
A78408098-003
EPSON/IBM Mode
Character Width Horizontal Spacing Range of columns Double Width
30 < n
< 67
6 cpi 0 < n < 80
7.5 cpi 0 < n < 100
8.5 cpi 0 < n < 114
Normal
10 cpi 0 < n 10 cpi 0 < n < 134
< 134
12 cpi 0 < n < 160 15 cpi 0 < n < 201 17 cpi 0 < n < 229 20 cpi 0 < n
< 255
Any value outside the accepted range is ignored and the previous setting remains in effect. The left marg in must be smaller than the right margin. The physical position set for the left margin does not change if the horizontal spacing is modified. This command overrides the menu setting.
ESC N
Sets the skipover perforation to n lines. (IBM, EPSON)
ASCII Code ESC N Hexadecimal Value 1B 4E Decimal Value 27 78 Range 1 < n <
n
n
n
127 (EPSON mode)
1 < n < 225 (IBM mode)
The skipover perforation is the sum of top and bottom margins values at the selected vertical sp acing. The n p arameter must be less than the current form length. The skipover is memorized as physical position on the page. It is cancelled by ESC O or changing the form length.
The skipover value, when accepted, will set the top and bottom margins according to the operator panel setting (see User Manual):
A78408098-003
17
EPSON/IBM Mode
If the top margin set via operator panel is greater than the skipover value, then the following value of the margins will be set:
Top margin = skipover value Bottom margin = 0
If the top margin set via operator panel is less or equal to the skipover value, then the following value of the margins will be set:
Top margin = operator panel value Bottom margin = the difference between skipover value and
top margin value
If the sum of the top and bottom margins values set via operator panel is less than the skipover value, the following values for the margins will be set:
Top margin = operator panel value Bottom margin = the difference between skipover value and
top margin value
Changing the vertical spacing does not affect the skipover distance. This can be changed by a further ESC N command or can be reset by the ESC O command, which resets the skipover value to 0. The skipover perforation will be executed whe n the end of the page is reache d with a LF, VT or FF code and not with the ESC J or ESC C command, the skipover perforation is cancell ed and must t herefore be set again.
ESC O
Disables the skipover perforation. (IBM, EPSON)
ASCII Code ESC 0 Hexadecimal Value 1B 4F Decimal Value 27 79
This sequence sets the number of lines of the skipover perforation to the value 0 and so any skip perforation set by ESC N is cancelled.
18
A78408098-003
ESC Q
Sets the right margin (10 cpi). (EPSON)
EPSON/IBM Mode
ASCII Code ESC Q Hexadecimal Value 1B 51 Decimal Value 27 81 Range 1 < n <
n
n
n
255
This code sets the line length at the current horizontal spacing. It must be sent at the beginning of the line. The n parameter specifies the number of columns and for each type of horizontal spacing there is a range of values, a s shown in the following table:
Character Width Horizontal Spacing Range of columns Double Width
5 cpi 0 < n < 67 6 cpi 0 < n < 81
7.5 cpi 0 < n < 102
8.5 cpi 0 < n < 116
Normal
10 cpi 0 < n 10 cpi 0 < n < 136
< 136
12 cpi 0 < n < 163 15 cpi 0 < n < 204 17 cpi 0 < n < 233 20 cpi 0 < n
< 255
Any value outside the accepted range is ignored and the previous setting remains in effec t. The right margin mu st be greater than th e left margin. The physical position set for the right margin does not change if the horizontal spacing is modified.
ESC R
Sets all tabs to pow er-on settings. (IBM)
ASCII Code ESC R Hexadecimal Value 1B 52 Decimal Value 27 82
This command sets h orizontal tab stops e very eigh t columns startin g from column 9 and cancels all vertical tab stops.
A78408098-003
19
EPSON/IBM Mode
ESC SP
Sets intercharacter space. (EPSON)
ASCII Code ESC SP n Hexadecimal Value 1B 20 n Decimal Value 27 32 n Range 0 < n <
255
This command sets the intercharacter space to n/120 inch in Draft printing and n/180 inch in Quality printing.
ESC X
Sets left and right margins. (IBM)
ASCII Code ESC X n1 n Hexadecimal Value 1B 58 n1 n Decimal Value 27 88 n1 n Range 0 < n
This command specifies lef t and right margin po sitions. The n
1, n2
2
2
2
< 255
and n
1
parameters indicate respectively the number of columns for the left and right margins at the current spacing. These margins are memorized in terms of absolute displacement from the physical left edge of the page.
is equal to 0, the current left margin of the page is used. If n2 is equal
If n
1
to 0, the current right margin of the page is used. The left margin value must be less than the right margin value. The right margin value must not exceed the physical right edge of the paper; otherwise the maximum acceptable value for the right margin will be set.
2
20
A78408098-003
EPSON/IBM Mode
FF
Advances paper to the top of the next page. (IBM, EPSON)
ASCII Code FF Hexadecimal Value 0C Decimal Value 12
This code is a terminator code, when received, causes all data in the print buffer to be printed ou t. Then it adv ances the paper to the first printable line of the next form. The line counter is set to the first line value and the column counter is set to the left margin value. This code cancels the double width print ing set by SO code.
HT
Horizontal Tab. (IBM, EPSON)
ASCII Code HT Hexadecimal Value 09 Decimal Value 9
This code moves logically the print carriage to the next horizontal tab stop as defined by ESC D.
In IBM mode, up to 28 horizon tal tab stop s can be se t. The HT co de is ignored if no tab stop has been set or if the current print carriage position has moved past the last tab position or if the tab stop is on or beyond the right margin. At power on, the tab stops are set every eight columns (defau lt). The horizontal tab stops can be changed by the ESC D command.
In EPSON mode, up to 32 horizontal tab stops can be se t. The de fault tab stops are memorized as logical p osition in the page, so that are affected by changing the horizontal spacing. The tab stop positions set by ESC D are memorized as physical position in the page and therefore they are not affected by changing the horizontal spacing. When the double width printing is selected, the tab stop setting must take account that each character occupies two columns. Character scoring (underline, overscore and strikethrough) is not printed between the current print position and the next tab when this command is sent.
A78408098-003
21
EPSON/IBM Mode
VT
Vertical Tab. (IBM, EPSON)
ASCII Code VT Hexadecimal Value 0B Decimal Value 11
This code is a terminator code and when received causes the contents of the print buffer to be printed bef ore adv ancing pap er to the next ve rtical tab stop set by the ESC B command.
This code will be executed normally, if vertical tab stops follow the current print position. It will be e xecuted like a FF cod e (EPSON mode) or like a L F code (IBM mode), if the vert ic al ta b s t ops fol low t he b ott om of form position (which co rr e spo n ds to th e f o rm le ng th if th e bo ttom o f f o rm has not been set) o r if the c urren t position is be yond the last v ertical tab stop. It will be executed like an LF code if no vertical tab stops have been set by the ESC B command. In EPSON mode, th e vertical tabulations are referred to the VHF channel selected by the ESC / m. If no VFU channels have been selected, the printer as sumes a s default channel 0.
This command resets the double width printing set by SO or ESC SO command.

Print Mode

DC2
Sets 10 cpi printing. (IBM)
ASCII Code DC2 Hexadecimal Value 12 Decimal Value 18
This is a terminator code. It causes all data present in the print buffer to be printed. This command is accepted at any position within the line. The character that follows this command will be prin ted at 10 cpi. This command does not cancel doublewide printing.
22
A78408098-003
EPSON/IBM Mode
DC2
Cancels compresse d printing. (EPSON)
ASCII Code DC2 Hexadecimal Value 12 Decimal Value 18
This is a terminator code. It causes all data present in the print buffer to be printed. It is accepted at any position within the line. The character that follows this command will be printed as follows:
17 CPI 20 CPI
10 CPI 12 CPI
DC4
Cancels double wi dth printing. (IBM, EPSON)
ASCII Code DC 4 Hexadecimal Value 14 Decimal Value 20
This code cancels the double width printing set by SO or ESC SO code. It has no effect if the ESC W or ESC has s et double widt h commands.
ESC -
Sets or cancels underlined printing. (IBM, EPSON)
ASCII Code ESC ­Hexadecimal Value 1B 2D Decimal Value 27 45
Enables or disables the underlined printing. See the following table: n Underlined Printing
1 enabled 0 disabled
A78408098-003
n
n
n
23
EPSON/IBM Mode
ESC !
Mater Select. (EPSON)
ASCII Code ESC ! n Hexadecimal Value 1B 21 n Decimal Value 27 33 n Range 0 < n <
This command selects any combination of several attributes. The parameter n is the sum up of the printing style values to be used. See the following table:
n Style 0 10 cpi
1 12 cpi 2 Proportional 4 Compressed 8Emphasized 16 Double Strike 32 Double Width 64 Italic 128 Underlined
To print the desiderated combination of printing attributes, calculate the n parameter by adding up the values of ea ch att ribute.
255
ESC ( -
Sets score line. (EPSON)
ASCII Code ESC ( - n1 n2 m d1 d Hexadecimal Value 1B 28 2D n1 n2 m d1 d Decimal Value 27 40 45 n1 n2 m d1 d Range n1 = 3
= 0
n
2
m = 1
< 3
1 < d
1
d2 = 1
This command enables/disables scoring of all characters and spaces following this command according to the following parameters:
24
2
2
2
A78408098-003
EPSON/IBM Mode
d
1
Line
1 Underline 2 Strikethrough 3 Overscore
d
2
Line
0 Cancel score line 1 Single continuous line 2 Double continuous line 5 Single broken line 6 Double broken line Any combination of scoring may be set simultaneously. Each type is independent of other types. Graphics cha racters are not s cored.
ESC [ -
Selects the score line. (IBM 2391 only)
ASCII Code ESC [ ­Hexadecimal Value 1B 5B 2D Decimal Value 27 91 45
This command selects several forms of overscore, underscore and strikethrough.
To select loc:
loc type
loc type
loc type
loc Selection 1 Underscore
2 Strikethrough 3 Overscore
To select type: type Selection
0 Cancels line 1 Single line 2 Double line 255 Cancels line
A78408098-003
25
EPSON/IBM Mode
ESC :
Sets 12 CPI. (IBM)
ASCII Code ESC : Hexadecimal Value 1B 3A Decimal Value 27 58
This is a terminator code. It causes all data present in the print buffer to be printed. Subsequent d ata will be printed at 12 cpi. This command is accepted at any position within the line. The setting of another horizontal spacing resets this command.
ESC <
Prints characters for one line from left to right. (EPSON)
ASCII Code ESC < Hexadecimal Value 1B 3C Decimal Value 27 60
This command causes the printing of one line from left to right.
ESC [ @
Selects the printing type style. (IBM 2391 only)
ASCII Code ESC [ @ 4 0 m1 0 m3 m Hexadecimal Value 1B 5B 40 04* 00* m1 00* m3 m Decimal Value 27 91 64 4 0 m1 0 m3 m
(*) These values are constant. This command is used to modify the type style of the character and
the number of line spacing. Use this command for:
1. Italic printing
2. Single-high character
3. Double-high character
4. Single-wide character
5. Double-wide character
6. Single Line Feed
7. Double Line F eed
26
4
4
4
A78408098-003
EPSON/IBM Mode
These selections may be combined: italic print with double height, doublewide character and double line feed.
See the following tables for m
1
Selection
m
, m3 and m4 selections:
1
0No Change 1 Start Italic Printing 2 Stop Italic Printing 4 Start Outline 8 Stop Outline 16 Start Shadow 32 Stop Shadow
m
3
Selection
0No Change 1 Single-High Character 2 Double-High Character 16 Single Line Feed 32 Double Line Feed
m
4
Selection
0No Change 1 Single-Wide Character 2 Double-Wide Character 16 Single Line Feed 32 Double Line Feed
ESC [ @
Sets double high printing and double li ne feed. (IBM)
ASCII Code ESC [ @ Hexadecimal Value 1B 5B 40 Decimal Value 27 91 64
=normally 4
l
= normally 0
h
= 0
m
1
= 0
m
2
A78408098-003
l h m1 m2 m3 m
l h m1 m2 m3 m
l h m1 m2 m3 m
4
4
4
27
EPSON/IBM Mode
This command sets height, width and vertical spacing. The l and h parameters specify the number of mode bytes m sequence. The m
and m4 parameters specify the printing
3
contained in the
x
characteristics.
controls both the line spacin g an d th e ch aracter h e igh t. It has tw o
m
3
parts: a high-order half-byte of m
controls the line spacing an d the
3
low-order half-byte controls the character height.
Character Height Line Spacing
m
3
0 No change No change 1 Standard character height Line feeds unchanged 2 Double character height Line feeds unchanged 16 Character height unchanged Normal line feeds 17 Standard character height Normal line feeds 18 Double character height Normal line feeds 32 Character height unchanged Double line feeds 33 Standard character height Double line feeds 34 Double character height Double line feeds
m4 specifies the character width. Only the low-order half-byte is significant in this mode byte. The high-order half-byte is ignored.
Character Width Line Spacing
m
4
0 No change No change 1 Standard width character No change 2 Double width character No change
ESC [d
Set the print quality. (IBM 2391 only)
ASCII Code ESC [ d 1 0 n Hexadecimal Value 1B 5B 64 01 00 n Decimal Value 27 91 100 1 0 n
This command sets the print quality to draft or LQ print. See the following table:
28
A78408098-003
Loading...
+ 113 hidden pages