Compuprint 10200 Programmer Manual

0
1020
Prr
P
grr
m
m
m
m
err
e
M
M
n
n
u
u
all
Rev. 004
TTaabbllee ooff CCoonntteennttss
Table of Contents ......................................................................2
Commands ................................................................................1
General Overview.........................................................................1
Command Summary in Alphabetical Order................................ 2
EPSON/IBM Mode........................................................................8
Print and Line Feed Execution.................................................. 8
Format Control ......................................................................... 11
Print Mode................................................................................28
Character Set...........................................................................53
Download Character................................................................59
Bit-Image.................................................................................. 66
Data Input Control....................................................................73
Miscellaneous...........................................................................76
COMPUPRINT Mode.................................................................82
Format Control ......................................................................... 82
Native Character Set................................................................ 85
Bar Codes.................................................................................87
Miscellaneous.........................................................................103
ANSI Emulation Commands....................................................111
Character Set Control............................................................112
Character Pitch and Print Modes..........................................114
Horizontal Movements...........................................................119
Vertical Movements ...............................................................122
Interface Control..................................................................... 129
Operating System Control.....................................................131
Paper Path Selection............................................................. 136
User Defined Character Substitution .................................... 138
Graphics Control Functions...................................................139
Barcode Functions.................................................................142
Basic Program Sample..........................................................145
Basic Program Printed Output...............................................146
Tables.................................................................................... 147
Character Sets..........................................................................147
Character Set 1...................................................................... 147
Character Set 2...................................................................... 148
ANSI Emulation ........................................................................ 149
Character Set 1 Enabled (8 Bit Control Disabled)................ 149
Character Set 1 Enabled (8 Bit Control Disabled)................ 150
Character Set 1 Enabled (8 Bit Control Enabled).................151
Character Set 2 Enabled.......................................................152
EPSON National Variations..................................................... 153
ANSI National Variations.......................................................... 154
IBM National Variations............................................................ 155
USA (CP 437) ........................................................................ 155
Greek (CP 437-G).................................................................. 156
Croatian (CP 437-SLAVIC) ................................................... 157
Greek (CP 851)......................................................................159
Eastern Europe (CP 852)...................................................... 160
Turkish (CP 853)....................................................................161
Cyrillic (CP 855)..................................................................... 162
Turkish (CP 857)....................................................................163
Euro PC Multilingual (CP 858).............................................. 164
Portugal (CP 860).................................................................. 165
Hebrew (CP 862)................................................................... 166
Canada/France (CP 863)...................................................... 167
Arabic (CP 864)...................................................................... 168
CP 864E (Arabic)................................................................... 169
Denmark/Norway (CP 865)................................................... 170
Russian (CP 866)................................................................... 171
Turkish 2 (CP 867)................................................................. 172
OCR-A (CP 876).................................................................... 173
OCR-B (CP 877).................................................................... 174
Farsi (CP 1098)...................................................................... 175
Central Europe (CP 1250).....................................................176
Cyrillic (CP 1251)................................................................... 177
Latin1 Ansi Windows (CP 1252)........................................... 178
Greek Windows (CP 1253) ................................................... 179
Turkish Windows (CP 1254) ................................................. 180
Hebrew Windows (CP 1255)................................................. 181
Arabic Windows (CP 1256)................................................... 182
Baltic Windows (CP 1257) .................................................... 183
MAZOWIA (Polish)................................................................ 184
GOST (Russian).................................................................... 185
TASS (Cyrillic)........................................................................ 186
UKRANIAN (old version)....................................................... 187
KOI8-U (new version)............................................................ 188
Kamenicky.............................................................................. 189
CWI......................................................................................... 190
Roman-8................................................................................. 191
IN2.......................................................................................... 192
2
Turkish....................................................................................193
ISO 8859/1 (Latin 1)...............................................................194
ISO 8859/2 (Latin 2)...............................................................195
ISO 8859/3 (Latin 3)...............................................................196
ISO 8859/4 (Latin 4)...............................................................197
ISO 8859/5 (Latin/Cyrillic)......................................................198
ISO 8859/6 (Latin/Arabic)...................................................... 199
ISO 8859/7 (Latin/Greek).......................................................200
ISO 8859/8 (Latin/Hebrew).................................................... 201
ISO 8859/9 (Latin 5)...............................................................202
ISO 8859/15 (Latin 9).............................................................203
96 GREEK..............................................................................204
Hexadecimal to Decimal Table................................................205
Interfaces............................................................................... 206
The Parallel Interface................................................................206
Signals Description................................................................207
Operating Phases..................................................................208
Parallel Interface Signals....................................................... 209
Parallel Interface Signals Behaviour..................................... 212
Interface Timing......................................................................219
The Serial Interface .................................................................. 221
Serial Interface Signals..........................................................222
2
CCoommmmaannddss
This section provides information about the commands supported by your printer. The commands are organized by function groups. Each command has both a brief and a detailed description.
GGeenneerraall OOvveerrvviieeww
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 detailed description.
Each command has the following structure:
Name and function description. Information about protocol (IBM Proprinter XL24/XL24 AGM, IBM Personal 2391+, EPSON LQ Series).
The hexadecimal and decimal codes for the command: n represents variable parameters of the command. The functions of these parameters are explai ned in its corresponding command description.
CCoommmmaanndd SSuummmmaarryy iinn AAllpphhaabbeettiiccaall OOrrddeerr
g
g
g
g
g
g
g
g
g
g
y
y
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
y
y
g
g
y
y
g
g
q
q
y
y
g
g
g
g
L
BBEEL
L
BBEEL
S
BBS
S
BBS
N
CCAAN
N
CCAAN
R
CCR
R
CCR
1
DDCC1
1
DDCC1
1
DDCC1
2
DDCC2
2
DDCC2
3
DDCC3
3
DDCC3
4
DDCC4 DDCC44 DDCC44 EESSCC ! DDCC44 DDCC44 EESSCC ((GGS DDCC44 DDCC44 EESSCC @ DDCC44 DDCC44 EESSCC 1 DDCC44 DDCC44 EESSCC 33 1 DDCC44 DDCC44 EESSCC 33 3 DDCC44 DDCC44 EESSCC 33 4 DDCC44 DDCC44 EESSCC 33 6 DDCC44 DDCC44 EESSCC 33 8 DDCC44 DDCC44 EESSCC A DDCC44 DDCC44 EESSCC D DDCC44 DDCC44 EESSCC DDCC4 DDCC44 DDCC44 EESSCC DDCC4 DDCC44 DDCC44 EESSCC DDCC44 DDCC44 EESSCC J DDCC44 DDCC44 EESSCC N DDCC44 DDCC44 EESSCC p DDCC44 DDCC44 EESSCC R
!
S @ 1
1 3 4 6
8 A D
4 4
J N p R
.
BBuuzzzzeerr.
)
BBeellll.. ((AANNSSII) PPrriinntt aanndd ssppaaccee bbaacckk oonnee ppoossiittiioonn. BBaacckk ssppaaccee.. ((AANNSSII) CCaanncceellss lliinnee.. ((EEPPSSOONN) CCaanncceellss ddaattaa.. ((IIBBMM) PPrriinnttss aallll rreecceeiivveedd ddaattaa aanndd tthhee ccoolluummnn ccoouunntteerr iiss sseett ttoo tthhee lleefftt mmaar CCaarrrriia SSeelleeccttss pprriinntteerr.. ((IIBBMM) SSeelleeccttss pprriinntteerr.. ((EEPPSSOONN) SSeelleeccttss pprriinntteerr ((DDaattaa CCoonnttrrooll 11)).. ((AANNSSII) SSeettss 1100 ccppii pprriinnttiin CCaanncceellss ccoommpprreesssseedd pprriinnttiin DDeesseelleeccttss pprriinntteerr.. ((EEPPSSOONN) DDeesseelleeccttss pprriinntteerr ((DDaattaa CCoonnttrrooll 33)).. ((AANNSSII) CCaanncceellss ddoouubbllee wwiiddtthh pprriinnttiin BBaarr CCooddee SSeelleeccttiioonn. PPrriinnttss bbaarr ccooddee s RRee--iinniittiiaalliizzeess tthhee pprriinntteerr.. ((CCoommppuupprriinntt) SSeettss vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss tthhee hhoorriizzoonnttaall ssppaacciin SSeennddss tthhee ooppeerraattoorr ppaanneell mmeessssa SSeelleeccttss tthhee tteexxtt wwrriittiin CCaanncceellss wwrriitttteenn tteexxtt mmeessssa SSeelleeccttss LLQQ ffoonnttss ((CCoommppuupprriinntt)). SSeettss aammpplliiffiiccaattiioonn ffaaccttoorr.. ((CCoommppuupprriinntt) SSeelleeccttss//llooaaddss oorr ppaarrkkss tthhee ffaannffoolldd ffrroomm tthhee FFrroonntt 22 ppaatthh.. ((CCoommppuupprriinntt) SSeettss
n
SSttrriin
)
)
)
a
ee rreettuurrnn.. ((AANNSSII)
t
uuaalliit
pprriinnttiin
rroottaattiioonn.. ((CCoommppuupprriinntt)
)
)
n
.. ((IIBBMM)
.
s
mmbboollss ((CCoommppuupprriinntt)
n
nn//118800 iinncchh.. ((CCoommppuupprriinntt)
n
1122 lliinneess//3300 mmmm.. ((CCoommppuupprriinntt)
n
ttoo 33 lliinneess//3300 mmmm.. ((CCoommppuupprriinntt)
n
44 lliinneess//3300 mmmm.. ((CCoommppuupprriinntt)
n
66 lliinneess//3300 mmmm.. ((CCoommppuupprriinntt)
n
88 lliinneess//3300 mmmm.. ((CCoommppuupprriinntt)
n
oonn tthhee ooppeerraattoorr ppaanneell ddiisspplla
n
.. ((CCoommppuupprriinntt)
.
)
)
)
n
.. ((EEPPSSOONN)
)
n
.
.
n
ttoo 1155,, 1177,, 2200,, 2244 CCPPII.. ((CCoommppuupprriinntt)
a
eess oonn tthhee ooppeerraattoorr ppaanneell ddiisspplla
.
)
)
)
) )
)
)
) ) ) )
a
eess ttoo tthhee sseerriiaall II//FF .. ((CCoommppuupprriinntt)
a
.. ((CCoommppuupprriinntt)
)
)
2
r
)
)
)
a
.. ((CCoommppuupprriinntt)
iinn.
)
76
131
76
119
73 73
.
)
8
119
73 74
130
28 28 74
130
29
87 102 103
82
82
83
83
83
84
84 109 110 110
85 103 104 104 105
DDCC44 DDCC44 EESSCC r
g
g
g
g
g
g
q
q
y
y
g
g
q
q
g
g
y
y
g
g
y
y
g
g
g
g
g
g
g
g
g
g
y
y
y
y
DDCC44 DDCC44 EESSCC S DDCC44 DDCC44 EESSCC T DDCC44 DDCC44 EESSCC u DDCC44 DDCC44 EESSCC v DDCC44 DDCC44 EESSCC Y DDCC44 DDCC44 EESSCC Z
L
DDEEL
L
DDEEL
Q
EENNQ
C
EESSC
-
EESSCC -
p
a
! # $ % &
* / : : ? @
a
1
1
p
p
h
;;......p
h
1
n
1
n
p
d
d
1
1
p
1
1
p
p
l
;; p
l
1
n
1
n
p
p
v
;; p
v
1
n
1
n
-
­I p
'
'
1
1
p
k
k
1
1
p
x
x
1
1
p
p
f
;; p
f
1
2
1
2
EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC ! EESSCC # EESSCC $ EESSCC % EESSCC & EESSCC (( ­EESSCC * EESSCC / EESSCC : EESSCC : EESSCC ? EESSCC @ EESSCC [[ ­EESSCC [[ I EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p
r S T u v Y Z
i
DDi
iitt rroottaattiioonn.. ((CCoommppuupprriinntt) SSeelleeccttss cchhaarraacctteerr sseett IISSOO CChhaarraacctteerr SSeettss oorr CCooddee PPa SSeelleeccttss//llooaaddss oorr ppaarrkkss tthhee ffaannffoolldd ffrroomm tthhee FFrroonntt11 ppaatthh.. ((CCoommppuupprriinntt) SSeelleeccttss tthhee uusseerr mmaaccrrooss.. ((CCoommppuupprriinntt) SSeelleeccttss
rraapphhiiccss pprriinntt ssppeeeedd.. ((CCoommppuupprriinntt) SSeelleeccttss eemmuullaattiioonn.. ((CCoommppuupprriinntt) MMaakkeess AAGGAA iinn ccoolluummnn.. ((CCoommppuupprriinntt) DDeelleetteess tthhee llaasstt cchhaarraacctteerr.. ((EEPPSSOONN)
)
.. ((AANNSSII)
) )
DDeelleettee.. ((AANNSSII)
n
r
EEn
uuiir EEssccaappee.. ((AANNSSII) SSeettss oorr ccaanncceellss uunnddeerrlliinneedd pprriinnttiin HHoorriizzoonnttaall ppoossiittiioonn rreellaattiivvee ((HHPPRR)).. ((AANNSSII) SSeettss mmooddee ((SSMM)).. ((AANNSSII) VVeerrttiiccaall ppoossiittiioonn aabbssoolluuttee ((VVPPAA)).. ((AANNSSII) SSeelleecctt
rraapphhiiccss mmooddee//ddeennssiit
RReesseettss mmooddee ((RRMM)).. ((AANNSSII)
)
)
t
((GGRRMM)).. ((AANNSSII)
)
a
eess.. ((CCoommppuupprriinntt)
)
)
)
)
)
n
.
.
)
)
)
)
)
SSeettss vveerrttiiccaall ttaabb ssttooppss aatt ssppeecciiffiieedd ppoossiittiioonnss ((MMuullttiippllee VVeerrttiiccaall TTaabb SSeett -- VVTTSS)).. ((AANNSSII)
n
SSeettss pprriinnttiin
t
sst
llee.. ((EEPPSSOONN) CCaanncceellss MMSSBB ccoonnttrrooll.. ((EEPPSSOONN) SSeettss tthhee aabbssoolluuttee pprriinnttiin SSeelleeccttss uusseerr--ddeeffiinneedd cchhaarraacctteerr sseett.. ((EEPPSSOONN) DDeeffiinneess tthhee 2244--ppiinn ddoowwnnllooaadd cchhaarraacctteerrss.. ((EEPPSSOONN) SSeettss ssccoorree lliinnee.. ((EEPPSSOONN) SSeettss ddoott
rraapphhiiccss pprriinnttiin
SSeelleeccttss tthhee VVeerrttiiccaall FFoorrmmaatt UUnniitt ((VVFFUU)) cchhaannnneell.. ((EEPPSSOONN)
)
SSeettss 1122 CCPPII.. ((IIBBMM) CCooppiieess cchhaarraacctteerrss ffrroomm RROOMM ttoo RRAAMM.. ((EEPPSSOONN) RReeaassssi
i
nnss ddoott
rraapphhiiccss mmooddee.. ((EEPPSSOONN) IInniittiiaalliizzeess tthhee pprriinntteerr.. ((EEPPSSOONN) SSeelleeccttss tthhee ssccoorree lliinnee.. ((IIBBMM 22339911 ++ oonnl SSeettss ffoonntt aanndd ppiittcchh ooff aa cchhaarraacctteerr.. ((IIBBMM 22339911 ++ oonnl HHoorriizzoonnttaall ppoossiittiioonn aabbssoolluuttee ((HHPPAA)).. ((AANNSSII) VVeerrttiiccaall ppoossiittiioonn bbaacckkwwaarrdd ((VVPPBB)).. ((AANNSSII) SSeelleeccttss nnaattiioonnaall cchhaarraacctteerr sseett ((SSeelleecctt NNaattiioonnaall CChhaarraacctteerrss -- SSNNCC)).. ((AANNSSII) HHoorriizzoonnttaall aanndd vveerrttiiccaall ppoossiittiioonn aabbssoolluuttee ((HHVVPP)).. ((AANNSSII)
)
)
n
ppoossiittiioonn.. ((EEPPSSOONN)
)
n
.. ((IIBBMM XXLL2244 AAGGMM,, EEPPSSOONN)
)
)
)
)
l
)
)
)
)
)
)
)
)
l
)
)
)
)
105
86 106 108 109 107 108
74 131 129 131
29 120 133 124 139 134
)
127
30
75
11
59
60
31
66
12
32
62
67
77
32
37 120 125 112 125
3
p
g
g
g
g
y
y
y
y
y
y
g
g
g
g
q
q
y
y
y
y
g
g
g
g
y
y
j
j
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ @ EESSCC [[ @ EESSCC [[ \ EESSCC [[ d EESSCC [[ EESSCC [[ K EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ p EESSCC [[ T EESSCC \ EESSCC \
;; p
1
1
p
;; p
1
1
p
;; p
1
1
p
;; p
1
1
@ @ \ d
K p
e
e
1
1
p
1
1
p
t
t
1
1
p
p
;; p
1
1
p
p
;; p
1
1
p
p
;; p
1
1
p
p
;; p
1
1
p
p
;; p
1
1
p
p
;; p
1
1
p
;;........p
1
1
T \ \
EESSCC \\ oorr SST
]
EESSCC ]
p
EESSCC ]] p EESSCC ^ EESSCC _ EESSCC + EESSCC < EESSCC = EESSCC = EESSCC > EESSCC 0 EESSCC 1 EESSCC 2
;; p
1
1
^ _ + < = = > 0 1 2
p
SSPP~
2
2
p
p
;; p
2
3
2
3
p
{
{
n
n
p
}
}
n
n
<<SSPP>> G
2
2
s
s
2
2
SSPP B
2
2
p
;; p
2
3
2
3
n
n
p
p
n
n
p
m
m
n
n
T
p
<<SSTT>
n
n
~
SSPP |
B
r
r
|
SSeelleeccttss eemmuullaattiioonn ((EEMMUU)).. ((AANNSSII) CCuussttoommeerr sseettuupp ssaavvee//uunnssaavvee ((CCSSXX)).. ((AANNSSII) UUnniiddiirreeccttiioonnaall pprriinnttiin
n
((UUDDPP)).. ((AANNSSII)
SSeettss bbaarr ccooddee ppaarraammeetteerrss ((BBCC)).. ((AANNSSII)
n
SSeelleeccttss tthhee pprriinnttiin SSeettss ddoouubbllee hhi SSeettss vveerrttiiccaall uunniittss.. ((IIBBMM) SSeett tthhee pprriinntt
t
i
hh pprriinnttiin
t
uuaalliit
.. ((IIBBMM 22339911++ oonnl
t
ppee sst
n
)
SSeelleeccttss 88 oorr 2244 nneeeeddllee ddoott SSeettss iinniittiiaall ccoonnddiittiioonnss.. ((IIBBMM 22339911 ++ oonnl VVeerrttiiccaall ppoossiittiioonn rreellaattiivvee ((VVPPRR)).. ((AANNSSII) HHoorriizzoonnttaall ppoossiittiioonn bbaacckkwwaarrdd ((HHPPBB)).. ((AANNSSII) SSppeecciiaall pprriinntt mmooddee ((OOvveerrssiizzee//EExxppaannddeedd//BBaarr ccooddee MMooddee -- SSPPMM)).. ((AANNSSII)
G
SSeettss tthhee lliinnee//cchhaarraacctteerr ssppaacciin
i
LLeefftt//rri
r
hhtt mmaar
iinn sseett ((SSLLRR)).. ((AANNSSII) GGrraapphhiicc ssiizzee mmooddiiffiiccaattiioonn ((GGSSMM)).. ((AANNSSII) FFoorrmm ddeeffiinniittiioonn ((FFDD)).. ((AANNSSII)
)
TTaabb cclleeaarr ((TTBBCC)).. ((AANNSSII)
i
AAssssi
nn ssoouurrccee ffoorr ffoorrmmss ((AASSFF)).. ((AANNSSII)
SSeelleecctt
rraapphhiiccss rreennddiittiioonn ((SSGGRR)).. ((AANNSSII)
SSeelleeccttss aa CCooddee ppa
a
.
ee. SSeettss tthhee rreellaattiivvee ddoott ppoossiittiioonn.. ((EEPPSSOONN) PPrriinnttss cchhaarraacctteerrss ffrroomm aallll cchhaarraacctteerrss ttaabbllee.. ((IIBBMM)
n
SSttrriin
tteerrmmiinnaattoorr.. ((AANNSSII)
)
SSeettss aa rreevveerrssee lliinnee ffeeeedd.. ((IIBBMM)
>
UUsseerr ddeeffiinneedd cchhaarraacctteerr ssuubbssttiittuuttiioonn ((UUDDSS)).. ((AANNSSII) PPrriinnttss aa ssiin
n
llee cchhaarraacctteerr ffrroomm tthhee aallll cchhaarraacctteerrss ttaabbllee.. ((IIBBMM) SSeettss oorr ccaanncceellss oovveerrssccoorree pprriinnttiin SSeettss nn//336600--iinncchh lliinnee ssppaacciin PPrriinnttss cchhaarraacctteerrss ffoorr oonnee lliinnee ffrroomm lleefftt ttoo rri DDeeffiinneess ddoowwnnllooaaddeedd cchhaarraacctteerrss.. ((IIBBMM) SSeettss MMSSBB ttoo 00.. ((EEPPSSOONN) SSeettss MMSSBB ttoo 11.. ((EEPPSSOONN) SSeettss vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss tthhee vveerrttiiccaall ssppaacciin
n
ttoo 11//88 iinncchh.
n
ttoo 77//7722 iinncchh.. ((IIBBMM)
n
)
)
)
)
t
llee.. ((IIBBMM 22339911 ++ oonnl
l
)
)
aanndd ddoouubbllee lliinnee ffeeeedd.. ((IIBBMM)
l
)
)
rraapphhiiccss mmooddee.. ((IIBBMM)
l
)
)
)
n
.. ((AANNSSII)
)
)
)
)
)
)
)
)
)
)
)
)
n
n
.. ((IIBBMM)
) )
.
ttoo 11//66 iinncchh.. ((EEPPSSOONN)
.. ((IIBBMM)
)
)
i
hhtt.. ((EEPPSSOONN)
)
)
)
134 135 118 142
33
)
35 11 36 72
77 124 121
)
117 128 120 117 128 126 136 114
53
12
54 132
8
)
138
54
39
13
)
33
63
75
75
13
13
14
4
2
g
g
y
y
g
g
g
g
g
g
g
g
g
g
g
g
g
g
y
y
j
j
g
g
y
y
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
y
y
j
j
g
g
EESSCC 2
3
EESSCC 3
3
EESSCC 3
4
EESSCC 4
4
EESSCC 4
5
EESSCC 5
5
EESSCC 5
6
EESSCC 6
7
EESSCC 7
A
EESSCC A
A
EESSCC A
a
EESSCC a
B
EESSCC B
b
EESSCC b
b
EESSCC b
L
EESSCC BB NNUUL EESSCC bb NNUUL EESSCC c EESSCC c EESSCC CC 00 n EESSCC CC n EESSCC D EESSCC d EESSCC DD oorr IINND EESSCC e EESSCC E EESSCC EE oorr NNEEL EESSCC F EESSCC G EESSCC EESSCC H EESSCC HH oorr HHTTS EESSCC I EESSCC J
EESSCC
L c c
n
n D d
D e E
F G
H
I J
n
EEnnaabblleess tthhee vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss vveerrttiiccaall ssppaacciin SSeettss tthhee ccuurrrreenntt ppoossiittiioonn aass ttoopp ooff ffoorrmm ((ffiirrsstt pprriinnttaabbllee lliinnee)).. ((IIBBMM) SSeettss iittaalliiccss pprriinnttiin SSeettss aann aauuttoommaattiicc lliinnee ffeeeedd aafftteerr aa ccaarrrriia CCaanncceellss iittaalliiccss pprriinnttiin SSeelleeccttss tthhee CChhaarraacctteerr SSeett 22. SSeelleeccttss tthhee CChhaarraacctteerr SSeett 11. SSeettss vvaarriiaabbllee vveerrttiiccaall ssppaacciin SSeettss vvaarriiaabbllee vveerrttiiccaall ssppaacciin SSeettss LLeetttteerr QQuuaalliit SSeettss vveerrttiiccaall ttaabb ssttooppss. SSeettss vveerrttiiccaall ttaabb ssttooppss iinn oonnee ooff tthhee 88 VVeerrttiiccaall FFoorrmmaatt UUnniitt cchhaannnneellss aavvaaiillaabbllee.. ((EEPPSSOONN) SSeelleeccttss bbllaacckk rriibbbboonn bbaanndd.. ((IIBBMM) RReesseettss vveerrttiiccaall ttaabb ssttooppss. RReesseettss vveerrttiiccaall ttaabb ssttooppss iinn oonnee ooff tthhee 88 VVeerrttiiccaall FFoorrmmaatt UUnniitt cchhaannnneellss aavvaaiillaabbllee.. ((EEPPSSOONN) SSeelleeccttss c RReesseettss ttoo iinniittiiaall ssttaattee ((RRIISS)).. ((AANNSSII) SSeettss ffoorrmm lleen SSeettss ffoorrmm lleen SSeettss hhoorriizzoonnttaall ttaabb ssttooppss. SSppaacceess ffoorrwwaarrddss rreellaattiivvee ddoott ppoossiittiioonn.. ((IIBBMM)
L
S
IInnddeexx.. ((AANNSSII) SSppaacceess bbaacckkwwaarrdd rreellaattiivvee ddoott ppoossiittiioonn.. ((IIBBMM) SSeettss eemmpphhaassiizzeedd pprriinnttiin NNeexxtt lliinnee.. ((AANNSSII) CCaanncceellss eemmpphhaassiizzeedd pprriinnttiin SSeettss ddoouubbllee ssttrriikkee pprriinnttiin SSeettss 1155 CCPPII.. ((EEPPSSOONN) CCaanncceellss ddoouubbllee ssttrriikkee pprriinnttiin HHoorriizzoonnttaall ttaabb sseettttiin SSeelleeccttss pprriinnttiin AAddvvaanncceess ppaappeerr nn//118800 iinncchh.. ((EEPPSSOONN aanndd IIBBMMXXLL2244AAGGMM)) AAddvvaanncceess ppaappeerr nn//221166 iinncchh..
((IIBBMMXXLL2244 aanndd 22339911) SSttooppss pprriinnttiin
c
n
ttoo nn//118800 iinncchh.. ((IIBBMM XXLL2244 AAGGMM,, EEPPSSOONN)
n
ttoo nn//221166 iinncchh.. ((IIBBMM XXLL2244,, 22339911 ++)
n
mmooddee.. ((EEPPSSOONN)
n
.. ((EEPPSSOONN)
t
uussttiiffiiccaattiioonn pprriinnttiin
.
aann rriibbbboonn bbaanndd.. ((IIBBMM)
n
tthh ttoo nn iinncchheess.
n
tthh ttoo nn lliinneess.
)
n
)
n
)
n
.. ((AANNSSII)
n
t
t
ppee ffoorr rreessiiddeenntt aanndd DDLLLL cchhaarraacctteerrss.. ((IIBBMM)
)
n
.. ((IIBBMM)
)
b
sseett b
EESSCC AA.. ((IIBBMM)
)
a
) . .
n
ttoo nn//6600 iinncchh.. ((IIBBMM XXLL2244 AAGGMM,, EEPPSSOONN)
n
ttoo nn//7722 iinncchh.. ((IIBBMM XXLL2244,, 22339911 ++)
n
.. ((EEPPSSOONN)
)
.
)
)
.
.
.
.
.
n
.
.
.
.
n
.
.
)
)
ee rreettuurrnn.. ((IIBBMM)
)
)
)
14
)
)
)
)
)
)
)
)
)
15 15 15 39
9 40 55 55 16 16 40 16 17 41 17 18 41
132
18 18 19 19
122
20 41
123
42 42 42 43
121
43
9
80
5
g
g
k
y
y
g
g
g
g
g
g
y
y
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
g
y
y
y
y
y
y
y
y
g
g
g
g
g
g
y
y
g
g
g
g
K k
l L
M m
N O P P p
Q Q
R R
S s
T t U W w X x
Y Z
S
U
I
a
n
P
EESSCC JJ oorr VVTTS EESSCC k EESSCC K EESSCC k EESSCC KK oorr PPLLD EESSCC l EESSCC L EESSCC LL oorr PPLLU EESSCC M EESSCC m EESSCC MM oorr RRI EESSCC N EESSCC O EESSCC P EESSCC P EESSCC p EESSCC PP ddaatta EESSCC Q EESSCC Q EESSCC QQ oorr PPUU1 EESSCC R EESSCC R EESSCC rr n EESSCC S EESSCC s EESSCC SSP EESSCC T EESSCC t EESSCC U EESSCC W EESSCC w EESSCC X EESSCC x EESSCC EESSCC Y EESSCC Z
D
1
VVeerrttiiccaall ttaabb sseettttiin SSeelleeccttss tthhee LLQQ ffoonnttss.. ((EEPPSSOONN) NNoorrmmaall ddeennssiit PPrriinnttss tteesstt cchhaarraacctteerr ((PPTTCC)).. ((AANNSSII) PPaarrttiiaall lliinnee ddoowwnn.. ((AANNSSII) SSeettss lleefftt mmaar DDoouubbllee ddeennssiit PPaarrttiiaall lliinnee uupp.. ((AANNSSII) SSeelleeccttss 1100..55 ppooiinntt.. 1122 CCPPII.. ((EEPPSSOONN) SSeelleeccttss mma RReevveerrssee iinnddeexx.. ((AANNSSII) SSeettss tthhee sskkiippoovveerr ppeerrffoorraattiioonn ttoo nn lliinneess. DDiissaabblleess tthhee sskkiippoovveerr ppeerrffoorraattiioonn. SSeelleeccttss 1100..55 ppooiinntt,, 1100 ccppii.. ((EEPPSSOONN) SSeettss oorr ccaanncceellss pprrooppoorrttiioonnaall pprriinnttiin SSeettss oorr ccaanncceellss pprrooppoorrttiioonnaall pprriinnttiin EEnntteerr ddoott SSeettss tthhee rri DDeesseelleeccttss PPrriinntteerr.. ((IIBBMM) EExxeeccuutteess SSeellfftteesstt.. ((AANNSSII) SSeettss hhoorriizzoonnttaall aanndd vveerrttiiccaall ttaabb ssttooppss ttoo ddeeffaauulltt vvaalluueess.. ((IIBBMM) SSeelleeccttss NNaattiioonn cchhaarraacctteerr sseett.. ((EEPPSSOONN) SSeelleeccttss tthhee rriibbbboonn ccoolloorr.. ((EEPPSSOONN) SSeettss ssuubbssccrriipptt oorr ssuuppeerrssccrriipptt pprriinnttiin SSeettss aanndd rreesseettss QQuuiieett pprriinnttiin SSeettss iinntteerrcchhaarraacctteerr ssppaaccee.. ((EEPPSSOONN) CCaanncceellss ssuubbssccrriipptt oorr ssuuppeerrssccrriipptt pprriinnttiin SSeelleeccttss cchhaarraacctteerrss ttaabbllee.. ((EEPPSSOONN) SSeettss pprriinnttiin SSeettss oorr ccaanncceellss ddoouubbllee wwiiddtthh pprriinnttiin SSeettss oorr ccaanncceellss ddoouubbllee hheei SSeettss lleefftt aanndd rri SSeelleeccttss LLeetttteerr QQuuaalliit SSeelleeccttss DDoouubbllee ddeennssiit QQuuaaddrruuppllee ddeennssiit
n
t
ddoott
r
iinn.. ((EEPPSSOONN)
t
ddoott
a
eennttaa rriibbbboonn bbaanndd.. ((IIBBMM)
rraapphhiiccss mmooddee ((DDeevviiccee CCoonnttrrooll SSttrriin
i
r
hhtt mmaar
n
ddiirreeccttiioonn.
i
hhtt mmaar
eellllooww rriibbbboonn bbaanndd.. ((IIBBMM)
t
ddoott
t
)
.. ((AANNSSII)
ddoott
)
rraapphhiiccss pprriinnttiin
)
)
rraapphhiiccss pprriinnttiin
)
)
)
iinn.. ((EEPPSSOONN)
)
.
r
iinnss.. ((IIBBMM)
t
oorr DDrraafftt.. ((EEPPSSOONN)
rraapphhiiccss pprriinnttiin
)
n
.. ((EEPPSSOONN)
i
hhtt pprriinnttiin
rraapphhiiccss pprriinnttiin
n
((6600 ddppii)).
)
n
((112200 ddppii)).
)
)
.
.
)
n
.. ((IIBBMM)
n
.. ((EEPPSSOONN)
)
)
n
.
.
)
)
n
.
.
)
n
.
.
n
.. ((EEPPSSOONN)
)
)
)
n
aatt ddoouubbllee--ssppeeeedd
n
((224400 vviirrttuuaall ddppii)).
127
56
.
.
)
)
n
)).. ((AANNSSII)
)
)
)
rraapphhiiccss ((112200 vviirrttuuaall ddppii)).
.
.
68 133 123
20
69 123
44
44 124
21
23
44
45
45 140
23
76 132
24
57
46
47
48
25
49
58
81
49
50
25
51
51
70
71
6
p
g
g
g
g
y
y
g
g
g
g
g
g
g
g
g
g
g
g
p
EESSCC[[ p
F
FFF
F
FFF
T
HHT
T
HHT
F
LLF
F
LLF
L
NNUUL
I
SSI
I
SSI SSII oorr EESSCC SSI
O
SSO
O
SSO
u
;; p
u
1
n
1
n
I
SSOO oorr EESSCC SSO
P
SSP
T
VVT
T
VVT
O
SSeettss hhoorriizzoonnttaall ttaabb ssttooppss aatt ssppeecciiffiieedd ppoossiittiioonnss mmuullttiippllee hhoorriizzoonnttaall ttaabb sseett ((HHTTSS)).. ((AANNSSII)
a
.
AAddvvaanncceess ppaappeerr ttoo tthhee ttoopp ooff tthhee nneexxtt ppa
)
FFoorrmm ffeeeedd.. ((AANNSSII)
o
MMoovveess llo HHoorriizzoonnttaall ttaabb.. ((AANNSSII) LLiinnee FFeeeedd.
.
LLiinnee ffeeeedd.. ((AANNSSII)
I
I
nnoorreedd.. ((AANNSSII) SSeettss ccoommpprreesssseedd pprriinnttiin SShhiifftt iinn.. ((AANNSSII) SSeettss ccoommpprreesssseedd pprriinnttiin SSeettss ddoouubbllee wwiiddtthh pprriinnttiin SShhiifftt oouutt.. ((AANNSSII) SSeettss ddoouubbllee wwiiddtthh pprriinnttiin SSppaaccee.. ((AANNSSII)
l
iiccaalll
tthhee pprriinntt ccaarrrriia
)
)
)
)
)
)
n
n n
n
a
ee ttoo tthhee nneexxtt hhoorriizzoonnttaall ttaabb ssttoopp.
.. ((EEPPSSOONN)
.
.
((oonnee lliinnee)).
((oonnee lliinnee)).
)
.
.
AAddvvaanncceess ppaappeerr ttoo tthhee nneexxtt vveerrttiiccaall ttaabb ssttoopp ooff tthhee sseelleecctteedd VVFFUU cchhaannnneell.
)
VVeerrttiiccaall ttaabb.. ((AANNSSII)
ee.
.
.
)
122
26
127
26
121
10 122 129
52 118
47
52 118
48 119
27 126
7
EEPPSSOONN//IIBBMM MMooddee
The following printer commands are supported b y this printer according to the IBM Proprinter XL24-XL24 AGM, IBM 2391+ and EPSON LQ Series.
PPrriinntt aanndd LLiinnee FFeeeedd EExxeeccuuttiioonn
CR
Prints all received data and the column counter is set to the left margin.
ASCII Code CR Hexadecimal Value 0D Decimal Value 13
This code is a terminator code; when receiv ed, it causes any data i n the buffer to be printed out. The print head then moves logically to the left margin position. The column counter is set to the left 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 receiv ed, it causes the current contents of the print buffer to be printed out, before reversing 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.
8
ESC 5
Sets an automatic line feed after a carriage return. (IBM)
ASCII Code ESC 5 n Hexadecimal Value 1B 35 Decimal Value 27 53
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 cancels the automatic line feed.
n Automatic line feed 0 Disabled 1 Enabled
ESC J
Advances paper n/180 inch. (EPSON and IBMXL24AGM) Advances paper n/216 inch. (IBMXL24 and 2391)
ASCII Code ESC J n Hexadecimal Value 1B 4A Decimal Value 27 74 Range 1 <
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 or n/216 inch. This command is cancelled after the line feed has been performed. The printing will restart after a line feed from the column at which the command was sent.
n
n
n < 255
9
LF
Line Feed.
ASCII Code LF Hexadecimal Value 0A Decimal Value 10
This is a terminator code; it therefore causes the current contents of the print buffer to be printed out before advancing the paper by one line at the current vertical spacing. If no data precedes the LF code, or if the preceding data consists of spaces, the code causes only a line 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. This code cancels the double width printing set by the SO code. In IBM mode, the column counter 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.
10
FFoorrmmaatt CCoonnttrrooll
ESC $
Sets the absolute printing position. (EPSON)
n1 n2
n1 n2
n1, n
n1 n
2
< 255
2
ASCII Code ESC & Hexadecimal Value 1B 24 Decimal Value 27 36 Range 0 <
This command specifies the distance from the left margin where you want to print subsequent characters. The distance is in number of dots and must be calculated using the following formula:
Margin distance = n
+ (n
1
x 256)
2
where n2 is the integer result of the number of dots divided by 256 and the n1 is the remainder. 1 dot = 1/60 inch. If the selected pos ition is outside the cur rent right margin, the se quence will be ignored.
ESC [ \
Sets vertical units. (IBM)
= 4
1
= 0
2
t
< 255
1
t
< 255
2
m1 m2 t1 … t
m1 m2 t1 … t
m1 m2 t1 … t
4
4
4
11
ASCII Code ESC [ \ Hexadecimal Value 1B 5B 5C Decimal Value 27 91 92 Range m
m 0 < 0 <
t
= 0
3
t
= 180 or 216
4
This command changes the base units for the graphics line spacing commands (ESC J, ESC 3). The default is 1/216 or 1/180 inch.
ESC /
Selects the Vertical Format Unit (VFU) channel. (EPSON)
ASCII Code ESC / m Hexadecimal Value 1B 2F Decimal Value 27 47 Range 0 <
m
m
m < 7
This sequence selects the VFU channel that you want to use. Eight different channels are available. The parameter m represents the channel that you want to select.
ESC \
Sets the relative dot position. (EPSON)
n1, n
n1 n
n1 n
n1 n
2
2
2
2
< 255
+ (n
1
x 256)
2
+ (n
1
x 256).
2
ASCII Code ESC \ Hexadecimal Value 1B 5C Decimal Value 27 92 Range 0 <
This command specifies the distance between the current print head position and the position where you want to print subsequent characters (relative position). The distance is in number of dots and must be calculated using the following formula:
Current position distance = n where n2 is the integer result of the number of dots divided by 256 and the n1 is the remainder.
The unit of the dots is 1/120 inch for Draft printing or 1/180 inch for Letter Quality. If the distance is negative (Most Significant Bit of m2 equal to 1), the print head will be moved to the left of the current position by a number of dots equal to the complement on two of n
12
ESC 0
Sets vertical spacing to 1/8 inch.
ASCII Code ESC 0 Hexadecimal Value 1B 30 Decimal Value 27 48
This code causes vertical spacing to be set to 1/8 inch.
ESC 1
Sets vertical spacing to 7/72 inch. (IBM)
ASCII Code ESC 1 Hexadecimal Value 1B 31 Decimal Value 27 49
This command causes vertical spacing to be set to 7/72 inch.
ESC +
Sets n/360-inch line spacing. (IBM)
ASCII Code ESC + n Hexadecimal Value 1B 2B Decimal Value 27 43 Range 0 <
n
n
n < 255
This command sets the line spacing to n/360 inch. If the line spacing is changed, it does not affect previous settings for vertical tabs or pa ge length..
13
ESC 2
Sets the vertical spacing to 1/6 inch. (EPSON)
ASCII Code ESC 2 Hexadecimal Value 1B 32 Decimal Value 27 50
This command causes the vertical spacing to be set to 1/6 inch.
ESC 2
Enables the vertical spacing set by ESC A. (IBM)
ASCII Code ESC 2 Hexadecimal Value 1B 32 Decimal Value 27 50
This command enables the vertical spacing sets by ESC A.
14
ESC 3
Sets vertical spacing to n/180 inch. (IBM XL24 AGM, EPSON)
ASCII Code ESC 3 n Hexadecimal Value 1B 33 Decimal Value 27 51 Range 1 <
n
n
n < 255
This sequence sets the vertical spacing to n/180 inch. It is ignored if n is equal to 0.
ESC 3
Sets vertical spacing to n/216 inch. (IBM XL24, 2391 +)
ASCII Code ESC 3 n Hexadecimal Value 1B 33 Decimal Value 27 51 Range 0 <
n
n
n < 255
This sequence sets the vertical spacing to n/216 inch.
ESC 4
Sets the current position as top of form (first printable line). (IBM)
ASCII Code ESC 4 Hexadecimal Value 1B 34 Decimal Value
2277 5522
This sequence sets the first line of the fanfold paper as the current paper position of the form.
15
ESC A
Sets variable vertical spacing to n/60 inch. (IBM XL24 AGM, EPSON)
ASCII Code ESC A n Hexadecimal Value 1B 41 Decimal Value 27 65
n
n
This command changes the default vertical spacing to n/60 inch. The new vertical spacing value is immediately activated.
ESC A
Sets variable vertical spacing to n/72 inch. (IBM XL24, 2391 +)
ASCII Code ESC A n Hexadecimal Value 1B 41 Decimal Value 27 65
n
n
This command changes the default vertical spacing to n/72 inch. The vertical spacing value is stored and activated only after the ESC 2 code is recei ved.
ESC B
Sets vertical tab stops.
ASCII Code ESC B Hexadecimal Value 1B 42 Decimal Value 27 66 Range 1 <
n1 … n
n1 ... nx 00
n1 ... n
n < 255
In EPSON mode, sets vertical tab stops in the 0 Vertical Format Unit (VFU) channel. This code sets up to 16 vertical tab stops at the line specified by n1, n tab stops are memorized as physical positi ons. In IBM modes, thi s code sets up to 64 vertical tab stops at the line number specified by n1, n2 and so on in the 0 VFU channel. The tab stops are memorized as logical positi ons.
0
x
0
x
and so on in the 0 VFU channel. The
2
16
ESC B NUL
Resets vertical tab stops.
ASCII Code ESC B NUL Hexadecimal Value 1B 42 Decimal Value 27 66 00
00
Resets vertical tab stops in the 0 Vertical Format Unit (VFU) channel.
ESC b
Sets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
ASCII Code ESC b Hexadecimal Value 1B 62 Decimal Value 27 98 Range 0 <
1 <
m
n1 ... nx
m n1 ... nx 0
m n1 ... nx 00
m n1 ... nx 0
< 7
< 255
This sequence sets vertical tabulations in the VFU channel specified by the parameter m. The VFU channel can be imagined as a blank page where you can set up to 16 vertical
tabulations in order to format your page as you like. 8 channels are available and in each of them you can create a sample page tha t you can recall later. n1 to n16 specify the lines at which vertical tabulations must be set.
The values of n must be in ascending order. If you change the vertical spacing, the vertical tabulations set are not cancelled and they maintain their physical position on the page.
The vertical tabulations set in the channel specified by the m parameter are executed by the VT code when the specific channel is selected by the ESC / command, this code is executed as a line feed.
17
ESC b NUL
Resets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
ASCII Code ESC b NUL Hexadecimal Value 1B 62 Decimal Value 27 98 0
00
Resets vertical tab stops in one of the 8 Vertical Format Unit channels available.
ESC C 0 n
Sets form length to n inches.
ASCII Code ESC C 0 n Hexadecimal Value 1B 43 00 Decimal Value 27 67 0 Range 1 <
n < 24
n
n
This command sets the form length to the number of inches specified by n. The current position of the paper is assumed as top of form.
ESC C n
Sets form length to n lines.
ASCII Code ESC C n Hexadecimal Value 1B 43 Decimal Value 27 67
n
n
Range 1 <
n < 255
This command sets the form length to the number of lines specified by n at the current vertical spacing. The current position of the paper is assumed as top of form.
18
ESC D
Sets horizontal tab stops.
ASCII Code ESC D Hexadecimal Value 1B 44 Decimal Value 27 68 Range 1 <
n1 n2 nx 0
n1 n2… nx 00
n1 n2… nx 0
n < 255
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops after canceling the current setting. The n1 to nx 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 i n the pag e so that i t i s affected by chang ing the horizonta l spa cing. The col umns are numbered 1 through 136. In EPSON mode , th e tab st op pos ition s et b y ES C D is memoriz ed a s 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
n1, n
< 255
2
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.
19
ESC e
Spaces backward relative dot position. (IBM)
n1, n
n1 n
n1 n
n
n
n
1
1
2
2
2
n
2
2
< 255
ASCII Code ESC e Hexadecimal Value 1B 65 Decimal Value Range 0 <
2277 110011
This command moves the print carriage of a (n1 + (n2*256))/120 inch displacement on the left of its current dot position. If the selected position is outside the current left ma rgin, it is forced to the first column.
ESC l
Sets left margin. (EPSON)
ASCII Code ESC l n Hexadecimal Value 1B 6C Decimal Value Range 0 <
n
n
2277 110088
n
n < 255
This code sets the left margin at the current horizontal spacing. It must be sent at the beginni ng of the line. The n parameter specifies the number of columns. For each type of horizontal spaci ng there is a different range of possible values, as shown in the following table:
20
Character Width Horizontal Spacing Range of columns Double Width
5 0 < n < 67
6 cpi 0 < n < 80
7.5 cpi 0 < n < 100
8.5 cpi 0 < n < 114 10 cpi 0 < n < 134
Normal
10 cpi 0 < n < 134 12 cpi 0 < n < 160 15 cpi 0 < n < 201 17 cpi 0 < n < 229 20 cpi 0 < n < 255 24 cpi 0 < n < 255
Any value outside the accepted range is i gnored and the previous setting remains in effect. The left margin 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.
ASCII Code ESC N n Hexadecimal Value 1B 4E Decimal Value 27 78 Range 1 <
n
n < 127 (EPSON mode)
1 <
n < 225 (IBM mode)
n
21
The skipover perforation is the sum of top and bottom margins values at the selected vertical spacing. The n parameter must be less than the current form length. The skipover i s 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 in this CD-ROM):
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 when the end of the page is reached with a LF, VT or FF code and not with the ESC J or ESC C command, the skipover perforation is cancelled and must therefore be set again.
22
ESC O
Disables the skipover perforation.
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 a nd so any ski p perforation set by ESC N is cancelled.
ESC Q
Sets the right margin. (EPSON)
ASCII Code ESC Q n Hexadecimal Value 1B 51 Decimal Value 27 81 Range 1 <
n
n
n < 225
This code sets the line length at the current horizontal spaci ng. It must be sent at the beginning of the line.
The n parameter specifies the number of columns a nd for each type of horizontal spacing there is a range of values, as shown in the following table:
23
Character Width Horizontal Spacing Range of columns Double Width
5 cpi 1 < n < 67 6 cpi 1 < n < 81
7.5 cpi 1 < n < 101
8.5 cpi 1 < n < 116 10 cpi 1 < n < 135
Normal
10 cpi 1 < n < 135 12 cpi 1 < n < 162 15 cpi 1 < n < 203 17 cpi 1 < n < 232 20 cpi 1 < n < 255 24 cpi 1 < n < 255
Any value outside the accepted range is i gnored and the previous setting remains in effect. The right margin must be greater than the left margin. The physical position set for the right margin does not change if the horizontal spacing is modified.
ESC R
Sets horizontal and vertical tab stops to default values. (IBM)
ASCII Code ESC R Hexadecimal Value 1B 52 Decimal Value 27 82
This command sets horizontal tab stops every eight columns starting from column 9 and cancels all vertical tab stops.
24
ESC SP
Sets intercharacter space. (EPSON)
ASCII Code ESC SP n Hexadecimal Value 1B 20 Decimal Value 27 32 Range 0 <
n
n
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 Hexadecimal Value 1B 58 Decimal Value 27 88 Range 0 <
2 <
This command sets the left and right margins simultaneously. The n respectively the number of columns for the left and right margi ns at the current spacing. These margins are memorized in terms of absolute displacement from the physical left edge of the page. Use a CR immediately after ESC X n to establish the print head position relative to the new margin setting.
n1 n
2
n1 n2
n1 n
2
n
< 134 (left margin)
1
n
< 136 (right margin)
2
and n
1
parameters indicate
2
If n1 is equal to 0, the current left margin of the page is used. If n
is equal to 1, the current right
2
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.
25
FF
Advances paper to the top of the next page.
ASCII Code FF Hexadecimal Value 0C Decimal Value 12
This code is a terminator code, when received, ca uses all data in the print buffer to be printed out. Then it advances 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 printing set by SO code.
HT
Moves logically the print carriage to the next horizontal tab stop.
ASCII Code HT Hexadecimal Value 09 Decimal Value 9
This code moves logically the print carriag e to the next horizontal tab stop as defined by ESC D. Up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops can be set. The HT code is ignored if no tab stop has been set or if the current print carri age 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 (default).
In EPSON mode, the default tab stops are memorized as logical position 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. In IBM mode, the tab stops, both, default and set by ESC, are memorized as logical position in the page, so that are affected by changing the horizontal spacing. The horizontal tab stops can be changed by the ESC D command.
26
Loading...
+ 204 hidden pages