.Screen 1.
E F
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ ECitizen GSX 140F ³
³ ECommand Reference ProgramF ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
Press 4PgDn5 to begin.
Text: Copyright 1989 Citizen America Corporation
Program: Copyright 1989 Siechert & Wood, Inc.
All rights reserved.
.Screen 2.
EIntroductionF
This reference provides a complete description of the GSX 140
commands. They are divided into two sections: Epson emulation and IBM
emulation (you must select one command set or the other). Within each
section, commands are grouped according to their function.
This manual uses some conventions which are described on the next
page--which you can see by pressing the EPgDnF key. You can use the EPgDnF
and EPgUpF keys to scroll through the entire manual if you wish.
Of course, there are shortcuts for quickly finding the topic
you're interested in. Like any book, this one has a table of contents,
which you can see by pressing the EF3F key. There is also an
alphabetical index (press EF4F). Within the Table of Contents and the
Index, you can scroll up and down with the Eup arrow FandE down arrowF
keysE Fas well as the EPgUpF and EPgDnF keys. When you find your topic,
press the EEnterF key to jump to that part of the text.
You can also print the manual if you wish. Press EF2F for more
information.
.Screen 3.
ECommand NotationF
Nonprinting codes (ASCII codes from 0 to 31) are shown as a number
enclosed in braces. For instance, the line feed code (ASCII code 10)
is shown as {10}. The one exception to this convention is the escape
code (ASCII code 27). Because it is used in so many commands, it
deserves special treatment: in this manual it appears as ESC.
Other characters--such as letters, numbers not enclosed in braces,
and punctuation marks--included in command format statements should be
sent just as shown. For instance the command shown as ESC 5 should be
sent as two characters: ASCII 27 followed by ASCII 53. However, a
command such as ESC {14} which also consists of two characters should
be sent as: ASCII 27 followed by ASCII 14.
In addition, the decimal and hexadecimal ASCII codes are shown for
each command sequence. Some application programs require you to enter
the ASCII codes instead of the characters those codes represent.
Appendix A of the User's Manual shows the ASCII codes for each
character.
.Screen 4.
Strictly speaking, commands that use 1 and 0 as on and off
switches use ASCII 1 and ASCII 0. However, the printer also accepts
the characters 1 and 0 (ASCII 49 and 48) in many cases.
Variables within a command are shown in one of three ways. If your
computer has a graphics display adapter, variables will be shown in a
different color. If you have a monochrome display adapter, variables
will be underlined. Finally, if you print this manual, variables will
print in italics. Here's a sample: 4n5.
.Screen 5.
EUsing BASICF
In all versions of BASIC, the CHR$ function can be used to send
ASCII codes to the printer--particularly the codes that are shown in
this manual enclosed in braces. For example, {10} is expressed in
BASIC as CHR$(10).
The Escape code is shown in this manual as ESC, and is usually
expressed in BASIC as CHR$(27). Normal printing characters, such as
letters, numbers, and punctuation, should be enclosed in double quotes
in LPRINT statements. For example, ESC P is expressed in BASIC as
CHR$(27) "P".
.Screen 6.
EEpson Emulation Command ReferenceF
The GSX 140 emulates the Epson LQ-series if the Epson emulation is
selected. That is, programs and commands written for the Epson LQ-
series printers will work properly on the GSX 140.
To select the Epson emulation, use the utility program or the
setup menu. Alternately, you can use the ESC ~ 5 command, which is
explained in this manual.
.Screen 7.
EQuick ReferenceF
Select print quality Letter quality ESC x 1
Draft ESC x 0
Select font Roman ESC k 0
Sans serif ESC k 1
Courier ESC k 2
Prestige ESC k 3
Special effect Normal ESC q 0
Outline ESC q 1
Shadow ESC q 2
Outline with shadow ESC q 3
Emphasized print On ESC E
Off ESC F
Doublestrike print On ESC G
Off ESC H
Italic print On ESC 4
Off ESC 5
Underlining On ESC - 1
Off ESC - 0
.Screen 8.
Scoring ESC ( - {3} {0} {1} 4n1 n25
Superscript/subscript Superscript ESC S 0
Subscript ESC S 1
Off ESC T
Double-high print On ESC w 1
Off ESC w 0
On ESC ~ 1 1
Off ESC ~ 1 0
Reverse print On ESC ~ 2 1
Off ESC ~ 2 0
Select color Black ESC r 0
Magenta ESC r 1
Cyan ESC r 2
Violet ESC r 3
Yellow ESC r 4
Orange ESC r 5
Green ESC r 6
Select print style ESC ! 4n5
.Screen 9.
Pitch Pica ESC P
Elite ESC M
Fifteen pitch ESC g
Pica ESC ~ 3 0
Elite ESC ~ 3 1
High-speed elite ESC ~ B 0
High-density elite ESC ~ B 1
Fifteen pitch ESC ~ 3 6
Condensed ESC ~ 3 2
20 pitch ESC ~ 3 7
Expanded print On ESC W 1
Off ESC W 0
Expanded print (one line) On {14}
Off {20}
Condensed print On {15}
Off {18}
Proportional spacing On ESC p 1
Off ESC p 0
Set intercharacter spacing ESC (space) 4n5
.Screen 10.
Select character set USA ESC R {0}
France ESC R {1}
Germany ESC R {2}
United Kingdom ESC R {3}
Denmark I ESC R {4}
Sweden ESC R {5}
Italy ESC R {6}
Spain I ESC R {7}
Japan ESC R {8}
Norway ESC R {9}
Denmark II ESC R {10}
Spain II ESC R {11}
Latin America ESC R {12}
Legal ESC R {64}
Characters 128-255 Italics ESC t 0
Epson graphics characters ESC t 1
Download characters 0-127 ESC t 2
Characters 128-159 Control codes ESC 7
Printable characters ESC 6
.Screen 11.
Zero Slashed ESC ~ 4 1
Not slashed ESC ~ 4 0
Line spacing 1/6 inch ESC 2
1/8 inch ESC 0
4n5/60 inch ESC A 4n5
4n5/120 inch ESC ~ 0 4n5
4n5/180 inch ESC 3 4n5
4n5/360 inch ESC + 4n5
Set page length 4n5 lines ESC C 4n5
4n5 inches ESC C {0} 4n5
Skip-over-perforation 4n5 lines ESC N 4n5
Cancel ESC O
Margins Left ESC l 4n5
Right ESC Q 4n5
Justification Flush left ESC a 0
Centered ESC a 1
Flush right ESC a 2
Justified left and right ESC a 3
.Screen 12.
Move printhead To left margin {13}
Backspace {8}
To next horizontal tab position {9}
Absolute position ESC $ 4n1 n25
Relative position ESC \ 4n1 n25
Set horizontal tabs ESC D 4n1 n25 ... {0}
Advance paper One line {10}
To next TOF {12}
4n5/180 inch ESC J 4n5
To next vertical tab position {11}
Set vertical tabs In channel 0 ESC B 4n1 n25 ... {0}
In channel 4c5 ESC b 4c n1 n25 ... {0}
Select vertical tab channel ESC / 4c5
Bit image graphics Single-density ESC K 4n1 n2 data5
Double-density ESC L 4n1 n2 data5
High-speed double density ESC Y 4n1 n2 data5
Quadruple-density ESC Z 4n1 n2 data5
Graphics mode 4m5 ESC * 4m5 4n1 n2 data5
Reassign graphics mode ESC ? 4n m5
.Screen 13.
Download characters Define character ESC & {0} 4data5
Copy ROM to RAM ESC : {0} 4n5 {0}
Select download characters ESC % 1
Cancel download characters ESC % 0
Delete character {127}
Delete line {24}
Automatic sheet feeder A.S.F. on ESC {25} 4
A.S.F. off ESC {25} 0
Eject sheet ESC {25} R
Master reset ESC @
Emulation Epson LQ-850 ESC ~ 5 0
IBM Proprinter X24 ESC ~ 5 1
Unidirectional print On ESC U 1
Off ESC U 0
One line ESC <
Half speed mode On ESC s 1
Off ESC s 0
Select/deselect Deselect {19}
Select {17}
.Screen 14.
MSB control MSB = 1 ESC >
MSB = 0 ESC =
Cancel MSB control ESC #
.Screen 15.
EPrint Style CommandsF
ESelect print qualityF
E Letter Quality DraftF
EFormat:F ESC x {1} ESC x {0}
Decimal 27 120 1 27 120 0
Hexadecimal 1B 78 01 1B 78 00
ERemarks:F
Print quality can also be set using the quick menu. Letter quality
is compatible with all print styles.
.Screen 16.
ESelect fontF
EFormat:F ESC k 4n5
Decimal 27 107 4n5
Hexadecimal 1B 6B 4n5
ERemarks:F
Selects the font (type style). These fonts are available only when
letter quality printing is selected. The value of 4n5 specifies the
font as follows:
4n5 Font selected 4n5 Font selected
0 Roman 2 Courier
1 Sans serif 3 Prestige
The font can also be selected with the quick menu or the setup
menu.
.Screen 17.
ESelect special effectF
EFormat:F ESC q 4n5
Decimal 27 113 4n5
Hexadecimal 1B 71 4n5
ERemarks:F
Selects a special print style depending on the value of 4n5:
4n5 Effect 4n5 Effect
0 Normal 2 Shadow
1 Outline 3 Outline with shadow
.Screen 18.
EEmphasized print on/offF
E On OffF
EFormat:F ESC E ESC F
Decimal 27 69 27 70
Hexadecimal 1B 45 1B 46
ERemarks:F
Emphasized print increases character density by striking each dot
twice, with the second dot offset horizontally. Emphasized print
can be used in combination with all print style commands,
including double-strike.
Emphasized print can also be selected with the master print mode
command ESC !.
.Screen 19.
EDoublestrike print on/offF
E On OffF
EFormat:F ESC G ESC H
Decimal 27 71 27 72
Hexadecimal 1B 47 1B 48
ERemarks:F
Doublestrike print increases character density by striking each
dot twice, with the second dot offset vertically. Doublestrike
print reduces the print speed.
Doublestrike can be used in combination with all print style
commands. Doublestrike print can also be selected with the master
print mode command ESC !.
.Screen 20.
EItalic characters on/offF
E On OffF
EFormat:F ESC 4 ESC 5
Decimal 27 52 27 53
Hexadecimal 1B 34 1B 35
ERemarks:F
Italics can be used with all print styles. This command can be
used even if graphic characters have been selected with ESC t.
Italic characters can also be selected with the master print mode
command ESC !.
.Screen 21.
EUnderlined print on/offF
E On OffF
EFormat:F ESC - {1} ESC - {0}
Decimal 27 45 1 27 45 0
Hexadecimal 1B 2D 01 1B 2D 00
ERemarks:F
Underlines everything--including spaces, but not tabs--from the
point that underlining is turned on to the point that underlining
is turned off.
Underlining can also be selected with the master print mode
command ESC !.
.Screen 22.
EScoringF
EFormat:F ESC ( - {3} {0} {1} 4n15 4n25
Decimal 27 40 45 3 0 1 4n15 4n25
Hexadecimal 1B 28 2D 03 00 01 4n15 4n25
ERemarks:F
This command is a "master select" command for the various scoring
(line) styles. It can be used for underlining, strikethrough, or
overscoring, depending upon the value of 4n15:
4n15 Line position
1 Underline
2 Strikethrough
3 Overscore
The value of 4n25 determines the line style:
.Screen 23.
4n25 Line style
0 Cancel score at position 4n15
1 Single continuous line
2 Double continuous line
5 Single broken line
6 Double broken line
By sending multiple commands, you can have more than one line
through text. However, single and double lines cannot be combined
at the same position.
.Screen 24.
ESuperscript characters on/offF
E On OffF
EFormat:F ESC S {0} ESC T
Decimal 27 83 0 27 84
Hexadecimal 1B 53 00 1B 54
ERemarks:F
Superscript characters print at 2/3 normal height in the upper
half of the character space.
If you also select underlining, superscript characters are
underlined with the line in the normal position.
.Screen 25.
ESubscript characters on/offF
E On OffF
EFormat:F ESC S {1} ESC T
Decimal 27 83 1 27 84
Hexadecimal 1B 53 01 1B 54
ERemarks:F
Subscript characters print at 2/3 normal height in the lower half
of the character space.
If you also select underlining, subscript characters are
underlined with the line in the normal position.
.Screen 26.
EDouble-high print on/offF
E On OffF
EFormat:F ESC w {1} ESC w {0}
Decimal 27 119 1 27 119 0
Hexadecimal 1B 77 01 1B 77 00
ERemarks:F
This command doubles the height of all characters. Remember to
adjust the line spacing to allow for the additional height.
.Screen 27.
EDouble-high print on/offF
E On OffF
EFormat:F ESC ~ 1 {1} ESC ~ 1 {0}
Decimal 27 126 49 1 27 126 49 0
Hexadecimal 1B 7E 31 01 1B 7E 31 00
ERemarks:F
This command selects double-high text. Double-high text works with
all print styles except superscript and subscript characters.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 28.
EReverse print on/offF
E On OffF
EFormat:F ESC ~ 2 {1} ESC ~ 2 {0}
Decimal 27 126 50 1 27 126 50 0
Hexadecimal 1B 7E 32 01 1B 7E 32 00
ERemarks:F
This command selects reverse printing text (that is, white letters
on a black background). Reverse text works with all print styles
except superscript and subscript characters and doublestrike
printing.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 29.
ESelect print colorF
EFormat:F ESC r 4n5
Decimal 27 114 4n5
Hexadecimal 1B 72 4n5
ERemarks:F
When the optional color unit and color ribbon cartridge is
installed, this command selects the print color according to the
value of 4n5. Valid values are 0 to 6, corresponding to the seven
available colors as shown in the following table. The default
print color at power-on is black.
4n5 Color 4n5 Color
0 Black 4 Yellow
1 Magenta (red) 5 Orange
2 Cyan (blue) 6 Green
3 Violet
.Screen 30.
Color can also be selected with the quick menu or the setup menu.
.Screen 31.
EMaster print modeF
EFormat:F ESC ! 4n5
Decimal 27 33 4n5
Hexadecimal 1B 21 4n5
ERemarks:F
Selects the print style and size, determined by the value of 4n5.
The draft or letter quality and superscript or subscript settings
are not affected by this command.
Each bit controls one attribute, as shown in the following table.
To select a style, simply add up the values of the attributes you
want, and substitute the sum for 4n5 in the format statement.
.Screen 32.
Bit Feature Value
0 Pica/Elite 0/1
1 Proportional 2
2 Condensed 4
3 Emphasized 8
4 Doublestrike 16
5 Expanded 32
6 Italic 64
7 Underline 128
.Screen 33.
ECharacter Pitch CommandsF
ESelect pica pitchF
EFormat:F ESC P
Decimal 27 80
Hexadecimal 1B 50
ERemarks:F
Selects 10-pitch (or pica), printing 10 characters per inch. This
command cancels 12-pitch and 15-pitch printing.
Pica pitch can also be selected with the master print mode command
ESC !, with the quick menu, or with the setup menu.
.Screen 34.
Pitch Characters Per Inch
Normal Pica 10
Expanded Pica 5
Condensed Pica 17
Condensed Expanded Pica 8.5
.Screen 35.
ESelect elite pitchF
EFormat:F ESC M
Decimal 27 77
Hexadecimal 1B 4D
ERemarks:F
Selects 12-pitch (or elite), printing 12 characters per inch. This
command cancels 10-pitch and 15-pitch printing.
Elite pitch can also be selected with the master print mode
command ESC !, with the quick menu, or with the setup menu.
Pitch Characters Per Inch
Normal Elite 12
Expanded Elite 6
Condensed Elite 20
Condensed Expanded Elite 10
.Screen 36.
ESelect elite printing speedF
EFormat:F ESC ~ B 4n5
Decimal 27 126 66 4n5
Hexadecimal 1B 7E 42 4n5
ERemarks:F
This command selects between high-speed and high-density (i.e.,
better print quality) elite printing. In the draft font, high-
speed elite prints at 192 characters per second; high-density
prints at 160 cps.
This command is only effective when elite (12-pitch) printing is
selected with ESC M; this command does not actually set the pitch.
High-speed (HS_12CPI) or high-density (HD_12CPI) elite can also be
selected with the with the quick menu or with the setup menu.
.Screen 37.
ESelect fifteen pitchF
EFormat:F ESC g
Decimal 27 103
Hexadecimal 1B 67
ERemarks:F
Selects 15-pitch, printing 15 characters per inch. This command
cancels 10-pitch and 12-pitch printing. 15-pitch cannot be
combined with condensed print.
15-pitch can also be selected with the master print mode command
ESC !, with the quick menu, or with the setup menu.
.Screen 38.
EExpanded print on/offF
E On OffF
EFormat:F ESC W {1} ESC W {0}
Decimal 27 87 1 27 87 0
Hexadecimal 1B 57 01 1B 57 00
ERemarks:F
Sets the character width to double whatever width is in effect
when the command is sent. The table below compares the characters
per inch (cpi) between normal and expanded print.
Normal Expanded
Pica 10 cpi 5 cpi
Elite 12 cpi 6 cpi
Condensed Pica 17 cpi 8.5 cpi
Condensed Elite 20 cpi 10 cpi
.Screen 39.
Expanded print can also be selected with the master print mode
command ESC !.
.Screen 40.
EOne-line expanded print on/offF
E On OffF
EFormat:F {14} {20}
Decimal 14 20
Hexadecimal 0E 14
ERemarks:F
Sets the character width to double whatever width is in effect
when the command is sent. Expanded print is automatically canceled
at the end of the line. It can be canceled before the end of the
line with {20}. Expanded print set by ESC ! and ESC W are not
canceled by {20}.
The use of ESC with {14} is optional; ESC {14} and the single code
{14} are equivalent commands.
.Screen 41.
ECondensed print on/offF
E On OffF
EFormat:F {15} {18}
Decimal 15 18
Hexadecimal 0F 12
ERemarks:F
Compresses the character width to 60% of the width in effect when
the command is sent. Condensed print cannot be combined with 15-
pitch. The table below compares the characters per inch (cpi)
between normal and condensed print.
Normal Condensed
Pica 10 cpi 17 cpi
Elite 12 cpi 20 cpi
Expanded Pica 5 cpi 8.5 cpi
Expanded Elite 6 cpi 10 cpi
.Screen 42.
Condensed print can also be selected with the master print mode
command ESC !. The use of ESC with {15} is optional; the command
ESC {15} and the single code {15} are equivalent.
.Screen 43.
ESelect pitchF
EFormat:F ESC ~ 3 4n5
Decimal 27 126 51 4n5
Hexadecimal 1B 7E 33 4n5
ERemarks:F
Selects the pitch according to the value of 4n5:
4n5 Pitch
0 10 cpi (pica)
1 12 cpi (elite)
2 17 cpi (condensed)
6 15 cpi
7 20 cpi
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 44.
EProportional spacing on/offF
E On OffF
EFormat:F ESC p {1} ESC p {0}
Decimal 27 112 1 27 112 0
Hexadecimal 1B 70 01 1B 70 00
ERemarks:F
The width each printed character occupies is proportional to its
shape. (With fixed spacing, the width is the same for all
characters, regardless of size.) Characters printed with
proportional spacing are always printed in letter quality and are
compatible with all print styles. If the current font is Draft
when proportional spacing is selected, the font will automatically
change to the previously selected LQ font. This command will
override the previous pitch setting.
Proportional spacing can also be set with the quick menu or the
setup menu.
.Screen 45.
ESet intercharacter spacingF
EFormat:F ESC (space) 4n5
Decimal 27 32 4n5
Hexadecimal 1B 20 4n5
ERemarks:F
Sets proportional spacing by adding 4n5 dots of extra space between
each character (4n5 can range from 0 to 127). Intercharacter spacing
for draft fonts is increased in units of 1/120 of an inch by this
command; spacing on letter quality and proportional fonts is
increased in units of 1/180 inch.
.Screen 46.
ESpecial Character CommandsF
ESelect international character setF
EFormat:F ESC R 4n5
Decimal 27 82 4n5
Hexadecimal 1B 52 4n5
ERemarks:F
Selects international character set 4n5:
.Screen 47.
4 n5 4 n5
Dec Hex Country Dec Hex Country
0 00 U.S.A. 7 07 Spain I
1 01 France 8 08 Japan
2 02 Germany 9 09 Norway
3 03 U.K. 10 0A Denmark II
4 04 Denmark I 11 0B Spain II
5 05 Sweden 12 0C Latin America
6 06 Italy 64 40 Legal
International character sets can be selected with the setup menu.
.Screen 48.
ESelect character tableF
EFormat:F ESC t 4n5
Decimal 27 116 4n5
Hexadecimal 1B 74 4n5
ERemarks:F
Selects a character set to be used by codes 128-255, depending
upon the value of 4n5. See Appendix A of the User's Manual for a
complete list of the available characters.
4n5 Characters 128-255
0 Italic character table
1 Epson graphic character table
2 Downloaded characters assigned to codes 0-127
.Screen 49.
ESelect high-bit control codesF
E Control codes CharactersF
EFormat:F ESC 7 ESC 6
Decimal 27 55 27 54
Hexadecimal 1B 37 1B 36
ERemarks:F
When the graphic character table is selected with ESC t, high-bit
ASCII codes 128 to 159 are normally control codes identical to
ASCII 0 to 31. When ESC 6 is selected, ASCII codes 128 to 159 are
interpreted as printable characters, as shown in Appendix A of the
User's Manual.
.Screen 50.
ESlashed zero on/offF
E On OffF
EFormat:F ESC ~ 4 {1} ESC ~ 4 {0}
Decimal 27 126 52 1 27 126 52 0
Hexadecimal 1B 7E 34 01 1B 7E 34 00
ERemarks:F
This command causes zeros to be printed with a slash mark through
them to distinguish them from the letter O.
The slashed zero feature can also be selected with the setup menu.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 51.
ELine Spacing CommandsF
ESet line spacing to 1/6 inchF
EFormat:F ESC 2
Decimal 27 50
Hexadecimal 1B 32
ERemarks:F
Line spacing for future line feeds is set to 1/6 inch, printing 6
lines per inch (lpi). The default line spacing can be set to 6 lpi
with the setup menu.
.Screen 52.
ESet line spacing to 1/8 inchF
EFormat:F ESC 0
Decimal 27 48
Hexadecimal 1B 30
ERemarks:F
Line spacing for future line feeds is set to 1/8 inch, printing 8
lines per inch (lpi). The default line spacing can be set to 8 lpi
with the setup menu.
.Screen 53.
ESet line spacing to n/60 inchF
EFormat:F ESC A 4n5
Decimal 27 65 4n5
Hexadecimal 1B 41 4n5
ERemarks:F
Line spacing is adjusted to 4n5/60 inch. 4n5 can range from 0 to 85.
.Screen 54.
ESet line spacing to n/120 inchF
EFormat:F ESC ~ 0 4n5
Decimal 27 126 48 4n5
Hexadecimal 1B 7E 30 4n5
ERemarks:F
Line spacing is adjusted to n/120 inch. 4n5 can range from 0 to 125.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 55.
ESet line spacing to n/180 inchF
EFormat:F ESC 3 4n5
Decimal 27 51 4n5
Hexadecimal 1B 33 4n5
ERemarks:F
Line spacing is adjusted to 4n5/180 inch. 4n5 can range from 0 to 255.
.Screen 56.
ESet line spacing to n/360 inchF
EFormat:F ESC + 4n5
Decimal 27 43 4n5
Hexadecimal 1B 2B 4n5
ERemarks:F
Line spacing is adjusted to 4n5/360 inch. 4n5 can range from 0 to 255.
.Screen 57.
EPage Layout CommandsF
ESet page length (lines)F
EFormat:F ESC C 4n5
Decimal 27 67 4n5
Hexadecimal 1B 43 4n5
ERemarks:F
Sets the page length to 4n5 lines (4n5 can range from 1 to 127). The
actual page length is set internally in inches, determined by
multiplying the lines per page by the line spacing in effect at
the time. Later changes in line spacing, therefore, have no effect
on the length of the page (they will change the number of lines
per page, however).
The top of form position is set to the current line.
.Screen 58.
ESet page length (inches)F
EFormat:F ESC C {0} 4n5
Decimal 27 67 0 4n5
Hexadecimal 1B 43 00 4n5
ERemarks:F
Sets the page length to 4n5 inches (4n5 can range from 1 to 22).
The top of form is set at the current line position and the bottom
margin set by ESC N is cleared.
Page length can also be set with the setup menu.
.Screen 59.
ESkip-over-perforation on/offF
E On OffF
EFormat:F ESC N 4n5 ESC O
Decimal 27 78 4n5 27 79
Hexadecimal 1B 4E 4n5 1B 4F
ERemarks:F
Sets a skip-over-perforation (bottom margin) of 4n5 lines (4n5 = 1 to
127) at the bottom of the page (above the perforation on
continuous paper). A skip at the top of the page (below the
perforation) is set by adjusting the position of the paper before
turning on the printer.
The skip is canceled by changing the form length, ESC @, ESC C,
ESC C {0}, or ESC O.
A 6-line perforation skip can be set with the setup menu.
.Screen 60.
ESet left marginF
EFormat:F ESC l 4n5
Decimal 27 108 4n5
Hexadecimal 1B 6C 4n5
ERemarks:F
Sets a left margin of 4n5 columns (4n5 can range from 0 to 255). The
actual width of the margin is determined by the character width in
effect when the margin is set (10 pitch is used if proportional
spacing is selected). Later changes in character width do not
affect the width of the margin. If the margin setting exceeds
eight inches, the setting is ignored.
There must be at least .2 inches between the left and right
margins.
.Screen 61.
ESet right marginF
EFormat:F ESC Q 4n5
Decimal 27 81 4n5
Hexadecimal 1B 51 4n5
ERemarks:F
This command sets the right margin at column 4n5 (4n5 = 1 to 255).
This means that characters will print up to (and including) column
4n5. The actual width of the margin is determined by the character
width in effect when the margin is set (10 pitch is used if
proportional spacing is selected). Later changes in character
width do not affect the width of the margin. The setting is
ignored if the right margin exceeds the maximum number of columns
for the character width in effect.
There must be at least .2 inches between the left and right
margins.
.Screen 62.
An automatic line feed {10} and carriage return {13} are executed
when the specified right margin is reached.
.Screen 63.
ESelect justification styleF
EFormat:F ESC a 4n5
Decimal 27 97 4n5
Hexadecimal 1B 61 4n5
ERemarks:F
Prints lines that are justified in one of four ways specified by
the value of 4n5:
4n5 Justification style
0 Flush against the left margin (default)
1 Centered between the left and right margins
2 Flush against the right margin
3 Flush against both margins (fully justified)
Justification is performed whenever a carriage return {13}, line
feed {10}, form feed {12}, or vertical tab {11} is sent, or when
.Screen 64.
the print buffer is full. Justified printing is available in
draft, letter quality, and proportional modes.
Justified printing will not perform correctly if text is combined
with bit image printing. Also, you should not use horizontal tabs,
backspaces, or intercharacter spacing when full justification is
selected.
.Screen 65.
EHorizontal Position CommandsF
ECarriage returnF
EFormat:F {13}
Decimal 13
Hexadecimal 0D
ERemarks:F
A carriage return moves the print head to the left margin, but
does not advance the paper to the next line. Therefore, many
computers automatically add a line feed {10} to each carriage
return.
You can add a line feed to each carriage return by turning on
automatic line feed in the setup menu if your computer does not
add line feeds for you.
.Screen 66.
EBackspaceF
EFormat:F {8}
Decimal 8
Hexadecimal 08
ERemarks:F
Moves the print head left one character. The print head can be
moved as far as the left margin with multiple backspaces.
The backspace command is ignored if the print head is at the
extreme left, the previous command was the horizontal tab {9}
command, or if the absolute or relative print position commands
were given.
The backspace command will also be ignored if ESC a is selected,
for all modes except left alignment.
.Screen 67.
EHorizontal tabF
EFormat:F {9}
Decimal 9
Hexadecimal 09
ERemarks:F
Moves the print head to the next tab setting. At power-on, tabs
are set at every eighth column in the default character pitch. The
tabs can be reset as desired with ESC D. Tab settings are not
affected by changes in character width.
This command is ignored if a justification style other than left
alignment is selected with ESC a.
.Screen 68.
ESet horizontal tabsF
EFormat:F ESC D 4n15 4n25 ... {0}
Decimal 27 68 4n15 4n25 ... 0
Hexadecimal 1B 44 4n15 4n25 ... 00
ERemarks:F
Default horizontal tabs are cleared and tabs are set at column 4n15,
4n25, and so on. Column numbers must be in ascending numeric order,
and can range from 1 to 255. Any column number less than the
preceding one acts as an ending code for the sequence. Up to 32
tabs can be set.
Tab positions are determined by the character width in effect when
they are set. Later changes in character width do not affect their
positions.
ESC D {0} can be used to clear all tab settings.
.Screen 69.
EAbsolute print positionF
EFormat:F ESC $ 4n15 4n25
Decimal 27 36 4n15 4n25
Hexadecimal 1B 24 4n15 4n25
ERemarks:F
The values for 4n15 and 4n25 set the dot column to tab according to
the following formula:
4n15 + (256 x 4n25) = dot column
The value of 4n15 can range from 0 to 255; 4n25 can range from 0 to 3.
This is an absolute tab; no matter what the current position of
the print head, it will tab to the specified column measured from
the left margin.
.Screen 70.
There are 60 columns of dots per inch with a maximum of 480 dots
per line. If the specified print position is beyond the right
margin, the command is ignored.
.Screen 71.
ERelative print positionF
EFormat:F ESC \ 4n15 4n25
Decimal 27 92 4n15 4n25
Hexadecimal 1B 5C 4n15 4n25
ERemarks:F
Moves the print head to the right or left the specified number of
units (a unit is 1/120 inch in draft, or 1/180 inch in letter
quality or proportional fonts). This is a relative tab; the print
head will move the specified distance counting from the current
position. The values for 4n15 and 4n25 set the column to tab to
according to the following formula:
4n15 + (256 x 4n25) = column
If the movement is to the left, subtract the number of units from
65536 and then calculate the values of 4n15 and 4n25 in the same
manner.
.Screen 72.
If the specified print position is beyond the right or left
margin, the command is ignored.
.Screen 73.
EVertical Position CommandsF
ELine feedF
EFormat:F {10}
Decimal 10
Hexadecimal 0A
ERemarks:F
Returns the print head to the left margin and advances the paper
to the next line after printing. Many computers automatically add
a line feed to each carriage return {13}. If yours does not, you
can add a line feed to each carriage return with this command or
with the setup menu.
.Screen 74.
EForm feedF
EFormat:F {12}
Decimal 12
Hexadecimal 0C
ERemarks:F
A form feed advances the paper to the top of the next page. If you
are using continuous paper with the tractor in the push position,
and TEAR OFF is set "ON" in the setup menu, the paper will advance
so that the perforation is under the tear bar. It will immediately
retract to the top-of-form position when you send more data. It
will also retract to the top-of-form as soon as the power is
turned on if it has been turned off.
For form feeds to work properly, the paper must be at the desired
"top of the page" when the printer is turned on (unless you are
using TEAR OFF as described in the previous paragraph). The page
.Screen 75.
length can be set with the setup menu or with ESC C or ESC C {0}
commands.
.Screen 76.
EOne-time paper feedF
EFormat:F ESC J 4n5
Decimal 27 74 4n5
Hexadecimal 1B 4A 4n5
ERemarks:F
Advances the paper 4n5/180 inch without changing the print head
position. 4n5 can range from 0 to 255. This command does not change
the line spacing for subsequent lines.
.Screen 77.
EVertical tabF
EFormat:F {11}
Decimal 11
Hexadecimal 0B
ERemarks:F
This command will advance the paper to the next vertical tab
position in the current tab channel after printing the contents of
the print buffer. The paper advances one line when no vertical
tabs are set.
No tabs are set at power-on. They must be set with the tab-setting
commands before use.
.Screen 78.
ESet vertical tabsF
EFormat:F ESC B 4n15 4n25 ... {0}
Decimal 27 66 4n15 4n25 ... 0
Hexadecimal 1B 42 4n15 4n25 ... 00
ERemarks:F
This command sets vertical tabs in channel 0. Up to 16 tabs can be
set. Line numbers must be in ascending numeric order, and can
range from 1 to 255. Any line number less than the preceding one
acts as an ending code for the sequence.
Tab positions are determined by the line spacing in effect when
they are set. Later changes in line spacing do not affect their
positions.
This command sets tabs in channel 0. There are eight channels
where vertical tabs can be set using ESC b.
.Screen 79.
ESC B {0} can be used to clear the tab settings.
.Screen 80.
ESet vertical tabs in vertical tab channelsF
EFormat:F ESC b 4c5 4n15 4n25 ... {0}
Decimal 27 98 4c5 4n15 4n25 ... 0
Hexadecimal 1B 62 4c5 4n15 4n25 ... 00
ERemarks:F
Sets up to eight channels defined by the value of 4c5, which can
range from 0 to 7. Up to 16 tabs can be set in each channel.
Channel 0 is the power-on default. Tabs set with ESC B are placed
in channel 0. Channels are selected with the command ESC /.
ESC b 4c5 {0} can be used to clear the tab settings.
.Screen 81.
ESelect vertical tab channelF
EFormat:F ESC / 4c5
Decimal 27 47 4c5
Hexadecimal 1B 2F 4c5
ERemarks:F
Selects vertical tab channel 4c5. The value of 4c5 can range from 0 to
7. Tabs are set by ESC b.
.Screen 82.
EGraphics CommandsF
ESingle-density graphicsF
EFormat:F ESC K 4n15 4n25 4data5
Decimal 27 75 4n15 4n25 4data5
Hexadecimal 1B 4B 4n15 4n25 4data5
ERemarks:F
Prints 8-bit single-density bit image graphics (60 dots per inch
horizontal, 72 dots per inch vertical). The values for 4n15 and 4n25
set the image width in dots according to the formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. The least significant bit controls the bottom
dot; the most significant bit controls the top dot. A value of 1
prints a dot; 0 does not print.
.Screen 83.
ESC K command can be redefined by ESC ?. 8-bit single-density
image graphics can also be selected with the master graphics
command ESC *.
.Screen 84.
EDouble-density graphicsF
EFormat:F ESC L 4n15 4n25 4data5
Decimal 27 76 4n15 4n25 4data5
Hexadecimal 1B 59 4n15 4n25 4data5
ERemarks:F
Prints 8-bit double-density bit image graphics (120 dots per inch
horizontal, 72 dots per inch vertical). The values for 4n15 and 4n25
set the image width in dots according to the formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. The least significant bit controls the bottom
dot; the most significant bit controls the top dot. A value of 1
prints a dot; 0 does not print.
.Screen 85.
ESC L command can be redefined by ESC ?. 8-bit double-density bit
image graphics can also be selected with the master graphics
command ESC *.
.Screen 86.
EHigh-speed double-density graphicsF
EFormat:F ESC Y 4n15 4n25 4data5
Decimal 27 89 4n15 4n25 4data5
Hexadecimal 1B 59 4n15 4n25 4data5
ERemarks:F
Prints 8-bit high-speed double-density bit image graphics (120
dots per inch horizontal, 72 dots per inch vertical). The values
for 4n15 and 4n25 set the image width in dots according to the
formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. In high-speed graphics horizontally adjacent dots
will not print; the second dot will be eliminated. The least
significant bit controls the bottom dot; the most significant bit
controls the top dot. A value of 1 prints a dot; 0 does not print.
.Screen 87.
ESC Y command can be redefined by ESC ?. 8-bit high-speed double-
density image graphics can also be selected with the master
graphics command ESC *.
.Screen 88.
EQuadruple-density graphicsF
EFormat:F ESC Z 4n15 4n25 4data5
Decimal 27 90 4n15 4n25 4data5
Hexadecimal 1B 5A 4n15 4n25 4data5
ERemarks:F
Prints 8-bit quadruple-density bit image graphics (240 dots per
inch horizontal, 72 dots per inch vertical). The values for 4n15 and
4n25 set the image width in dots according to the formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. In quadruple-density graphics horizontally
adjacent dots will not print; the second dot will be eliminated.
The least significant bit controls the bottom dot; the most
significant bit controls the top dot. A value of 1 prints a dot; 0
does not print.
.Screen 89.
ESC Z command can be redefined by ESC ?. 8-bit quadruple-density
image graphics can also be selected with the master graphics
command ESC *.
.Screen 90.
ESet graphics modeF
EFormat:F ESC * 4m5 4n15 4n25 4data5
Decimal 27 42 4m5 4n15 4n25 4data5
Hexadecimal 1B 2A 4m5 4n15 4n25 4data5
ERemarks:F
This command selects graphics densities according to the value of
4m5 as shown in the table below.
.Screen 91.
4m5 Horizontal density Wires Graphics Mode
0 60 8 Same as ESC K
1 120 8 Same as ESC L
2 120 8 *Same as ESC Y
3 240 8 *Same as ESC Z
4 80 8 CRT graphics I
6 90 8 CRT graphics II
32 60 24 High resolution single-density
33 120 24 High resolution double-density
38 90 24 CRT graphics III
39 180 24 High resolution triple-density
40 360 24 *High resolution hex-density
The values for 4n15 and 4n25 set the image width in dot columns
according to the formula:
4n15 + (256 x 4n25) = dots
.Screen 92.
The number of data characters following the command is the same as
the image width for 8-wire graphic modes. Three bytes are required
for each column of 24-wire graphics.
* In modes 2, 3, and 40, horizontally adjacent dots cannot be
printed; the second dot is eliminated.
.Screen 93.
EReassign graphics modeF
EFormat:F ESC ? 4n5 4m5
Decimal 27 63 4n5 4m5
Hexadecimal 1B 3F 4n5 4m5
ERemarks:F
This command changes one graphics mode to another. Any of the four
graphics commands, ESC K, ESC L, ESC Y, or ESC Z can be changed to
any available density. Put the letter of the command that you want
to change (K, L, Y or Z) in place of the variable 4n5, and the value
of the bit image mode (0-6 only) in 4m5 as shown in the previous
table (see ESC *).
.Screen 94.
EDownload Character CommandsF
EDefine charactersF
EFormat:F ESC & {0} 4n5 4m5 4d05 4d15 4d25 4data5
Decimal 27 89 0 4n5 4m5 4d05 4d15 4d25 4data5
Hexadecimal 1B 59 00 4n5 4m5 4d05 4d15 4d25 4data5
ERemarks:F
This command is used to define your own characters. The values for
4n5 and 4m5 specify the ASCII codes of the first and last defined
characters (characters with codes from 0 to 127 can be re-
defined). 4n5 and 4m5 are the same when only one character is defined.
4n5 ASCII code of first defined character
4m5 ASCII code of last defined character
4d05 Space in dots on the left of the character
4d15 Number of dot columns in the body of the character
4d25 Space in dots on the right of the character
.Screen 95.
The character matrix for all characters is 24 dots high. The
maximum width is 9 dots for draft characters, 29 dots for letter
quality, and 37 dots for proportional characters. The vertical dot
spacing is always 1/180". Horizontal spacing is 1/120" for draft
characters, 1/360" for letter quality and proportional characters.
The maximum values for 4d05, 4d15, and 4d25 for each character type are
shown in the following table.
Print style 4d15 (maximum) 4d05+4d15+4d25 (maximum)
Draft 9 12
Letter quality 10 cpi 29 36
Letter quality 12 cpi 23 30
Proportional 37 42
It takes three data bytes to define each vertical column of 24
dots. The most significant bit of the first byte controls the top
pin; the least significant bit of the third byte controls the
bottom pin.
.Screen 96.
ECopy ROM characters to download character RAMF
EFormat:F ESC : {0} 4n5 {0}
Decimal 27 58 0 4n5 0
Hexadecimal 1B 3A 00 4n5 00
ERemarks:F
Characters are loaded to the download character set area (RAM)
from the internal character set area (ROM). 4n5 is the number of the
ROM font:
4n5 Font 4n5 Font
0 LQ Roman 2 LQ Courier
1 LQ Sans serif 3 LQ Prestige
This command will wipe out any existing character definitions and
replace them with one of the standard character sets.
.Screen 97.
EDownload character set on/offF
E On OffF
EFormat:F ESC % {1} ESC % {0}
Decimal 27 37 1 27 37 0
Hexadecimal 1B 25 01 1B 25 00
ERemarks:F
The download character set is selected with ESC % {1} and the
standard character set is selected with ESC % {0}. Download
characters can be printed in all print styles available in the
print quality (draft or letter quality) that the characters were
defined in. Therefore, characters defined in draft can only be
printed in draft quality; characters defined in letter quality can
only be printed in letter quality. It is possible to combine
download and standard characters on one line.
.Screen 98.
EBuffer CommandsF
EDelete characterF
EFormat:F {127}
Decimal 127
Hexadecimal 7F
ERemarks:F
This command deletes the character previous to it in the print
buffer. {127} must be received before any paper movement command,
which starts printing and empties the print buffer.
.Screen 99.
ECancel lineF
EFormat:F {24}
Decimal 24
Hexadecimal 18
ERemarks:F
This command clears the current line from the print buffer. The
{24} command must be received before a paper movement command,
which starts printing and empties the print buffer.
.Screen 100.
EAutomatic Sheet Feeder CommandsF
ESelect automatic sheet feederF
EFormat:F ESC {25} 4n5
Decimal 27 25 4n5
Hexadecimal 1B 19 4n5
ERemarks:F
This command should only be used when the optional automatic sheet
feeder is installed. The following values can be used for 4n5:
4 Turn on automatic sheet feeder
0 Turn off automatic sheet feeder
R Ejects the sheet (without feeding a new sheet)
.Screen 101.
EMiscellaneous CommandsF
EMaster resetF
EFormat:F ESC @
Decimal 27 64
Hexadecimal 1B 40
ERemarks:F
This command resets print style, line spacing and page length to
the settings of the most recently selected macro. Master reset
also clears any information in the print buffer. All margins and
tab settings are cleared. The top-of-form is set to the current
position.
If the reset command is in the same line as data, the preceding
data will be deleted from the buffer without printing.
.Screen 102.
ESelect emulationF
EFormat:F ESC ~ 5 4n5
Decimal 27 126 53 4n5
Hexadecimal 1B 7E 35 4n5
ERemarks:F
Selects one of the printer command sets available on the GSX 140,
depending on the value of 4n5. After executing this command, the
character sets and commands will be changed to emulate a different
type of printer. In addition, vertical and horizontal tabs are
reset to the power-on default positions.
4n5 Emulation
0 Epson LQ-series
1 IBM Proprinter X24
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 103.
EUnidirectional print on/offF
E On OffF
EFormat:F ESC U {1} ESC U {0}
Decimal 27 85 1 27 85 0
Hexadecimal 1B 55 01 1B 55 00
ERemarks:F
This command causes each line to be printed from left to right,
allowing very fine vertical alignment between lines. This reduces
printing speed. Unidirectional print is useful when printing line
graphics. Printing unidirectionally improves the print quality.
Unidirectional or bidirectional graphics printing may be selected
with the setup menu.
.Screen 104.
EUnidirectional print (one-line)F
EFormat:F ESC <
Decimal 27 60
Hexadecimal 1B 3C
ERemarks:F
This command moves the print head to the leftmost position after
the current line is printed. This has the same effect as using the
unidirectional print command but only for the following line.
Bidirectional printing resumes on the next line.
Unidirectional print is useful when printing line graphics which
are normally printed bidirectionally. Printing unidirectionally
improves the print quality, although there will be a loss of
speed.
.Screen 105.
EHalf speed mode on/offF
E On OffF
EFormat:F ESC s {1} ESC s {0}
Decimal 27 115 1 27 115 0
Hexadecimal 1B 73 01 1B 73 00
ERemarks:F
Half speed mode reduces the noise of printing. It does this by
printing characters in two passes (fewer pins fire on each pass)
instead of one. Therefore, print speed is reduced to about one-
half. Print quality is not affected.
.Screen 106.
ESuspend/resume communication from computerF
E Deselect SelectF
EFormat:F {19} {17}
Decimal 19 17
Hexadecimal 13 11
ERemarks:F
When {19} is received, the printer ignores any further
communication from the computer until the code {17} is received.
.Screen 107.
ESet MSB to 1F
EFormat:F ESC >
Decimal 27 62
Hexadecimal 1B 3E
ERemarks:F
Sets the most significant bit to 1 which forces the printer to
interpret all codes received (including command codes and
character codes) as high-bit codes (ASCII 128 to 255).
This command also sets the eighth bit for download characters or
bit image print data.
.Screen 108.
ESet MSB to 0F
EFormat:F ESC =
Decimal 27 61
Hexadecimal 1B 3D
ERemarks:F
Sets the most significant bit to 0 which forces the printer to
interpret all codes received as low-bit codes (ASCII 0 to 127).
.Screen 109.
ECancel MSB controlF
EFormat:F ESC #
Decimal 27 35
Hexadecimal 1B 23
ERemarks:F
Cancels control of the most significant bit set by ESC > or ESC =.
.Screen 110.
EIBM Emulation Command ReferenceF
The GSX 140 emulates the IBM Proprinter X24 if the IBM emulation
is selected. That is, programs and commands written for the IBM
printer will work properly on the GSX 140. Therefore, you can select
an IBM Proprinter printer driver for programs that do not support the
GSX 140 directly; no re-programming or modification is necessary.
To select the IBM emulation, use the utility program or the setup
menu. Alternately, you can use the ESC ~ 5 command, which is explained
in this manual.
.Screen 111.
EQuick ReferenceF
Select font Draft 10 pitch ESC I {0}
Draft 12 pitch ESC I {8}
Draft 17 pitch ESC I {16}
Courier LQ 10 pitch ESC I {2}
Prestige LQ 12 pitch ESC I {10}
Courier LQ 17 pitch ESC I {18}
Letter quality proportional ESC I {3}
Emphasized print On ESC E
Off ESC F
Doublestrike print On ESC G
Off ESC H
Underlining On ESC - 1
Off ESC - 0
Overscoring On ESC _ 1
Off ESC _ 0
Superscript/subscript Superscript ESC S 0
Subscript ESC S 1
Off ESC T
.Screen 112.
Double-high print ESC [ @ {4} {0} {0} {0} 4n1 n25
On ESC ~ 1 1
Off ESC ~ 1 0
Reverse print On ESC ~ 2 1
Off ESC ~ 2 0
Select color Black ESC r 0
Magenta ESC r 1
Cyan ESC r 2
Violet ESC r 3
Yellow ESC r 4
Orange ESC r 5
Green ESC r 6
Pitch Pica {18}
Elite ESC :
High-speed elite ESC ~ B 0
High-density elite ESC ~ B 1
Condensed {15}
Pica ESC ~ 3 0
.Screen 113.
Elite ESC ~ 3 1
Condensed ESC ~ 3 2
Expanded print On ESC W 1
Off ESC W 0
Expanded print (one line) On {14}
Off {20}
Proportional spacing On ESC P 1
Off ESC P 0
Select character set Set 1 ESC 7
Set 2 ESC 6
Print All Characters Set Continuous ESC \ 4n1 n25
One character ESC ^ 4n5
Zero Slashed ESC ~ 4 1
Not slashed ESC ~ 4 0
Line spacing Start text line spacing ESC 2
1/8 inch ESC 0
7/72 inch ESC 1
4n5/72 inch ESC A 4n5
.Screen 114.
4n5/120 inch ESC ~ 0 4n5
4n5/216 inch ESC 3 4n5
Set vertical units 1/216" ESC [ \ {4} {0} {0} {0} {0} {216}
1/180" ESC [ \ {4} {0} {0} {0} {0} {180}
Set top-of-form position ESC 4
Set page length 4n5 lines ESC C 4n5
4n5 inches ESC C {0} 4n5
Skip-over-perforation 4n5 lines ESC N 4n5
Cancel ESC O
Left and right margins ESC X 4l r5
Move printhead To left margin {13}
Backspace {8}
To next horizontal tab position {9}
Relative position ESC d 4n1 n25
Advance paper One line {10}
To next TOF {12}
4n5/216 inch ESC J 4n5
To next vertical tab position {11}
.Screen 115.
Tabs Set horizontal tabs ESC D 4n1 n25 ... {0}
Set vertical tabs ESC B 4n1 n25 ... {0}
Clear all tabs ESC R
Bit image graphics Single-density ESC K 4n1 n2 data5
Double-density ESC L 4n1 n2 data5
High-speed double density ESC Y 4n1 n2 data5
Quadruple-density ESC Z 4n1 n2 data5
Graphics mode 4m5 ESC [ g4 n1 n2 m data5
Graphics mode 4m5 ESC * 4m5 4n1 n2 data5
Download characters Define characters ESC = 4data5
Select download characters ESC I 4n5
Delete line {24}
Automatic sheet feeder A.S.F. on ESC {25} 4
A.S.F. off ESC {25} 0
Eject sheet ESC {25} R
Emulation Epson LQ-850 ESC ~ 5 0
IBM Proprinter X24 ESC ~ 5 1
Automatic line feed On ESC 5 1
Off ESC 5 0
.Screen 116.
Unidirectional print On ESC U 1
Off ESC U 0
Half speed mode On ESC s 1
Off ESC s 0
Off-line ESC j
Select/deselect Deselect {19}
Deselect ESC Q {24}
Select {17}
.Screen 117.
EPrint Style CommandsF
ESelect fontF
EFormat:F ESC I 4n5
Decimal 27 73 4n5
Hexadecimal 1B 49 4n5
ERemarks:F
Selects a font and print quality. The value of 4n5 is defined as
follows:
.Screen 118.
4 n n5
Dec Hex Function Dec Hex Function
0 00 Draft 10 cpi 4 04 Download draft 10 cpi
8 08 Draft 12 cpi 12 0C Download draft 12 cpi
16 10 Draft 17 cpi 20 14 Download draft 17 cpi
2 02 Courier LQ 10 cpi 6 06 Download LQ 10 cpi
10 0A Prestige LQ 12 cpi 14 0E Download LQ 12 cpi
18 12 Courier LQ 17 cpi 22 16 Download LQ 17 cpi
3 03 LQ proportional 7 07 Download LQ proportional
You can combine download and standard characters on one line.
.Screen 119.
EEmphasized print on/offF
E On OffF
EFormat:F ESC E ESC F
Decimal 27 69 27 70
Hexadecimal 1B 45 1B 46
ERemarks:F
Emphasized print can be used in combination with all print style
commands, including double-strike. Emphasized print increases
character density by striking each dot twice, with the second dot
offset horizontally.
.Screen 120.
EDoublestrike print on/offF
E On OffF
EFormat:F ESC G ESC H
Decimal 27 71 27 72
Hexadecimal 1B 47 1B 48
ERemarks:F
Characters are printed twice with a double pass of the print head,
but with no horizontal or vertical offset. Doublestrike print
reduces the print speed.
Doublestrike can be used in combination with all print style
commands.
.Screen 121.
EUnderlined print on/offF
E On OffF
EFormat:F ESC - {1} ESC - {0}
Decimal 27 45 1 27 45 0
Hexadecimal 1B 2D 01 1B 2D 00
ERemarks:F
Underlines everything--including spaces, but not tabs--from the
point that underlining is turned on to the point that underlining
is turned off.
.Screen 122.
EOverscored print on/offF
E On OffF
EFormat:F ESC _ {1} ESC _ {0}
Decimal 27 95 1 27 95 0
Hexadecimal 1B 5F 01 1B 5F 00
ERemarks:F
Overscores everything--including spaces, but not tabs--from the
point that overscoring is turned on to the point that overscoring
is turned off.
.Screen 123.
ESuperscript characters on/offF
E On OffF
EFormat:F ESC S {0} ESC T
Decimal 27 83 0 27 84
Hexadecimal 1B 53 00 1B 54
ERemarks:F
Superscript characters print at 2/3 normal height in the upper
half of the character space.
If you also select underlining, superscript characters are
underlined with the line in the normal position.
.Screen 124.
ESubscript characters on/offF
E On OffF
EFormat:F ESC S {1} ESC T
Decimal 27 83 1 27 84
Hexadecimal 1B 53 01 1B 54
ERemarks:F
Subscript characters print at 2/3 normal height in the lower half
of the character space.
If you also select underlining, subscript characters are
underlined with the line in the normal position.
.Screen 125.
ESelect double-high printingF
EFormat:F ESC [ @ {4} {0} {0} {0} 4n15 4n25
Decimal 27 91 64 4 0 0 0 4n15 4n25
Hexadecimal 1B 5B 40 04 00 00 00 4n15 4n25
ERemarks:F
This command selects double-high and/or double-wide text. In
addition, line spacing can be adjusted accordingly.
4n15 controls the character height and the line spacing. The
following table shows acceptable values.
.Screen 126.
4 n15
Dec Hex Function
0 00 No change
1 01 Standard height, line feeds unchanged
2 02 Double height, line feeds unchanged
16 10 Character height unchanged, single line feed
17 11 Standard height, single line feed
18 12 Double height, single line feed
32 20 Character height unchanged, double line feed
33 21 Standard height, double line feed
34 22 Double height, double line feed
4n25 specifies the character width. A value of 0 leaves the current
width unchanged. 1 specifies normal width (as specified by other
pitch commands); 2 specifies double width.
.Screen 127.
EDouble-high print on/offF
E On OffF
EFormat:F ESC ~ 1 {1} ESC ~ 1 {0}
Decimal 27 126 49 1 27 126 49 0
Hexadecimal 1B 7E 31 01 1B 7E 31 00
ERemarks:F
This command selects double-high text. Double-high text works with
all print styles except superscript and subscript characters.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 128.
EReverse print on/offF
E On OffF
EFormat:F ESC ~ 2 {1} ESC ~ 2 {0}
Decimal 27 126 50 1 27 126 50 0
Hexadecimal 1B 7E 32 01 1B 7E 32 00
ERemarks:F
This command selects reverse printing text (that is, white letters
on a black background). Double-high text works with all print
styles except superscript and subscript characters.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 129.
ESelect print colorF
EFormat:F ESC r 4n5
Decimal 27 114 4n5
Hexadecimal 1B 72 4n5
ERemarks:F
When the optional color unit and color ribbon cartridge is
installed, this command selects the print color according to the
value of 4n5. Valid values are 0 to 6, corresponding to the seven
available colors as shown in the following table. The default
print color at power-on is black.
4n5 Color 4n5 Color
0 Black 4 Yellow
1 Magenta (red) 5 Orange
2 Cyan (blue) 6 Green
3 Violet
.Screen 130.
Color can also be selected with the quick menu or the setup menu.
.Screen 131.
ECharacter Pitch CommandsF
ESelect pica pitchF
EFormat:F {18}
Decimal 18
Hexadecimal 12
ERemarks:F
Selects 10-pitch (or pica), printing 10 characters per inch.
Pica pitch can also be selected with the quick menu or the setup
menu.
.Screen 132.
ESelect elite pitchF
EFormat:F ESC :
Decimal 27 58
Hexadecimal 1B 3A
ERemarks:F
Selects 12-pitch (or elite), printing 12 characters per inch.
Elite pitch can also be selected with the quick menu or the setup
menu.
.Screen 133.
ESelect elite printing speedF
EFormat:F ESC ~ B 4n5
Decimal 27 126 66 4n5
Hexadecimal 1B 7E 42 4n5
ERemarks:F
This command selects between high-speed and high-density (i.e.,
better print quality) elite printing. In the draft font, high-
speed elite prints at 192 characters per second; high-density
prints at 160 cps.
This command is only effective when elite (12-pitch) printing is
selected with ESC :. This command does not actually set the pitch.
High-speed (HS_12CPI) or high-density (HD_12CPI) elite can also be
selected with the with the quick menu or with the setup menu.
.Screen 134.
EExpanded print on/offF
E On OffF
EFormat:F ESC W {1} ESC W {0}
Decimal 27 87 1 27 87 0
Hexadecimal 1B 57 01 1B 57 00
ERemarks:F
Sets the character width to double whatever width is in effect
when the command is sent. The table below compares the characters
per inch (cpi) between normal and expanded print.
Normal Expanded
Pica 10 cpi 5 cpi
Elite 12 cpi 6 cpi
Condensed 17 cpi 8.5 cpi
.Screen 135.
EOne-line expanded print on/offF
E On OffF
EFormat:F {14} {20}
Decimal 14 20
Hexadecimal 0E 14
ERemarks:F
Sets the character width to double whatever width is in effect
when the command is sent. Expanded print is automatically canceled
at the end of the line, or upon receipt of any of these commands:
carriage return, cancel line, line feed, form feed, or vertical
tab. It can be canceled before the end of the line with {20}, ESC
W, or ESX [ @. Expanded print set by ESC W is not canceled by
{20}.
.Screen 136.
ECondensed print on/offF
E On OffF
EFormat:F {15} {18}
Decimal 15 18
Hexadecimal 0F 12
ERemarks:F
Selects condensed print, printing 17.1 characters per inch.
.Screen 137.
ESelect pitchF
EFormat:F ESC ~ 3 4n5
Decimal 27 126 51 4n5
Hexadecimal 1B 7E 33 4n5
ERemarks:F
Selects the pitch according to the value of 4n5:
4n5 Pitch
0 10 cpi (pica)
1 12 cpi (elite)
2 17.1 cpi (condensed)
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 138.
EProportional spacing on/offF
E On OffF
EFormat:F ESC P {1} ESC P {0}
Decimal 27 80 1 27 80 0
Hexadecimal 1B 50 01 1B 50 00
ERemarks:F
The width each printed character occupies is proportional to its
shape. (With fixed spacing, the width is the same for all
characters, regardless of size.) Characters printed with
proportional spacing are always printed in letter quality and are
compatible with all print styles. If the current font is Draft
when proportional spacing is selected, the font will automatically
change to the previously selected LQ font. This command will
override the previous pitch setting.
Proportional spacing can also be set with the quick menu or the
setup menu.
.Screen 139.
ESpecial Character CommandsF
ESelect character setF
E Set 1 Set 2F
EFormat:F ESC 7 ESC 6
Decimal 27 55 27 54
Hexadecimal 1B 6D 1B 6D
ERemarks:F
Selects one of the two IBM character sets. See Appendix A of the
User's Manual for a complete list of characters for each set.
.Screen 140.
EPrint from All Characters SetF
EFormat:F ESC \ 4n15 4n25
Decimal 27 92 4n15 4n25
Hexadecimal 1B 5C 4n15 4n25
ERemarks:F
Characters following 4n25 will be printed from the IBM All
Characters Set. The number of characters affected is 4n15 4+ 5(4n25 x
256). This allows you to print the characters in positions 0-31
and 128-159, which are normally interpreted as non-printing
control codes. Appendix A of the User's Manual shows the
characters that will print.
.Screen 141.
EPrint one character from All Characters SetF
EFormat:F ESC ^ 4n5
Decimal 27 94 4n5
Hexadecimal 1B 5E 4n5
ERemarks:F
Prints a single character from the IBM All Characters Set. This
allows you to print the characters in positions 0-31 and 128-159,
which are normally interpreted as non-printing control codes. 4n5
specifies the code for the character you want to print. Appendix A
of the User's Manual shows the characters that will print.
.Screen 142.
ESlashed zero on/offF
E On OffF
EFormat:F ESC ~ 4 {1} ESC ~ 4 {0}
Decimal 27 126 52 1 27 126 52 0
Hexadecimal 1B 7E 34 01 1B 7E 34 00
ERemarks:F
This command causes zeros to be printed with a slash mark through
them to distinguish them from the letter O.
The slashed zero feature can also be selected with the setup menu.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 143.
ELine Spacing CommandsF
EStart text line spacingF
EFormat:F ESC 2
Decimal 27 50
Hexadecimal 1B 32
ERemarks:F
This command starts using the line spacing set by the last ESC A
command. If no ESC A command has been executed, this command will
set the line spacing to 1/6 inch, printing 6 lines per inch.
.Screen 144.
ESet line spacing to 1/8 inchF
EFormat:F ESC 0
Decimal 27 48
Hexadecimal 1B 30
ERemarks:F
Line spacing for future line feeds is set to 1/8 inch, printing 8
lines per inch. The line spacing can also be set to 8 lpi with the
setup menu.
.Screen 145.
ESet line spacing to 7/72 inchF
EFormat:F ESC 1
Decimal 27 49
Hexadecimal 1B 31
ERemarks:F
Line spacing is adjusted to 7/72 inch. Because this is seven dots
high, this spacing is useful for printing bit image graphics;
adjacent lines will connect at the top and bottom.
.Screen 146.
ESet line spacing of n/72 inchF
EFormat:F ESC A 4n5
Decimal 27 65 4n5
Hexadecimal 1B 41 4n5
ERemarks:F
This command sets the line spacing, but the new setting is not
activated until an ESC 2 command is sent. 4n5 can range from 0 to
85.
EAlternate Graphics Mode:F
If you select AGM from the PRN STYL/AGM MODE menu on the setup
menu, line spacing will be set in increments of 1/60 inch instead
of 1/72 inch. In addition, the setting is effectively immediately;
it does not need to be followed by ESC 2.
.Screen 147.
ESet line spacing to n/216 inchF
EFormat:F ESC 3 4n5
Decimal 27 51 4n5
Hexadecimal 1B 33 4n5
ERemarks:F
Line spacing is adjusted to n/216 inch. 4n5 can range from 0 to 255.
This command is useful for printing bit image graphics; set the
line spacing to 24/216 to print eight-bit high graphic images.
The units used by ESC 3 can be changed with the set vertical units
command: ESC [ \.
EAlternate Graphics Mode:F
If you select AGM from the PRN STYL/AGM MODE menu on the setup
menu, line spacing will be set in increments of 1/180 inch instead
of 1/216 inch.
.Screen 148.
ESet Vertical UnitsF
EFormat:F ESC [ \ {4} {0} {0} {0} {0} 4n5
Decimal 27 91 92 4 0 0 0 0 4n5
Hexadecimal 1B 5B 5C 04 00 00 00 00 4n5
ERemarks:F
This command changes the base units used by the ESC J (one-time
paper feed) and ESC 3 (set line spacing) commands. 4n5 can be either
decimal 216, which sets the vertical spacing unit to 1/216 inch;
or decimal 180, which sets the spacing unit to 1/180 inch. Any
other value will cause the command to be ignored.
.Screen 149.
ESet line spacing to n/120 inchF
EFormat:F ESC ~ 0 4n5
Decimal 27 126 48 4n5
Hexadecimal 1B 7E 30 4n5
ERemarks:F
Line spacing is adjusted to n/120 inch. 4n5 can range from 0 to 125.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 150.
EPage Layout CommandsF
ESet top-of-formF
EFormat:F ESC 4
Decimal 27 52
Hexadecimal 1B 34
ERemarks:F
Sets the top-of-form at the current paper position.
.Screen 151.
ESet page length (lines)F
EFormat:F ESC C 4n5
Decimal 27 67 4n5
Hexadecimal 1B 43 4n5
ERemarks:F
Sets the page length to 4n5 lines (4n5 = 1 to 127). The actual page
length is set internally in inches, determined by multiplying the
lines per page by the line spacing in effect at the time. Later
changes in line spacing, therefore, have no effect on the length
of the page (they will change the number of lines per page,
however).
The top of form position is set to the current line.
.Screen 152.
ESet page length (inches)F
EFormat:F ESC C {0} 4n5
Decimal 27 67 0 4n5
Hexadecimal 1B 43 00 4n5
ERemarks:F
Sets the page length to 4n5 inches (4n5 = 1 to 22). Line spacing has
no effect on the page length set in inches.
The top of form is set at the current line position. Skip-over-
perforation is cleared if this command is executed at any time
except after a FF command.
The page length can also be set with the setup menu.
.Screen 153.
ESkip-over-perforation on/offF
E On OffF
EFormat:F ESC N 4n5 ESC O
Decimal 27 78 4n5 27 79
Hexadecimal 1B 4E 4n5 1B 4F
ERemarks:F
Sets a skip-over-perforation (bottom margin) of 4n5 lines (4n5 = 0 to
255) at the bottom of the page (above the perforation on
continuous paper). A skip at the top of the page (below the
perforation) is set by adjusting the position of the paper before
turning on the printer.
The skip is canceled by changing the form length, ESC C, ESC C
{0}, or ESC O.
.Screen 154.
ESet left and right marginsF
EFormat:F ESC X 4n15 4n25
Decimal 27 88 4n15 4n25
Hexadecimal 1B 58 4n15 4n25
ERemarks:F
The value of 4n15 specifies the left margin column number; the value
of 4n25 specifies the right margin column number, at the current
pitch. Printing starts at column 4n15.
If 4n15 is 0 then the current left margin is used; if 4n25 is 0 then
the right margin is unchanged.
4n25 must be less than 255, and 4n15 must be at least one column less
than 4n25. The margin will be set at 8" from the left side for any
value that would set a margin beyond 8".
.Screen 155.
EHorizontal Position CommandsF
ECarriage returnF
EFormat:F {13}
Decimal 13
Hexadecimal 0D
ERemarks:F
A carriage return moves the print head to the left margin, but
does not advance the paper to the next line. Therefore, many
computers automatically add a line feed {10} to each carriage
return.
You can add a line feed to each carriage return by turning on
automatic line feed with the setup menu or using the ESC 5 command
if your computer does not add line feeds for you.
.Screen 156.
EBackspaceF
EFormat:F {8}
Decimal 8
Hexadecimal 08
ERemarks:F
Moves the print head left one character. This can be used to
create overstrike characters. The print head can be moved as far
as the left margin with multiple backspaces.
The backspace command is ignored if the print head is at the
extreme left.
.Screen 157.
EHorizontal tabF
EFormat:F {9}
Decimal 9
Hexadecimal 09
ERemarks:F
Moves the print head to the next horizontal tab setting. At power-
on, tabs are set at every eighth column in the default character
size, beginning with column 9.
The tabs can be reset as desired with the tab-setting commands.
Tab settings are not affected by changes in character width.
.Screen 158.
ESet horizontal tabsF
EFormat:F ESC D 4n15 4n25 ... {0}
Decimal 27 68 4n15 4n25 ... 0
Hexadecimal 1B 44 4n15 4n25 ... 00
ERemarks:F
Sets horizontal tabs at column 4n15, 4n25, and so on. Column numbers
must be in ascending numeric order, and can range from 1 to 64.
Any column number less than the preceding one acts as an ending
code for the sequence. Up to 28 tabs can be set.
Tab positions are determined by the character width in effect when
they are set. Later changes in character width do not affect their
positions.
ESC D {0} can be used to clear all tab settings.
.Screen 159.
EClear all tabsF
EFormat:F ESC R
Decimal 27 82
Hexadecimal 1B 52
ERemarks:F
This command is used to reset all horizontal and vertical tabs to
their default settings: horizontal tabs every eight columns
beginning at column 9, and no vertical tabs.
.Screen 160.
ERelative print positionF
EFormat:F ESC d 4n15 4n25
Decimal 27 100 4n15 4n25
Hexadecimal 1B 64 4n15 4n25
ERemarks:F
Moves the print head to the right. The distance is specified in
units of 1/120 inch, measured from the current position. The
values for n1 and n2 set the distance according to the following
formula:
4n15 + (256 x 4n25) = distance (in 1/120 inch units)
.Screen 161.
EVertical Position CommandsF
ELine feedF
EFormat:F {10}
Decimal 10
Hexadecimal 0A
ERemarks:F
Advances the paper to the next line after printing.
.Screen 162.
EForm feedF
EFormat:F {12}
Decimal 12
Hexadecimal 0C
ERemarks:F
A form feed advances the paper to the top of the next page and
moves the print head to the left margin. If you are using
continuous paper with the tractor in the push position, and TEAR
OFF is set "ON" in the setup menu, the paper will advance so that
the perforation is under the tear bar. It will immediately retract
to the top-of-form position when you send more data. It will also
retract to the top-of-form as soon as the power is turned on if it
has been turned off.
For form feeds to work properly, the paper must be at the desired
"top of the page" when the printer is turned on (unless you are
using TEAR OFF as described in the previous paragraph). The page
.Screen 163.
length can be set with the setup menu or with ESC C or ESC C {0}
commands.
.Screen 164.
EOne-time paper feedF
EFormat:F ESC J n
Decimal 27 74 n
Hexadecimal 1B 4A n
ERemarks:F
Advances the paper 4n5/216 inch without changing the print head
position. This command does not change the line spacing for
subsequent lines.
The units used by ESC J can be changed with the set vertical units
command: ESC [ \.
EAlternate Graphics Mode:F
If you select AGM from the PRN STYL/AGM MODE menu on the setup
menu, paper will advance in increments of 1/180 inch instead of
1/216 inch.
.Screen 165.
EVertical tabF
EFormat:F {11}
Decimal 11
Hexadecimal 0B
ERemarks:F
Moves the print head to the next vertical tab setting. No tabs are
set at power-on; they must be set with the ESC B command before
use. Tab settings are not affected by subsequent changes in line
spacing.
The paper advances one line when no vertical tabs are set.
.Screen 166.
ESet vertical tabsF
EFormat:F ESC B 4n15 4n25 ... {0}
Decimal 27 66 4n15 4n25 ... 0
Hexadecimal 1B 42 4n15 4n25 ... 00
ERemarks:F
This command sets vertical tabs. Up to 64 tabs can be set. The
top-of-form position is line 1. Line numbers must be in ascending
numeric order, and can range from 1 to 64. Any line number less
than the preceding one acts as an ending code for the sequence.
This command cancels all previous vertical tab settings.
Tab positions are determined by the line spacing in effect when
they are set. Later changes in line spacing do not affect their
positions.
ESC B {0} can be used to clear the tab settings.
.Screen 167.
EGraphics CommandsF
ESingle-density graphicsF
EFormat:F ESC K 4n15 4n25 4data5
Decimal 27 75 4n15 4n25 4data5
Hexadecimal 1B 4B 4n15 4n25 4data5
ERemarks:F
Prints 8-bit single-density bit image graphics (60 dots per inch
horizontal, 72 dots per inch vertical). The values for 4n15 and 4n25
set the image width in dots according to the formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. The least significant bit controls the bottom
dot; the most significant bit controls the top dot. A value of 1
prints a dot; 0 does not print.
.Screen 168.
Because the GSX 140 is a 24-wire printer, 8-bit graphics are
mapped into the top twenty pins to provide compatibility with
older 9-pin printers.
.Screen 169.
EDouble-density graphicsF
EFormat:F ESC L 4n15 4n25 4data5
Decimal 27 76 4n15 4n25 4data5
Hexadecimal 1B 59 4n15 4n25 4data5
ERemarks:F
Prints 8-bit double-density bit image graphics (120 dots per inch
horizontal, 72 dots per inch vertical). The values for 4n15 and 4n25
set the image width in dots according to the formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. The least significant bit controls the bottom
dot; the most significant bit controls the top dot. A value of 1
prints a dot; 0 does not print.
.Screen 170.
Because the GSX 140 is a 24-wire printer, 8-bit graphics are
mapped into the top twenty pins to provide compatibility with
older 9-pin printers.
.Screen 171.
EHigh-speed double-density graphicsF
EFormat:F ESC Y 4n15 4n25 data
Decimal 27 89 n1 n2 data
Hexadecimal 1B 59 n1 n2 data
ERemarks:F
Prints 8-bit high-speed double-density bit image graphics (120
dots per inch horizontal, 72 dots per inch vertical). The values
for n1 and n2 set the image width in dots according to the
formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. In high-speed graphics horizontally adjacent dots
will not print; the second dot will be eliminated. The least
significant bit controls the bottom dot; the most significant bit
controls the top dot. A value of 1 prints a dot; 0 does not print.
.Screen 172.
Because the GSX 140 is a 24-wire printer, 8-bit graphics are
mapped into the top twenty pins to provide compatibility with
older 9-pin printers.
.Screen 173.
EQuadruple-density graphicsF
EFormat:F ESC Z 4n15 4n25 4data5
Decimal 27 90 4n15 4n25 4data5
Hexadecimal 1B 5A 4n15 4n25 4data5
ERemarks:F
Prints 8-bit quadruple-density bit image graphics (120 dots per
inch horizontal, 72 dots per inch vertical). The values for n1 and
n2 set the image width in dots according to the formula:
4n15 + (256 x 4n25) = dots
The number of data characters following the command is the same as
the image width. In quadruple-density graphics horizontally
adjacent dots will not print; the second dot will be eliminated.
The least significant bit controls the bottom dot; the most
significant bit controls the top dot. A value of 1 prints a dot; 0
does not print.
.Screen 174.
Because the GSX 140 is a 24-wire printer, 8-bit graphics are
mapped into the top twenty pins to provide compatibility with
older 9-pin printers.
.Screen 175.
EHigh-resolution graphicsF
EFormat:F ESC [ g 4n15 4n25 4m data5
Decimal 27 91 103 4n15 4n25 4m data5
Hexadecimal 1B 5B 67 4n15 4n25 4m data5
ERemarks:F
Selects a graphics mode and prints bit image graphics. The values
for 4n15 and 4n25 define the number of data bytes plus one, according
to the formula:
4n15 + (256 x 4n25) = bytes
4m5 specifies the graphics mode, as shown in the following table:
.Screen 176.
4m5 Horizontal density Wires
0 60 dots per inch 8 Same as ESC K
1 120 dots per inch 8 Same as ESC L
2 120 dots per inch 8 *Same as ESC Y
3 240 dots per inch 8 *Same as ESC Z
8 60 dots per inch 24 High resolution single-density
9 120 dots per inch 24 High resolution double-density
11 180 dots per inch 24 High resolution triple-density
12 360 dots per inch 24 *High resolution hex-density
For eight wire graphic modes, there is one byte for each dot
column (like ESC K). The least significant bit controls the bottom
dot; the most significant bit controls the top dot. A value of 1
prints a dot; 0 does not print. Because the GSX 140 is a 24-wire
printer, 8-bit graphics are mapped into the top twenty pins to
provide compatibility with older 9-pin printers.
Twenty-four wire modes require three bytes for each vertical
column. The most significant bit of the first byte controls the
.Screen 177.
top dot; the least significant bit of the third byte controls the
bottom dot.
* In modes 2, 3, and 12, horizontally adjacent dots cannot be
printed; the second dot is eliminated.
.Screen 178.
ESet graphics modeF
EFormat:F ESC * 4m5 4n15 4n25 4data5
Decimal 27 42 4m5 4n15 4n25 4data5
Hexadecimal 1B 2A 4m5 4n15 4n25 4data5
ERemarks:F
This command is only effective if AGM (Alternate Graphics Mode) is
selected from the PRN STYLE/AGM MODE menu in the setup menu. It
selects graphics densities according to the value of 4m5 as shown in
the table below.
.Screen 179.
4m5 Horizontal density Wires Graphics Mode
0 60 dots per inch 8 Same as ESC K
1 120 dots per inch 8 Same as ESC L
2 120 dots per inch 8 *Same as ESC Y
3 240 dots per inch 8 *Same as ESC Z
4 80 dots per inch 8 CRT graphics I
6 90 dots per inch 8 CRT graphics II
32 60 dots per inch 24 High resolution single-density
33 120 dots per inch 24 High resolution double-density
38 90 dots per inch 24 CRT graphics III
39 180 dots per inch 24 High resolution triple-density
40 360 dots per inch 24 *High resolution hex-density
The values for 4n15 and 4n25 set the image width in dot columns
according to the formula:
4n15 + (256 x 4n25) = dots
.Screen 180.
The number of data characters following the command is the same as
the image width for 8-wire graphic modes. Three bytes are required
for each column of 24-wire graphics.
* In modes 2, 3, and 40, horizontally adjacent dots cannot be
printed; the second dot is eliminated.
.Screen 181.
EDownload Character CommandsF
EDefine charactersF
EFormat:F ESC = 4data5
Decimal 27 61 4data5
Hexadecimal 1B 3D 4data5
ERemarks:F
Loads download character definitions into the download character
memory. When the printer is turned off or initialized, all of the
download characters are lost.
A detailed discussion of creating download characters can be found
in the 4IBM Proprinter Technical Reference5 manual (SC31-2587),
which is available through IBM dealers.
.Screen 182.
EBuffer CommandsF
ECancel lineF
EFormat:F {24}
Decimal 24
Hexadecimal 18
ERemarks:F
This command clears the current line from the print buffer. The
{24} command must be received before a paper movement command,
which starts printing and empties the print buffer.
.Screen 183.
EAutomatic Sheet Feeder CommandsF
ESelect automatic sheet feederF
EFormat:F ESC {25} 4n5
Decimal 27 25 4n5
Hexadecimal 1B 19 4n5
ERemarks:F
This command should only be used when the optional automatic sheet
feeder is installed. The following values can be used for 4n5:
4 Turn on automatic sheet feeder
0 Turn off automatic sheet feeder
R Ejects the sheet (without feeding a new sheet)
.Screen 184.
EMiscellaneous CommandsF
ESelect emulationF
EFormat:F ESC ~ 5 4n5
Decimal 27 126 53 4n5
Hexadecimal 1B 7E 35 4n5
ERemarks:F
Selects one of the printer command sets available on the GSX 140,
depending on the value of 4n5. After executing this command, the
character sets and commands will be changed to emulate a different
type of printer. In addition, vertical and horizontal tabs are
reset to the power-on default positions.
4n5 Emulation
0 Epson LQ-850
1 IBM Proprinter X24
.Screen 185.
This command is unique to Citizen printers; therefore it is only
effective when Citizen ESC codes are turned on in the setup menu.
.Screen 186.
EAutomatic line feed on/offF
E On OffF
EFormat:F ESC 5 {1} ESC 5 {0}
Decimal 27 53 1 27 53 0
Hexadecimal 1B 35 01 1B 35 00
ERemarks:F
If your computer does not automatically add a line feed to each
carriage return (you'll know because the paper does not advance
between lines), you can select this feature.
Automatic line feed can also be set as the power-on default with
the setup menu.
.Screen 187.
EUnidirectional print on/offF
E On OffF
EFormat:F ESC U {1} ESC U {0}
Decimal 27 85 1 27 85 0
Hexadecimal 1B 55 01 1B 55 00
ERemarks:F
This command causes each line to be printed from left to right,
allowing very fine vertical alignment between lines. This reduces
printing speed. Unidirectional print is useful when printing line
graphics. Printing unidirectionally improves the print quality.
When bit image printing is selected, the unidirectional mode is
automatically selected.
Unidirectional or bidirectional print may also be selected with
the setup menu.
.Screen 188.
EHalf speed mode on/offF
E On OffF
EFormat:F ESC s {1} ESC s {0}
Decimal 27 115 1 27 115 0
Hexadecimal 1B 73 01 1B 73 00
ERemarks:F
Half speed mode reduces the noise of printing. It does this by
printing characters in two passes (fewer pins fire on each pass)
instead of one. Therefore, print speed is reduced to about one-
half. Print quality is not affected.
.Screen 189.
ESwitch off-lineF
EFormat:F ESC j
Decimal 27 106
Hexadecimal 1B 6A
ERemarks:F
This command has the same effect as pressing the ON LINE key to
switch the printer off-line. The ON LINE light will go off, and
the display will read OFF LINE. Data in the buffer before the ESC
j command is printed, and then the printer sends a busy signal to
the computer so that no more data can be received. To resume
printing, you must press the ON LINE key to switch the printer on-
line again.
.Screen 190.
ESuspend/resume communication from computerF
E Deselect SelectF
EFormat:F {19} {17}
Decimal 19 17
Hexadecimal 13 11
ERemarks:F
When {19} is received, the printer ignores any further
communication from the computer until the code {17} is received.
The printer can also be deselected with ESC Q.
.Screen 191.
EDeselect printerF
EFormat:F ESC Q {24}
Decimal 27 81 24
Hexadecimal 1B 51 18
ERemarks:F
When this command is received, the printer ignores any further
communication from the computer until the code {17} is received or
the printer is reset.
.Begin Table C.
Introduction 2
Command Notation 3
Using BASIC 5
Epson Emulation Command Reference 6
Quick Reference 7
Print Style Commands 15
Character Pitch Commands 33
Special Character Commands 46
Line Spacing Commands 51
Page Layout Commands 57
Horizontal Position Commands 65
Vertical Position Commands 73
Graphics Commands 82
Download Character Commands 94
Buffer Commands 98
Automatic Sheet Feeder Commands 100
Miscellaneous Commands 101
IBM Emulation Command Reference 110
Quick Reference 111
Print Style Commands 117
Character Pitch Commands 131
Special Character Commands 139
Line Spacing Commands 143
Page Layout Commands 150
Horizontal Position Commands 155
Vertical Position Commands 161
Graphics Commands 167
Download Character Commands 181
Buffer Commands 182
Automatic Sheet Feeder Commands 183
Miscellaneous Commands 184
.End Table C.
.Begin Index.
Absolute print position (Epson) 69
All Characters Set (IBM) 140
Automatic line feed (IBM) 186
Automatic sheet feeder (Epson) 100
Automatic sheet feeder (IBM) 183
Backspace (Epson) 66
Backspace (IBM) 156
BASIC 5
Black background (Epson) 28
Bottom margin (Epson) 59
Bottom margin (IBM) 153
Braces 3
BS (Epson) 66
BS (IBM) 156
CAN (Epson) 99
CAN (IBM) 182
Cancel line (Epson) 99
Cancel line (IBM) 182
Carriage return (Epson) 65
Carriage return (IBM) 155
Centered text (Epson) 63
Color (Epson) 29
Color (IBM) 129
Command Notation 3
Condensed print (Epson) 41
Condensed print (IBM) 136
Control codes (ASCII 128-159) (Epson) 49
Courier (Epson) 16
Courier (IBM) 117
CR (Epson) 65
CR (IBM) 155
DC1 (Epson) 106
DC1 (IBM) 190
DC2 (Epson) 41
DC2 (IBM) 131
DC3 (Epson) 106
DC3 (IBM) 190
DC4 (Epson) 40
DC4 (IBM) 135
DEL (Epson) 98
Delete character (Epson) 98
Deselect printer (Epson) 106
Deselect printer (IBM) 190
Double-density graphics (Epson) 84
Double-density graphics (IBM) 169
Double-high print (Epson) 26
Double-high print (IBM) 125
Double-wide (Epson) 38
Double-wide (IBM) 125
Doublestrike print (Epson) 19
Doublestrike print (IBM) 120
Download Characters, defining (Epson) 94
Download Characters, defining (IBM) 181
Download characters, selecting (Epson) 97
Download characters, selecting (IBM) 117
Draft (Epson) 15
Draft (IBM) 117
Elite pitch (Epson) 35
Elite pitch (IBM) 132
Elite printing speed (Epson) 36
Elite printing speed (IBM) 133
Emphasized print (Epson) 18
Emphasized print (IBM) 119
Emulation, selecting (Epson) 102
Emulation, selecting (IBM) 184
Epson Emulation 6
ESC 3
ESC # (Epson) 109
ESC $ (Epson) 69
ESC % (Epson) 97
ESC & (Epson) 94
ESC ( - (Epson) 22
ESC * (Epson) 90
ESC * (IBM) 178
ESC + (Epson) 56
ESC - (Epson) 21
ESC - (IBM) 121
ESC / (Epson) 81
ESC 0 (Epson) 52
ESC 0 (IBM) 144
ESC 1 (IBM) 145
ESC 2 (Epson) 51
ESC 2 (IBM) 143
ESC 3 (Epson) 55
ESC 3 (IBM) 147
ESC 4 (Epson) 20
ESC 4 (IBM) 150
ESC 5 (Epson) 20
ESC 5 (IBM) 186
ESC 6 (Epson) 49
ESC 6 (IBM) 139
ESC 7 (Epson) 49
ESC 7 (IBM) 139
ESC : (Epson) 96
ESC : (IBM) 132
ESC < (Epson) 104
ESC = (Epson) 108
ESC = (IBM) 181
ESC > (Epson) 107
ESC ? (Epson) 93
ESC @ (Epson) 101
ESC [ @ (IBM) 125
ESC [ \ (IBM) 148
ESC [ g (IBM) 175
ESC \ (Epson) 71
ESC \ (IBM) 140
ESC ^ (IBM) 141
ESC _ (IBM) 122
ESC A (Epson) 53
ESC A (IBM) 146
ESC a (Epson) 63
ESC B (Epson) 78
ESC B (IBM) 166
ESC b (Epson) 80
ESC C (Epson) 57
ESC C (IBM) 151
ESC D (Epson) 68
ESC D (IBM) 158
ESC d (IBM) 160
ESC E (Epson) 18
ESC E (IBM) 119
ESC EM (Epson) 100
ESC EM (IBM) 183
ESC F (Epson) 18
ESC F (IBM) 119
ESC G (Epson) 19
ESC G (IBM) 120
ESC g (Epson) 37
ESC H (Epson) 19
ESC H (IBM) 120
ESC I (IBM) 117
ESC J (Epson) 76
ESC J (IBM) 164
ESC j (IBM) 189
ESC K (Epson) 82
ESC K (IBM) 167
ESC k (Epson) 16
ESC L (Epson) 84
ESC L (IBM) 169
ESC l (Epson) 60
ESC M (Epson) 35
ESC N (Epson) 59
ESC N (IBM) 153
ESC O (Epson) 59
ESC O (IBM) 153
ESC P (Epson) 33
ESC P (IBM) 138
ESC p (Epson) 44
ESC Q (IBM) 191
ESC q (Epson) 17
ESC R (Epson) 46
ESC R (IBM) 159
ESC r (Epson) 29
ESC r (IBM) 129
ESC S (Epson) 24
ESC S (IBM) 123
ESC SI (Epson) 41
ESC SO (Epson) 40
ESC SP (Epson) 45
ESC s (Epson) 105
ESC s (IBM) 188
ESC T (Epson) 24
ESC T (IBM) 123
ESC t (Epson) 48
ESC U (Epson) 103
ESC U (IBM) 187
ESC W (Epson) 38
ESC W (IBM) 134
ESC w (Epson) 26
ESC X (IBM) 154
ESC x (Epson) 15
ESC Y (Epson) 86
ESC Y (IBM) 171
ESC Z (Epson) 88
ESC Z (IBM) 173
ESC ~ 0 (Epson) 54
ESC ~ 0 (IBM) 149
ESC ~ 1 (Epson) 27
ESC ~ 1 (IBM) 127
ESC ~ 2 (Epson) 28
ESC ~ 2 (IBM) 128
ESC ~ 3 (Epson) 43
ESC ~ 3 (IBM) 137
ESC ~ 4 (Epson) 50
ESC ~ 4 (IBM) 142
ESC ~ 5 (Epson) 102
ESC ~ 5 (IBM) 184
ESC ~ B (Epson) 36
ESC ~ B (IBM) 133
Escape code 3
Expanded print (Epson) 38
Expanded print (IBM) 134
Expanded print, one line (Epson) 40
Expanded print, one line (IBM) 135
FF (Epson) 74
FF (IBM) 162
Fifteen pitch 37
Flush left (Epson) 63
Flush right (Epson) 63
Font (Epson) 16
Font (IBM) 117
Form feed (Epson) 74
Form feed (IBM) 162
Graphic character table (Epson) 48
Graphics (Epson) 82
Graphics (IBM) 167
Graphics mode (Epson) 90
Graphics mode (IBM) 178
Graphics mode, reassign (Epson) 93
Half speed mode (Epson) 105
Half speed mode (IBM) 188
High-resolution graphics (IBM) 175
High-speed double-density graphics (Epson) 86
High-speed double-density graphics (IBM) 171
Horizontal tab (Epson) 67
Horizontal tab (IBM) 157
Horizontal tabs, setting (Epson) 68
Horizontal tabs, setting (IBM) 158
HT (Epson) 67
HT (IBM) 157
IBM character sets 139
IBM Emulation 110
Intercharacter spacing (Epson) 45
International character set (Epson) 46
Italic print (Epson) 20
Justification (Epson) 63
Left margin (Epson) 60
Letter Quality (Epson) 15
Letter quality (IBM) 117
LF (Epson) 73
LF (IBM) 161
Line feed (Epson) 73
Line feed (IBM) 161
Line Spacing (Epson) 51
Line Spacing (IBM) 143
Line spacing, 1/6 inch (Epson) 51
Line spacing, 1/8 inch (Epson) 52
Line spacing, 1/8 inch (IBM) 144
Line spacing, 7/72 inch (IBM) 145
Line spacing, n/120 inch (Epson) 54
Line spacing, n/120 inch (IBM) 149
Line spacing, n/180 inch (Epson) 55
Line spacing, n/216 inch (IBM) 147
Line spacing, n/360 inch (Epson) 56
Line spacing, n/60 inch (Epson) 53
Line spacing, n/72 inch (IBM) 146
Margins (Epson) 60
Margins, left and right (IBM) 154
Master print mode (Epson) 31
Most significant bit control (Epson) 107
Nonprinting codes 3
Off-line (IBM) 189
Outline print (Epson) 17
Outline print with shadow (Epson) 17
Overscored print (Epson) 22
Overscored print (IBM) 122
Page length (inches), setting (Epson) 58
Page length (inches), setting (IBM) 152
Page length (lines), setting (Epson) 57
Page length (lines), setting (IBM) 151
Paper feed, one time (Epson) 76
Paper feed, one time (IBM) 164
Pica pitch (Epson) 33
Pica pitch (IBM) 131
Pitch (Epson) 33
Pitch (IBM) 131
Prestige (Epson) 16
Prestige (IBM) 117
Print quality (Epson) 15
Print quality (IBM) 117
Print Style (Epson) 15
Print Style (IBM) 117
Proportional spacing (Epson) 44
Proportional spacing (IBM) 138
Quadruple-density graphics (Epson) 88
Quadruple-density graphics (IBM) 173
Relative print position (Epson) 71
Relative print position (IBM) 160
Reset (Epson) 101
Reverse print (Epson) 28
Reverse print (IBM) 128
Right margin 61
ROM characters (Epson) 96
Roman (Epson) 16
Sans serif (Epson) 16
Scoring 22
Select printer (Epson) 106
Select printer (IBM) 190
Shadow print (Epson) 17
SI (Epson) 41
SI (IBM) 136
Single-density graphics (Epson) 82
Single-density graphics (IBM) 167
Skip-over-perforation (Epson) 59
Skip-over-perforation (IBM) 153
Slashed zero (Epson) 50
Slashed zero (IBM) 142
SO (Epson) 40
SO (IBM) 135
Special effect (Epson) 17
Strikethrough (Epson) 22
Subscript characters (Epson) 25
Subscript characters (IBM) 124
Superscript characters (Epson) 24
Superscript characters (IBM) 123
Tabs, clearing (IBM) 159
Text line spacing (IBM) 143
Top-of-form position (IBM) 162
Top-of-form, setting (IBM) 150
Underlined print (Epson) 21
Underlined print (IBM) 121
Unidirectional print (Epson) 103
Unidirectional print (IBM) 187
Unidirectional print (one-line) (Epson) 104
Vertical tab (Epson) 77
Vertical tab (IBM) 165
Vertical tab channel, selecting (Epson) 81
Vertical tab channels (Epson) 80
Vertical tabs, setting (Epson) 78
Vertical tabs, setting (IBM) 166
Vertical Units, setting (IBM) 148
VT (Epson) 77
VT (IBM) 165
Zero, slashed (Epson) 50
Zero, slashed (IBM) 142
.End Index.
Download Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.