Tally Genicom Matrix Printer Bedienungsanleitung

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409

Zur Seite of

Richtige Gebrauchsanleitung

Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung Tally Genicom Matrix Printer an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von Tally Genicom Matrix Printer, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.

Was ist eine Gebrauchsanleitung?

Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung Tally Genicom Matrix Printer die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.

Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung Tally Genicom Matrix Printer. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.

Was sollte also eine ideale Gebrauchsanleitung beinhalten?

Die Gebrauchsanleitung Tally Genicom Matrix Printer sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts Tally Genicom Matrix Printer
- Den Namen des Produzenten und das Produktionsjahr des Geräts Tally Genicom Matrix Printer
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts Tally Genicom Matrix Printer
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen

Warum lesen wir keine Gebrauchsanleitungen?

Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von Tally Genicom Matrix Printer zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von Tally Genicom Matrix Printer und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service Tally Genicom finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von Tally Genicom Matrix Printer zu überspringen, wie es bei der Papierform passiert.

Warum sollte man Gebrauchsanleitungen lesen?

In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts Tally Genicom Matrix Printer, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.

Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von Tally Genicom Matrix Printer widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.

Inhaltsverzeichnis der Gebrauchsanleitungen

  • Seite 1

    Programmer's Manual Matrix printer 7265[...]

  • Seite 2

    Table of C ontents 7265 P r o g r a m m e r ’s Manual i C o p y r i g ht © 2 0 0 4 Tally G e n i c om C hap t er 1. Int r o d uct i on........................................................................................................ . .. . 1 C hap t er 2. A N S I .............................................................................[...]

  • Seite 3

    Table of C ontents 7265 P r o g r a m m e r ’s Manual ii Co p y r i g ht © 20 0 4 TallyGenicom Setting B a r Code Pa r a m e te r s ............................................................................................. . 35 Gene r al R u l e s for Ass i g n i n g Pa r a m e te r s ..........................................................[...]

  • Seite 4

    Table of Fig ures 7265 P r o g r a m m e r ’s Manual iii Co p y r i g ht © 20 0 4 TallyGenicom Fi g u re 2-1 D e f au l t C h a r acter Set for A N S I E m u l at i on, 00 to 7 F ........................................ 5 F i g u r e 2 - 2 D ef a u l t C h a r acter S et for A N SI E m u l at i on, 80 t o F F ....................................[...]

  • Seite 5

    7265 P r o g r a m m e r ’s Manual 1 Co p y r i g h t © 20 0 4 TallyGenicom C hap t er 1 I n t r o d u c ti o n Chapter 1. Introduc tion T he TallyGenicom 7265 p r o v i d es r ug g ed, ve r s a t i l e i m pa c t p r i n te r s u s e f ul in a va r i e t y of applicat ions. Fl exibi lity of us e is guaran teed b y the wide rang e of sof tware e[...]

  • Seite 6

    7265 P r o g r a m m e r ’s Manual 2 Co p y r i g ht © 20 0 4 Tally G e n i c om Chapter 2. AN S I T he TallyGenicom i m ple m entation of AN S I X 3. 6 4 is t he n at i ve c ont r o l p r o t o c ol f or the 7265 p r inte r , as it is f or a v a r i e t y of o t her TallyGenicom i m pa c t m at r ix p r inter f a m ilie s . T he c o n t r ol f [...]

  • Seite 7

    7265 P r o g r a m m e r ’s Manual 3 Co p y r i g ht © 20 0 4 TallyGenicom Chap t er 2 A N SI Control Code Summary Code Hex Description ETX 03 ETX/ACK Communication Pr otocol ACK 06 ETX/ACK Communication Pr otocol BEL 07 Sound Beeper BS 08 Backspace HT 09 Horizontal Tab LF 0A Line Feed VT 0B Vertical Tab FF 0C Form Feed CR 0D Car riage Return SO[...]

  • Seite 8

    7265 P r o g r a m m e r ’s Manual 4 Co p y r i g ht © 20 04 Tally G e n i c om ompar ison, 7 Bi t/ 8 Bi t 8 B i t Hex Description 7 Bit Hex IND 84 Index ESC D 1B 44 NEL 85 Next Line ESC E 1 B 45 HTS 88 Set Horizontal Tab ESC H 1B 48 VTS 8A Set Vertical Tab ESC J 1B 4A PLD 8B Par t ial Line Down ESC K 1B 4B PLU 8C Partial Line Up ESC L 1B 4C RI [...]

  • Seite 9

    7265 P r o g r a m m e r ’s Manual 5 Co p y r i g ht © 20 04 Tally G e n i c om de is He xade c imal, Orde red Column|Row 0 123 456 7 00 NUL @ P ` p 1 DC1 !1 A Q a q 2“ 2 B R b r 3 ETX DC3 #3 C S c s 4$ 4 D T d t 5 ENQ %5 E U e u 6 AC K &6 FV f v 7 BEL ‘7 G W g w 8 BS (8 H X h x 9 HT )9 IY I y A LF *: J Z j z B VT ESC +; K [ k { C FF , &[...]

  • Seite 10

    7265 P r o g r a m m e r ’s Manual 6 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N S I Code is Hexade cimal, Ordered Column|Row 89 A B C D E F 0 DCS á !" #  $ 1 PU1 í %& '  ± 2ó () *  + 3ú ,- #  . 4 IND ñ /0 1  2 5 NEL Ñ 34 5  6 6a 78 9  ÷ 7o :; <  = 8 HTS ¿ >?@  º 9 AB CD ?[...]

  • Seite 11

    7265 P r o g r a m m e r ’ Manual 7 Co p y r i g ht © 20 0 4 TallyGenicom e n i c o Chap t er 2 A N S I Code Descript i on ESC [(p1);(p2)<SP>~ Select Emulation ESC [(p)` Horiz ontal Position Absolute ESC [(p)a Horizontal Position Relative ESC [(p)d Vertica l Posi tion A bsolut e ESC [(p )e Vertical Positi on Rel ativ e ESC [(p1);(p2)f Vert[...]

  • Seite 12

    7265 P r o g r a m m e r ’s Manual 8 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Pr inter Handshaking Commands Description DC1 PRINTE R READY In serial interface, if the printer is strapped for XON/XOFF handshaking, then the printer sends DC1 to the host to signal that the printer is ready to accept data. In parallel interf ace[...]

  • Seite 13

    7265 P r o g r a m m e r ’s Manual 9 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI Printer Control Commands Description SO SHIFT OUT You can s t r ap t he p r i n t er t o s t a r t ei t her b a r c ode ( p a g e 37 ) o r o v e r si z ed ( page 64 ) mode, whichever is enabled, on receipt of SO. The ISU status of SO/SI control is[...]

  • Seite 14

    7265 P r o g r a m m e r ’s Manual 10 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI Co mmands Descript i on DEL DELETE DEL is a printable character, or is a valid graphics data byte if received in dot g r aphics mode. Dec 127 Hex 7F ESC [(p1); (p2)<SP>~ SELECT EMULATIO N If p2 is 0, which is the default, then the current s[...]

  • Seite 15

    7265 P r o g r a m m e r ’s Manual 11 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI Co mmands Descript i on ESC c RESET TO I NITIAL STAT E Recalls the user format presently assigned to the current pa per path. Dec 27 99 Hex 1B 63 ESC [(p1)t ENABLE/DISABLE O VERSIZED/EXPANDED/ BAR CODE MODES p1 Ef f ec t Page 0 reset special mode[...]

  • Seite 16

    7265 P r o g r a m m e r ’s Manual 12 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI Co mmands Descript i on ESC [(p1); ...(pn)l RESET MODE (A NSI) Resets mode(s) set by ESC [(p1) ;..(pn)h. p Ef f ect 20 reset auto CR on LF Example: r eset aut o CR on LF Dec 27 91 50 48 108 Hex 1B 5B 32 30 6 C ESC [> (p1);..(pn)h SET M ODE (GE[...]

  • Seite 17

    7265 P r o g r a m m e r ’s Manual 13 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Commands Description ESC [(p1); (p2);<SP>{ PAPER SHEAR If the paper shear option is installed, then note that the appropriate strap must be set in the hardware options menu in order for the paper shear to w ork. Parameter p1 = 1 selects the [...]

  • Seite 18

    7265 P r o g r a m m e r ’s Manual 14 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI Co mmands Descript i on ESC ]6;4 ; (p3);(p4) ESC STRAPS AND OPTIO NS This command enables dow nline control of options found at v arious places in the printer menus. This includes the Emulation and Software Options menus, as well as the User-de[...]

  • Seite 19

    7265 P r o g r a m m e r ’s Manual 15 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Graphics Rendition (Fonts and Modes) Command Description ESC [(p1); ...(pn )m SELECT GRAPHI CS RENDITIO N Selects print modes and fonts. p1 Printing Mode 0 no rm al p r in t i n g - r esets all m odes ( but does not a ff ect f ont selec t ion) 1 s[...]

  • Seite 20

    7265 P r o g r a m m e r ’s Manual 16 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI NATIONAL CHARACTER SET Command Description ESC [(p)x SELECT NATIONAL CHARACT ER SET p Character Set 0 USA 1 Germany 2 French A 6 It a li a n 7 Uni t ed Kin g d o m 8 Spanish 9 Danish / N o r w e g i an A 16 S w e d ish / Finnish D If a parameter [...]

  • Seite 21

    7265 P r o g r a m m e r ’s Manual 17 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI D/N = Danis h/Nor wegian S/F = Sw edish/Fin nish Code D Locati on H 35 23 36 24 38 26 42 2A 64 40 91 5B 92 5C 93 5D 94 5E 96 60 123 7B 124 7C 125 7D 126 7E 155 9B 157 9C p Character Set 0U S A #$& * @ [ ] ^ ` { ! }~ ¢ ¥ 1G e r m a n y #$&[...]

  • Seite 22

    7265 P r o g r a m m e r ’s Manual 18 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Line/Character Spacing Command Description ESC [(p1); (p2 ) <SP> G LINE/CHARACTE R SPACING Sets the v ertical an d horiz ontal pitch in decipoi nts. Par ameter (p1) is th e spacing betw een li nes and (p2) is the sp acing be tween char acter[...]

  • Seite 23

    7265 P r o g r a m m e r ’s Manual 19 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Commands Description ESC [(p1); (p2) <SP> G LINE/CHARACT ER SPACING p1 = line spacing parameter p2 = character spacing parameter If you select doublewide printing (ESC [5m), then the printer doubles character spacing set by this command. If [...]

  • Seite 24

    7265 P r o g r a m m e r ’s Manual 20 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Forms Setup Command Description ESC [(p1); (p2);(p3);(p4) ;(p5 )r FORMS SETUP Sets top of form and sets form length, as w ell as top and bottom margins, in decipoints. Parameter p1 is f o r m leng t h 720ths , p2 is the top margin, p3 sets the len[...]

  • Seite 25

    7265 P r o g r a m m e r ’s Manual 21 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Superscript/Subscri pt Command Description ESC K (PLD ) SUBSCRIPT PRI NTING Moves paper 1/2 line below the current line for subscript printing. ESC K is used to return to the original line f ollowing ESC L (superscript). If 8-bit control code proc[...]

  • Seite 26

    7265 P r o g r a m m e r ’s Manual 22 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Vertical Movement Absolute positio ns are ca lculated from the top and l eft print ref erences without r espect to m argin settings . The top of a charac ter ce ll locat ed at vertic al pos ition-abs olute 0 is at to p print ref erence. The lef t [...]

  • Seite 27

    7265 P r o g r a m m e r ’s Manual 23 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Vertical M ovement Commands Description LF LINE FEED Advances the paper one line accordin g to the spacing currently in e ffect. Dec 10 Hex 0A VT VERTICAL T AB Advances paper to the next vertical tab setting. If the current print position is at or[...]

  • Seite 28

    7265 P r o g r a m m e r ’s Manual 24 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Commands Description ESC [(p)e VERTICAL POSITI O N RELATIVE Advances paper p decipoints. This com mand enables printing below the bottom margin of the current form and above the top marg in of the f ollowing form. The example below advances the pa[...]

  • Seite 29

    7265 P r o g r a m m e r ’s Manual 25 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Marg ins Use the F orms Setup com mand, page 2-3 9, to set vertic al m argins. Commands Description ESC [(p1);6 (p2 )s SE T LEF T AND RI GHT M ARGIN Sets the le ft and ri ght margin in deci points; p1 is the le ft ma rgin a nd p 2 is the right. Di[...]

  • Seite 30

    7265 P r o g r a m m e r ’s Manual 26 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI Hor i z onta l Mo v ement Co mmands Descript i on HT HORIZONTAL T AB Causes the current print posi tion to move to the nex t tab stop. If no tabs are set, then the current position mov es one space. If tab(s) are set but no tab(s) are set between[...]

  • Seite 31

    7265 P r o g r a m m e r ’s Manual 27 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Commands Description ESC [(p)` HO RI ZONT AL POSITION ABSOLUTE Causes the print position to move (in decipoints) a specified distance from the left print ref erence. Example: ESC [360` Move print head ½” from left print reference. Dec 27 91 51 [...]

  • Seite 32

    7265 P r o g r a m m e r ’s Manual 28 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Tabs This printer stor es tab st ops in NVRAM while po wer is of f. T herefor e, all tab sto ps shou ld be cl eared bef ore new stops are s et. Commands Description ESC H (HTS ) SET HORIZONTAL TAB AT CURRENT PO SITION If 8 - bit co n t r ol code p[...]

  • Seite 33

    7265 P r o g r a m m e r ’s Manual 29 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Dot Graphics Dot graph ics allo ws you to pr int ind ividua l dots at any pos ition on th e page an d thus to pr int pictures as well as text. W hen you enter dot graphics , the prin ter def aults to a d ot densit y of 72 dpi hori zontall y and ve[...]

  • Seite 34

    7265 P r o g r a m m e r ’s Manual 30 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 2 A N SI Sample Basic Program for Dot Coding Figure 2- 6 Dot Graphics Example[...]

  • Seite 35

    7265 P r o g r a m m e r ’s Manual 31 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Graphics Control Functions The s et of control c odes tha t are int erpreted while in graphic s m ode are sho wn in the f ollowin g charts. B ytes less than 32 dec imal th at are not interpr eted as co ntrol c odes are i gnored. T he printer proce[...]

  • Seite 36

    7265 P r o g r a m m e r ’s Manual 32 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 2 A N SI Commands Description ESC [(p1)q GRAPHICS DENSIT Y Sets the graphics density. The printer pow ers up with a graphics density of 72 x 72 dpi; changes are not stored in NVRAM . p1 horizontal density vertical density 0 72 dpi 72 dpi 1 144 dpi 72 dpi D[...]

  • Seite 37

    7265 P r o g r a m m e r ’s Manual 33 Co p y r i g ht © 20 04 Tally G e n i c om C hap t er 3 A N SI B ar C o des Chapter 3. ANSI Bar Code s This chapter descr ibes the character istics and lis ts ANSI contr ol se quences for 23 res ident bar code st yles. You ha ve to be in ANS I emulati on to pr int the res ident b ar codes. You can a djust va[...]

  • Seite 38

    7265 P r o g r a m m e r ’s Manual 34 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Before You Begin - Set the Form Length Programm ers tend not to trus t form feeds and som etim es us e line feeds instead to move f rom one form to another . If there is an y advantage to that appr oach, it is that the ver tical m ove[...]

  • Seite 39

    7265 P r o g r a m m e r ’s Manual 35 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Setting Bar Code Parameters The ANSI co ntrol s equence t hat sets bar cod e param eters has the form at: Command Description ESC [p1;p2;p3;p4;p 5;p6;p7;p8;p9; p10;p11;p12;p 13} Set Up Bar Code Parameters Determines bar code parameter[...]

  • Seite 40

    7265 P r o g r a m m e r ’s Manual 36 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 3 A N SI B ar C o des Values of all t he adjus table bar c ode par am eters are s tored in N VRAM whi le power is of f. You can res tore the b ar code attribut es to t he factor y settings b y perform ing an ISU on th e pr inter. pn A t tribute p1 style p[...]

  • Seite 41

    7265 P r o g r a m m e r ’s Manual 37 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 3 A N SI B ar C o des Bar Code Command Sequences Command Description ESC [3t ENABLE BAR CO DES Enables Bar Codes with the characteristics set by ESC [(p1);(p2)…}. ESC [ 3 t selec t s Bar Code m ode and activates Bar Code printing. Dec 27 91 51 116 Hex 1[...]

  • Seite 42

    7265 P r o g r a m m e r ’s Manual 38 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 3 A N SI B ar C o des p1 - Bar Code Style This printer suppor ts the foll owing st yles: p1 Sty le 0 Interleaved 2 of 5 1 Bidirectional 2 of 5 2 Matrix 2 of 5 3 Industrial 2 of 5 4 Code 3 of 9 (default) 5 EAN-8 6 EAN-13 7 Code 11 9 Codabar a/t (see note) [...]

  • Seite 43

    7265 P r o g r a m m e r ’s Manual 39 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des p3 - Human Read able Enable An argum ent of 1 tur ns on th e human- readable l ine, whil e 0 turns i t off . The def ault is on. W hen the hum an readable line is enabled, it is printed i n the font s pecif ied b y parameter p12. T he[...]

  • Seite 44

    7265 P r o g r a m m e r ’s Manual 40 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Other Parameters p9 – Rotati on Sets the a bsolute rot ation in 90 degre e incr ements . If param eter p12 = 0, then the h um an- readable font is s hown in the fol lowing tab le: p9 Rotation HR Font if p12 = 0 0 no rotation (def au[...]

  • Seite 45

    7265 P r o g r a m m e r ’s Manual 41 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 3 A N SI B ar C o des p10 - Horizontal Resolution A value of 0 is 60 dots per inc h, while a value of 1 is 1/120 d ots per inc h. T he default de pends on the st yle in for ce. EAN an d UPC s tyles d efault to 1. All oth er style s def ault to 0. Note: Th[...]

  • Seite 46

    7265 P r o g r a m m e r ’s Manual 42 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Delim iters A bar co de delim iter is a c harac ter or contr ol functi on that tel ls the pr inter wher e one bar code s ymbol ends and an adjac ent symb ol begins . Diff erent bar cod e styles accept d iff erent delim iters, whic h m[...]

  • Seite 47

    7265 P r o g r a m m e r ’s Manual 43 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des F i g u r e 3 - 3 Comma, Spa c e, and Asteri s k De l imiters !#/E" !#/E" Interl eaved 2 o f 5, comma delimit er !#/E" !#/E" Interleav ed 2 of 5, space d elimiter *1234* *1234* *1234* *1234* Asterisk deli miters ar[...]

  • Seite 48

    7265 P r o g r a m m e r ’s Manual 44 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Horizontal Tab Delimiter The HT control c ode (09) is a vali d delim iter in a ll bar co de st yles. The le ading quie t zon e of a su bsequent symbol b egins at the firs t tab stop r ight of the trailing quiet zon e of the current s [...]

  • Seite 49

    7265 P r o g r a m m e r ’s Manual 45 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Horizontal Position - R elative Delimit er The hor izontal positio n-relat ive com m and is a va lid delim iter i n all bar cod e styles ex cept POST NET. ESC [( Pn)a The argum ent units f or this comm and are dec ipoints (1/720 inc h[...]

  • Seite 50

    7265 P r o g r a m m e r ’s Manual 46 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Delimiters and Vertica l Bar Codes If you rot ate a bar co de 90 o or 270 o , th en spac e impos ed by del imiter s is not ro tated, but is app lied hori zontall y, as the sam ple shows. T he s ymbol dim ensions th at used to be hori [...]

  • Seite 51

    7265 P r o g r a m m e r ’s Manual 47 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Calculating Characters per Inch W e show character s per inc h at the def ault elem ent widths and 0 o /180 o rotation for each st yle in the follo wing chapt er. Al l of our n umber s ignore the quiet zones; you need to allow 1/2 inc[...]

  • Seite 52

    7265 P r o g r a m m e r ’s Manual 48 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Bar Code Sty le Characteristics The f ollowing pag es sho w specif ic inf orm ation about the various st yles. A NULL c haracter is a combinat ion of bars an d spaces u nique t o a part icular st yle that is printed when a nonvali d c[...]

  • Seite 53

    72655 P r o g r a m m e r ’s Manual 49 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Matrix 2 of 5 (Style 2 ) 1 Bars per character: 3 dark bars and 2 light bars 2 Character set: 0 through 9 3 Start/ St op characters: 3 dark bars and 2 light bars 4 Center character code: None 5 NULL character: Yes 6 I n t e r cha r a [...]

  • Seite 54

    7265 P r o g r a m m e r ’s Manual 50 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des EAN-8 (Sty le 5) 1 Bars per character: 2 dark bars and 2 light bars 2 Character set: 0 through 9 3 Start/ St op characters: 2 dark bars and 1 light bar 4 Center character code: Yes 5 NULL character: Yes 6 Int ercharacter gap: None 7 C[...]

  • Seite 55

    7265 P r o g r a m m e r ’s Manual 51 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 3 A N SI B ar C o des C ode 11 (Style 7) 1 Bars per character: 3 dark bars and 2 light bars 2 Character set: 0 through 9 and the dash cha racter 3 Start/S top charac ters: Yes 4 Center character code: None 5 NULL character: Yes 6 I n t e r cha r a c t er [...]

  • Seite 56

    7265 P r o g r a m m e r ’s Manual 52 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Codabar A/t, B/n, C/*, D/e (9, 10, 11, 12) 1 Bars per character: 4 dark bars and 3 light bars 2 Character set: 0 through 9 and the four additional characters :/ . + 3 Start/S top chara cters: Yes (A,B ,C,D/A ,B,C ,D, T,N,*,E ) 4 Cente[...]

  • Seite 57

    7265 P r o g r a m m e r ’s Manual 53 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des UPC-E (Sty le 14) Ten digi ts m ust be entered as input. T he fir st five re present a vendor num ber and the l ast five represent a pro duct num ber. Onl y 6 of the 10 input digits are enco ded in the bar cod e s ymbo l. The s ix cha[...]

  • Seite 58

    7265 P r o g r a m m e r ’s Manual 54 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Code 93 (S tyle 15 ) 1 Bars per character: 3 dark bars and 3 light bars 2 Character set: All 128 ASCII characters 3 Start/Stop characters: Yes. (Stop character has 4 dar k bars and 3 light bars) 4 Center character code: None 5 NULL ch[...]

  • Seite 59

    7265 P r o g r a m m e r ’s Manual 55 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 3 A N SI B ar C o des M S I (Style19) 1 Bars per character: 4 dark bars and 4 light bars 2 Character set: 0 through 9 3 Start characters: 1 dark bar and 1 light bar Stop cha racters: 2 dark bars and 1 light bar 4 Center character code: None 5 NULL charact[...]

  • Seite 60

    7265 P r o g r a m m e r ’s Manual 56 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 3 A N SI B ar C o des POSTNET (Style 50) You cann ot adjust PO STNET bar code attr ibutes with ESC[(p1);..(p 12)}. All attr ibute param eters except th e style param eter (p 1) are ign ored by PO STNET , although t hey are pr ocessed, s aved, and wou ld a[...]

  • Seite 61

    7265 P r o g r a m m e r ’s Manual 57 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des 1 Bars per character: 2 tall bars and 3 short bars 2 Character set: 0 through 9 3 Start chara cters: 1 tal l bar Stop characters: 1 tall bar 4 Center character code: None 5 NULL character: diamond symbol 6 Intercharacter gap: Yes 7 Ch[...]

  • Seite 62

    7265 P r o g r a m m e r ’s Manual 58 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Calculating the Checksum for Code 3 of 9 A 3 of 9 s ymbol is a var iable-len gth stri ng which ca n inclu de the dig its 0 - 9 , uppercas e A - Z, and six additi onal p unctuation c harac ters. T he values us ed to c ompute the check [...]

  • Seite 63

    7265 P r o g r a m m e r ’s Manual 59 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des The f ollowing ex am ple illustrat es the c alculat ion of the check digits f or the s y m bol COD E 93. D a t a CO DE s p 9 3 " C " " K " Data Values 12 24 13 14 38 9 3 C W e i g h t s 7654321 K W e i g h t s 8765[...]

  • Seite 64

    7265 P r o g r a m m e r ’s Manual 60 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Code 93 Checksum s for Full ASCI I You can s end an y of the 128 ASCII char acters verbatim in a Cod e 93 s ymbol. You would not need to wor ry about Co de 93 c ontrol co des if you did not need t o com pute check sum s. The f our con[...]

  • Seite 65

    7265 P r o g r a m m e r ’s Manual 61 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Checksum cal culation for th e sy mbol Cat Data C <CTRL> + A <CT RL> + T "C" " K" Data Values 12 46 10 46 29 C W e i g h t s 543 2 1 K W e i g h t s 654 3 2 1 1) For "C", sum the prod ucts of [...]

  • Seite 66

    7265 P r o g r a m m e r ’s Manual 62 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 3 A N SI B ar C o des Code 93 Full A SCII Table Code Code Code Code ASCII 93 ASCII 93 ASCII 93 ASCII 93 NUL %U SP space @ %V ` % W SOH $A ! /A A A a +A STX $B " /B B B b +B ETX $C # /C C C c +C EOT $D $ $ D D d +D ENQ $E % % E E e + E AC K $F & / [...]

  • Seite 67

    7265 P r o g r a m m e r ’s Manual 63 Co p y r i g ht © 20 04 Tally G e n i c om C hap t er 4 A N SI Ov e r s i zed Chapter 4. A NSI O v ersiz ed Font This chapter descr ibes the character istics and lis ts the AN SI control s equenc es for the rotatab le oversize d font, a unique s ans-ser if font with charact er shap es desi gned to ac comm od[...]

  • Seite 68

    7265 P r o g r a m m e r ’s Manual 64 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed Control Function Summar y Control Function Description SO Activate Oversized, Expanded, Barcode SI Ex it Oversized, Expanded, Bar code ESC [0t Cancel Oversized, Expanded, Barcode ESC [1t Non-rot atable Oversized ESC [2t Expanded P[...]

  • Seite 69

    7265 P r o g r a m m e r ’s Manual 65 Co p y r i g ht © 20 0 4 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed Commands Description ESC [Pv;P h<sp>B SET CHARACT ER SIZE Sets the expansion of ov ersized characters in percentage points. Pv is the vertical expansion and Ph is the horizontal expansion. The paren t font is a 10-point font[...]

  • Seite 70

    7265 P r o g r a m m e r ’s Manual 66 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed Oversized Ver sus Expanded There ar e two AN SI functi ons that pri nt char acters s caled acc ording to the Graph ics Si ze Modif ication param eters. Both expanded and overs ized ar e stand ard features with this print er. You ca[...]

  • Seite 71

    7265 P r o g r a m m e r ’s Manual 67 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed ESC [(pv);(ph)< SP>B where (p v) is the vert ical expans ion, (ph) is t he hori zontal ex pansio n, and <SP> is th e spac e character (20 hex) . F o r 0 o r o ta t i on, y o u c an t h i nk of pa r a m eter ( pv) as 1 0[...]

  • Seite 72

    7265 P r o g r a m m e r ’s Manual 68 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed What is a Cha racter Ce ll? A character cell is the rec tangu lar arra y of locati ons at whic h dots ca n be pri nted to f orm one character . All charac ter ce lls for a g iven m onospac ed font a t a given pitch are the sam e si[...]

  • Seite 73

    7265 P r o g r a m m e r ’s Manual 69 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed O v ersized Charact e r Dimen s ions – 0 o T h e wid t h of an o v e r s i zed c h a r a c ter c e l l is 0. 7 2 d e c i p o ints t i m es the horizontal expans ion fac tor. In thous andths of an inc h, it is t he sam e as the ho[...]

  • Seite 74

    7265 P r o g r a m m e r ’s Manual 70 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed O v ersized Charact e r Dimen s ions - 27 0 o The w i dth of a c ha r a c ter c e ll is 0.6 de c ip o i nts t i m es the ho r i z o nt a l expansion f actor. W idth m eans the dim ension that is l eft-to- right as you read th e cha[...]

  • Seite 75

    7265 P r o g r a m m e r ’s Manual 71 Co p y r i g ht © 20 04 Tally G e n i c om Chap t er 4 A N SI O v e r s i zed I m p l e m ent i ng the L i ne Feed Funct i on - 0 o A good t echnique is to exi t overs ized with ESC [0t and send a vertic al and horizonta l positi on absolute com m and: ESC [(Pv);(Ph)f where (Pv) is deci points f rom the top [...]

  • Seite 76

    7265 P r o g r a m m e r ’s Manual 72 Co p y r i g ht © 20 0 4 TallyGenicom Chap t er 4 A N SI O v e r s i zed Line Spacing and Intercharacter Spacing - 270 o If you print s idewa ys text, then t he vert ical m ove that oth erwise corr espond ed to a lin e feed no w sets the d istance from the leading edge of one char acter ce ll to t he leadi n[...]

  • Seite 77

    Appendix A. Co mmands and Exc eptions Supported Control Codes and Escap e Sequences ACK Ack nowledge BEL Bell BS Back Space CR Carriag e Return CSI Control String Intro ducer, ESC [ DC1 S elect pri nter (Data C ontrol 1) DC3 Deselect printer (Dat a Contr ol 3) DEL Delete ENQ Enquiry ESC Escape ESC or ST String T erminator ESC c Reset to Initial S[...]

  • Seite 78

    Commands not implemented in the 7265 A NSI Emulation ESC ] p1;pn <ST> User D efined Char acter Su bstitution (G ENUDS) ESC ] p1;p2 ;p3;data<ST > Operating syst em c ommand (Load M ode OSC) ESC [ p1;p2 SP ~ Selects emulation (G ENEMU) ESC [ p1;pn { Unidirectiona l Printing ( GENUPD) ESC [ p1;p2 ;p3 SP | Customer Setup Save/Uns ave (GENC [...]

  • Seite 79

    Programmer's Reference EPSON Emulation[...]

  • Seite 80

    Table of Contents Description of Escape Sequences Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Paper and Text Formatting . . . . . . . . . . . . . . . . . . . . . . . . . 5 Form Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Page Length in Units . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Seite 81

    Character Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Super-/Subscript Mode ON . . . . . . . . . . . . . . . . . . . . . . 29 Double Strike . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Select Font and Pitch by Point . . . . . . . . . . . . . . . . . . . . 32 Print Quality . . . . . . . . . . . . . . . . . [...]

  • Seite 82

    Download Character Generator . . . . . . . . . . . . . . . . . . . . . . 73 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Copy ROM into RAM . . . . . . . . . . . . . . . . . . . . . . . . . 75 Print Raster Graphics . . . . . . . . . . . . . . . . . . . . . . . . . 76 Activate User Defined Character Set . . . . . . . . .[...]

  • Seite 83

    Appendix A Summary of Possible Codes Sorted by Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2 Sorted by Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7 Appendix B Character Sets Standard Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . B-3 International Substitution Table - normal font[...]

  • Seite 84

    Description of Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Download Character Generator Miscellaneous Control Codes[...]

  • Seite 85

    Introduction This User’s Manual describes the sum of all EPSON Escape sequences, regardless of the specific EPSON emulation used by your printer. The only differentiation is made be- tween 9 and 24 needle printers as well as the maximum possible paper width of 8 inches (80 column printer) or 13.6 inches (136 column printer). Please note that the [...]

  • Seite 86

    This is followed by the Data Structure in ASCII, hexadecimal and decimal syntax with the necessary parameters, e.g.: ASCII ESC "C" <n> Setting the form length in lines hex. 1B 43 <n> dec. 27 67 <n> For the parameter (here n) it is necessary to differentiate between two types of syntax. if the parameter is in pointed pare[...]

  • Seite 87

    Setting the form length to 72 lines Escape Sequence ESC C <n> with n=72 Transfer ASCII ESC "C" "H" hex. 1B 43 48 d e c . 2 76 77 2 100 REM Sample for the ESC C <n> sequence in ASCII, 110 REM using form with 72 lines. 120 REM Please note, in ASCII-Syntax you can use ASCII values 130 REM equal or bigger codetable no. 3[...]

  • Seite 88

    Paper and Text Formatting Form Length in Lines ESC C Form Length in Inches ESC C NUL Data Structure ASCII ESC "C" <n> set form length in lines ➊➌ hex. 1B 43 <n> dec. 27 67 <n> ASCII ESC "C" <0> <n> set form length in inches ➋➌ hex. 1B 43 0 <n> dec. 27 67 00 <n> Description ➊ Th[...]

  • Seite 89

    Example 10 REM form length 20 FF$=CHR$(12) 30 K=1 40 LPRINT CHR$(27);"C";CHR$(4); 50 FOR F=1 TO 3 60 FOR L=1 TO K 70 LPRINT "length 4: form";F;"line";L 80 NEXT L 90 K=K+1 100 LPRINT FF$; 110 NEXT F 120 K=1 130 LPRINT CHR$(27);"C";CHR$(3); 140 FOR F=1 TO 3 150 FOR L=1 TO K 160 LPRINT "length 3: form"[...]

  • Seite 90

    Set Page Length in Units ESC ( C Data Structure ASCII ESC "(" "C" <n L >< n H >< m L >< m H > set page length in units hex. 1B 28 43 <n L >< n H >< m L >< m H > d e c . 2 74 06 7< n L >< n H >< m L >< m H > Description Valid values: n L = 2, n H = 0 0 < ([...]

  • Seite 91

    Set Page Format ESC ( c Data Structure ASCII ESC "(" "c" <n L >< n H >< t L >< t H >< b L >< b H > set page format hex. 1B 28 63 <n L >< n H >< t L >< t H >< b L >< b H > d e c . 2 74 09 9< n L >< n H >< t L >< t H >< b L >< [...]

  • Seite 92

    This sequence sets new top and bottom. it does not affect the current page length setting. Set top and bottom margin first, then load paper. Using this sequence within the form sets top margin at the current position. Paper and Text Formatting 9[...]

  • Seite 93

    Perforation Skip ESC N Reset Perforation Skip ESC O Data Structure ASCII ESC "N" <n> set space before perforation (perforation skip) ➊ hex. 1B 4E <n> dec. 27 78 <n> ASCII ESC "O" reset perforation skip ➋ hex. 1B 4F dec. 27 79 Description ➊ This code sequence enables the perforation skip function and sets [...]

  • Seite 94

    Example 10 REM skip 20 LPRINT CHR$(27);"C";CHR$(6);:REM form length 30 LPRINT CHR$(27);"N";CHR$(1);:REM set skip 40 FOR F=1 TO 2 50 FOR L=1 TO 5 60 LPRINT "form";F;" line";L 70 NEXT L:NEXT F 80 END Paper and Text Formatting 11[...]

  • Seite 95

    Right Margin ESC Q Left Margin ESC l Data Structure ASCII ESC "Q" <n> set right margin ➊ hex. 1B 51 <n> dec. 27 81 <n> ASCII ESC " l " <n> set left margin ➋ hex. 1B 6C <n> dec. 27 108 <n> Description Values for n Character density 80 columns printer 136 columns printer 10 cpi 12 cpi 15 cpi[...]

  • Seite 96

    Example 10 REM left and right margin 20 LPRINT " 1 2 3 4 5" 30 LPRINT "12345678901234567890123456789012345678901234567890123" 40 LPRINT CHR$(27);"l";CHR$(10);CHR$(27);"Q";CHR$(53); 50 LPRINT "Now the left margin is set to column 10 and"; 60 LPRINT "the right margin is set to column 53." 70[...]

  • Seite 97

    Justification and Centering ESC a Data Structure ASCII ESC "a" <n> hex. 1B 61 <n> or n dec. 27 97 <n> or n Description In some cases it is necessary to center headlines or to have the text printed in a way that left or right margin or both margins are justified. By means of this code sequence the prin- ter automatically [...]

  • Seite 98

    Example 10 REM justification and centering 20 WIDTH "LPT1:",255 30 LPRINT CHR$(27);"Q";CHR$(48);:REM set right margin 40 LPRINT CHR$(27);"a";CHR$(1);"CENTERED" 50 LPRINT "HEADLINE" 55 LPRINT CHR$(27);"a";CHR$(3) 60 LPRINT "Now the right and the left justification "; 70 LPRINT &qu[...]

  • Seite 99

    Character Spacing Set HMI (Horizontal Motion Index) ESC c Data Structure ASCII ESC "c" <n L >< n H > set HMI (Horizontal Motion Index) hex. 1B 63 <n L >< n H > dec. 27 99 <n L >< n H > Description Valid values: 0 ≤ n H ≤ 4 0 ≤ n L ≤ 255 0 < ((n H x 256) + n L )) ≤ 1080; HMI ≤ 3.00 inches [...]

  • Seite 100

    This sequence terminates previously set additional character space defined with ESC SP. Following sequences will cancel the HMI mode: ESC ! print mode selection ESC @ printer initialization DC2 reset condensed print DC4 reset enlarged print mode (set by <SO> or ESC <SO>) ESC g character density 15 cpi ESC M character density 12 cpi (Eli[...]

  • Seite 101

    Set enlarged Print Mode SO/ESC SO Reset enlarged Print Mode DC4 Continuous enlarged Print Mode ESC W Syntax ASCII SO or ESC SO set enlarged print mode (for one line) ➊ hex. 0E or 1B 0E dec. 14 or 27 14 ASCII DC4 reset enlarged print mode ➋ hex. 14 (set by SO or ESC SO) dec. 20 ASCII ESC "W" <n> or n set/reset continuous enlarged[...]

  • Seite 102

    Example 10 REM enlarged character densities 20 LPRINT CHR$(27);"P";: REM 10 cpi 30 LPRINT "normal 10 cpi character density" 40 LPRINT CHR$(27);"W";CHR$(1);: REM continuous enlarged density 50 LPRINT "10 cpi continuous enlarged" 60 LPRINT CHR$(27);"M";: REM 12 cpi 70 LPRINT "12 cpi continuous en[...]

  • Seite 103

    Condensed Character Density SI/ESC SI Reset Condensed Character Density DC2 Data Structure ASCII SI or ESC SI condensed print ON ➊ hex. 0F or 1B 0F dec. 15 or 27 15 ASCII DC2 reset condensed print ➋ hex. 12 dec. 18 Description ➊ When the printer receives this code, the data will be printed approx. 40% smaller than in normal mode. Condensed pr[...]

  • Seite 104

    Character Density 10 cpi ESC P Character Density 12 cpi ESC M Character Density 15 cpi ESC g Data Structure ASCII ESC "P" set character density to 10 cpi (Pica) ➊ hex. 1B 50 dec. 27 80 ASCII ESC "M" set character density to 12 cpi (Elite) ➋ hex. 1B 4D dec. 27 77 ASCII ESC "g" set character density to 15 cpi ➌ hex[...]

  • Seite 105

    Example 10 REM single character densities 20 LPRINT CHR$(27);"P";"this is pica sized" 30 LPRINT CHR$(27);"M";"and this is elite sized" 40 LPRINT CHR$(27);"g";"and this is 15 cpi" 50 END 22 Character Spacing[...]

  • Seite 106

    Proportional Spacing ESC p Data Structure ASCII ESC "p" <n> or n proportional spacing ON/OFF hex. 1B 70 <n> or n dec. 27 112 <n> or n Description If 1 is specified for n, proportional spacing is ON, if 0 is specified for n, proportional spacing is OFF. When in default font type, all characters are assigned a fixed, equal[...]

  • Seite 107

    Character Spacing ESC SP Data Structure ASCII ESC SP <n> hex. 1B 20 <n> dec. 27 32 <n> Description The size of the spaces between the characters is increased by n ∗ 1 ⁄ 180 inch in NLQ and LQ and in Draft by n ∗ 1 ⁄ 120 inch. This space is added to the spaces used for character de- finition. The value specified for n must [...]

  • Seite 108

    Line Spacing Fixed Line Spacing 1/8 Inch ESC 0 Fixed Line Spacing 7/72 Inch ESC 1 Fixed Line Spacing 1/6 Inch ESC 2 Data Structure ASCII ESC "0" set line spacing to 1/8 inch ➊ hex. 1B 30 dec. 27 48 ASCII ESC "1" set line spacing to 7/72 inch ➋ hex. 1B 31 dec. 27 50 ASCII ESC "2" set line spacing to 1/6 inch ➌ hex[...]

  • Seite 109

    Note that changing the line spacing also changes the number of lines per page. Changing the line spacing does not affect the current tab stops or form length. Example 10 REM fix line spacing 20 LPRINT CHR$(27);"0" 30 LPRINT "these two lines are printed with" 40 LPRINT "a spacing of 1/8 inch" 50 LPRINT CHR$(27);"2&[...]

  • Seite 110

    Variable Line Spacing n/180 Inch or n/216 Inch ESC 3 Variable Line Spacing n/60 Inch or n/72 Inch ESC A Variable Line Spacing n/360 Inch ESC + Data Structure ASCII ESC "3" <n> set n/180 inch line spacing ➊ hex. 1B 33 <n> set n/216 inch line spacing dec. 27 51 <n> ASCII ESC "A" <n> set n/60 inch line spa[...]

  • Seite 111

    Example 10 REM variable line spacing 20 FOR N= 20 TO 40 STEP 10 30 LPRINT CHR$(27);"3";CHR$(N) 40 LPRINT "these two lines are printed with" 50 LPRINT "a spacing of";N;"/180 inches" 60 NEXT 70 END 10 REM variable line spacing 20 FOR N= 20 TO 40 STEP 10 30 LPRINT CHR$(27);"3";CHR$(N) 40 LPRINT "t[...]

  • Seite 112

    Character Styling Super-/Subscript Mode ON ESC S Super-/Subscript Mode OFF ESC T Data Structure ASCII ESC "S" <n> or n super/subscript mode ON ➊ hex. 1B 53 <n> or n dec. 27 83 <n> or n ASCII ESC "T" super/subscript mode OFF ➋ hex. 1B 54 dec. 27 84 Description ➊ This code sequence switches the printer to s[...]

  • Seite 113

    Example 10 REM superscript and subscript 20 LPRINT "E=M*C"; 30 LPRINT CHR$(27);"S";CHR$(0); 40 LPRINT "2"; 50 LPRINT CHR$(27);"T"; 60 LPRINT " is Einsteins most famous formula." 70 LPRINT "H"; 80 LPRINT CHR$(27);"S";CHR$(1);"2";CHR$(27);"T"; 90 LPRINT "O [...]

  • Seite 114

    Double Strike ON ESC G Double Strike OFF ESC H Data Structure ASCII ESC "G" double strike ON ➊ hex. 1B 47 dec. 27 71 ASCII ESC "H" double strike OFF ➋ hex. 1B 48 dec. 27 72 Description ➊ This code sequence switches the printer to double strike mode. In double strike mode characters are printed in two printing passes at the[...]

  • Seite 115

    Select Font and Pitch by Point ESC X Data Structure ASCII ESC "X" <m> <n L >< n H > select font and pitch by point hex. 1B 58 <m> <n L >< n H > dec. 27 88 <m> <n L >< n H > Description Valid values: 5 ≤ m ≤ 127 m = 0.1 0 ≤ n L ≤ 255 0 ≤ n H ≤ 127 Selects the pitch and point[...]

  • Seite 116

    Not all printer fonts are scaleable. Please refer to the printer ’ s reference manual which fonts are supported. Scaleable fonts can only be printed in one quality (LQ). Points: Following point sizes (1/72 inch) are available: 8, 10 (10.5), 12, 14, 16, 18, 20 (21), 22, 24, 26, 28, 30, 32 Pitch: Previously set pitch settings will be cancelled. Fol[...]

  • Seite 117

    Print Quality ESC x Data Structure ASCII ESC "x" <n> or n set print quality (PQ) hex. 1B 78 <n> or n dec. 27 120 <n> or n Description n Selected via control panel DPQ NLQ LQ 0 DPQ DPQ DPQ 1 LQ NLQ LQ Valid values for n are either ASCII Code 0 and 1 (hex00 and hex.01) or ASCII characters "0" and "1" (h[...]

  • Seite 118

    Font Type Selection ESC k Data Structure ASCII ESC "k" <n> hex. 1B 6B <n> dec. 27 107 <n> Description Corresponding to the value specified for n, one of the printer ’ s internal fonts or a font of an optional font card is selected. Please refer to the printer ’ s reference manual which fonts are supported by your pri[...]

  • Seite 119

    Example 10 REM font selection 20 LPRINT CHR$(27);"x1"; : REM high print quality 30 FOR i=0 TO 9 40 LPRINT CHR$(27);"k";CHR$(i); 50 LPRINT "This is the font selected with ";i" 60 NEXT i 70 END 36 Character Styling[...]

  • Seite 120

    Typestyle Selection ESC q Data Structure ASCII ESC "q" <n> or n hex. 1B 71 <n> or n dec. 27 113 <n> or n Description This sequence selects normal typestyle, outline typestyle, shaded typestyle or shaded out- line typestyle. All the characters of the extended EPSON character set with the exception of the characters hex.B0[...]

  • Seite 121

    Emphasized Mode ON ESC E Emphasized Mode OFF ESC F Data Structure ASCII ESC "E" emphasized mode ON ➊ hex. 1B 45 dec. 27 69 ASCII ESC "F" emphasized mode OFF ➋ hex. 1B 46 dec. 27 70 Description ➊ This code sequence switches the printer to emphasized mode. During printing in emphasized mode, each character is printed twice, [...]

  • Seite 122

    Underline Mode ESC - Data Structure ASCII ESC "-" <n> or n underline mode ON/OFF hex. 1B 2D <n> or n dec. 27 45 <n> or n Description This code sequence switches the automatic underline function ON or OFF. When the automatic underline function is ON, all printed characters including spaces are automat- ically underlined. [...]

  • Seite 123

    Score Selection ESC ( - Data Structure ASCII ESC "(" "-" <3> NUL <1> <n 1 >< n 2 > h e x . 1 B 2 82 D 0 30 00 1< n 1 >< n 2 > d e c . 2 7 4 0 4 5 301< n 1 >< n 2 > Description This Escape sequence switches on and off the underscore, overscore and strike-through modes. The lines can[...]

  • Seite 124

    Example 10 REM Score Selection 20 LPRINT CHR$(27);"(-";CHR$(3);CHR$(0);CHR$(1);CHR$(1);CHR$(2); 30 LPRINT "1. Underline - Double continous line" 40 LPRINT CHR$(27);"(-";CHR$(3);CHR$(0); CHR$(1);CHR$(2);CHR$(2); 50 LPRINT "2. Strike through and Underline - Double continous line" 60 REM cancel strike through - [...]

  • Seite 125

    Italic Mode ON ESC 4 Italic Mode OFF ESC 5 Data Structure ASCII ESC "4" italic mode ON ➊ hex. 1B 34 dec. 27 52 ASCII ESC "5" italic mode OFF ➋ hex. 1B 35 dec. 27 53 Description ➊ All characters following this code sequence are printed in italics. Italic characters are also printed, if codes with the eight bit set by ESC &g[...]

  • Seite 126

    Print Mode Selection ESC ! Data Structure ASCII ESC "!" <n> hex. 1B 21 <n> dec. 27 33 <n> Description This code sequence allows simultaneous control of print features like the character size and attributes characters. By this code sequence several print features can be simulta- neously set via the value of n. This comman[...]

  • Seite 127

    Stan- Con- En- Cond. Propor- Prop.-/ LQ LQ dard densed larged enlarg. tional enlarg. enlarged Pica - normal 0 4 32 36 2 34 0 32 - emphas. 8 – 40 – 18 50 8 40 - double 16 20 48 52 – – – – - em./double 24 – 56 – – – – – Pica italic - normal 64 68 96 100 66 98 – – - emphas. 72 – 104 – 82 114 – – - double 80 84 112 1[...]

  • Seite 128

    Example 10 REM print mode selection 20 LPRINT CHR$(27);"D";CHR$(40);CHR$(0); 30 FOR N = 0 TO 255 STEP 7 40 LPRINT CHR$(27);"!";CHR$(N); 50 LPRINT "Matrix Printer";CHR$(9);CHR$(27);"!";CHR$(0);N 60 NEXT N 70 END Character Styling 45[...]

  • Seite 129

    Double Height ESC w Data Structure ASCII ESC "w" <n> double height ON/OFF hex. 1B 77 <n> or n dec. 27 119 <n> or n Description By means of this code sequence the characters of the subsequent text are specified with double height. ESC w followed by n=1 (hex.01 or hex.31) sets double height printing. To reset the double he[...]

  • Seite 130

    Print Positioning Horizontal Tab Stops ESC D Data Structure ASCII ESC "D" <n 1 > ...<n 32 > NUL set horizontal tab stops ➊ hex. 1B 44 <n 1 > ...<n 32 > 00 dec. 27 68 <n 1 > ...<n 32 > 0 ASCII ESC "D" NUL clear all horizontal tab stops ➋ hex. 1B 44 00 dec. 27 68 0 Description ➊ This code [...]

  • Seite 131

    When the printer is switched on or ESC @ is sent, horizontal tab stops are set at every eight position (9, 17, 25, etc.). Example 10 REM horizontal tabs 20 LPRINT CHR$(27);"D";CHR$(0) :REM clear old tabs 30 LPRINT CHR$(27);"D";CHR$(10);CHR$(20);CHR$(30);CHR$(0); 40 LPRINT CHR$(18);:REM 10 cpi 50 LPRINT "12345678901234567890[...]

  • Seite 132

    Set Horizontal and Vertical Step Width ESC e Data Structure ASCII ESC "e" NUL <n> Set horizontal step width ➊ hex. 1B 65 00 <n> dec. 27 101 0 <n> ASCII ESC "e" SOH <n> Set vertical step width ➋ hex. 1B 65 01 <n> dec. 27 101 1 <n> Description ➊ This sequence sets the horizontal step width[...]

  • Seite 133

    Horizontal and Vertical Step Forward ESC f Data Structure ASCII ESC "f" NUL <n> Set horizontal step forward ➊ hex. 1B 66 00 <n> dec. 27 102 0 <n> ASCII ESC "f" SOH <n> Set vertical step forward ➋ hex. 1B 66 01 <n> dec. 27 102 1 <n> Description ➊ At the next print position n spaces withou[...]

  • Seite 134

    Absolute Horizontal Step ESC $ Data Structure ASCII ESC "$" <n 1 >< n 2 > set absolute horizontal step hex. 1B 24 <n 1 >< n 2 > dec. 27 36 <n 1 >< n 2 > Description This code sequence moves the print head to an absolute print position independent of the current character density. The positioning is in i[...]

  • Seite 135

    Example 10 REM absolute horizontal position 20 LPRINT CHR$(27);"x1";:REM select LQ 30 LPRINT CHR$(27);"$";CHR$(10);CHR$(0);"10"; 40 LPRINT CHR$(27);"$";CHR$(100);CHR$(0);"100"; 50 LPRINT CHR$(27);"$";CHR$(170);CHR$(0);"170"; 60 LPRINT 70 LPRINT CHR$(27);"W1"; 80 LPRINT [...]

  • Seite 136

    Relative Horizontal Step ESC Data Structure ASCII ESC "" <n 1 >< n 2 > s et relative horizontal step hex. 1B 5C <n 1 >< n 2 > dec. 27 92 <n 1 >< n 2 > Description This code sequence moves the print head to a relative print position without regard to the current character density. This print position [...]

  • Seite 137

    n 1 = 480 MOD 256 = dec.224 = hex.E0 Movement of 5 ⁄ 3 inches (1.67 inches) towards the left side: n = 65536 - 1.67 * 120 = 65336 n 2 = INT ( 65336 ⁄ 256 ) = dec.255 = hex.FF n 1 = 65336 MOD 256 = dec.56 = hex.38 Note that you obtain the same result by using the formula given for calculating n 1 and n 2 for absolute horizontal step (see sequenc[...]

  • Seite 138

    Vertical Tab Stops ESC B Data Structure ASCII ESC "B" <n 1 >...<n 16 > NUL set vertical tab stops ➊ hex. 1B 42 <n 1 >...<n 16 > 00 dec. 27 66 <n 1 >...<n 16 > 0 ASCII ESC "B" NUL reset all vertical tab stops ➋ hex. 1B 42 00 dec. 27 66 0 Description ➊ By means of this code sequence a maxi[...]

  • Seite 139

    When the printer is switched on no vertical tab stops are set. Example 10 REM vertical tabs 20 LPRINT CHR$(27);"C";CHR$(10);:REM set form length 30 LPRINT CHR$(27);"B";CHR$(0);:REM clear all vtabs 40 LPRINT CHR$(27);"B";CHR$(3);CHR$(5);CHR$(9);CHR$(0); 50 LPRINT CHR$(11);"this is the first vertical tab, line 3&quo[...]

  • Seite 140

    Set/Reset Vertical Tabs in Channels ESC b Select Vertical Tab Channel ESC / Data Structure ASCII ESC "b" <m> <n 1 >...<n 16 > NUL set vertical tabs in channels ➊ hex. 1B 62 <m> <n1>...<n16> 00 dec. 27 98 <m> <n1>...<n16> 0 ASCII ESC "b" <m> NUL clear all tab settings [...]

  • Seite 141

    Example 10 REM vertical tabs in tab channels 20 LPRINT CHR$(27);"C";CHR$(24); ’form length 24 lines 30 LPRINT CHR$(27);"b";CHR$(0);CHR$(2);CHR$(4);CHR$(6);CHR$(0) 40 REM Channels 0 tabs set at lines 2, 4, and 6 50 LPRINT CHR$(27);"b";CHR$(1);CHR$(9);CHR$(11);CHR$(14);CHR$(0); 60 REM Channel 1 tabs set at lines 9, 11,[...]

  • Seite 142

    Set Absolute Vertical Print Position ESC ( V Data Structure ASCII ESC "(" "V" <n L >< n H >< m L >< m H > set absolute vertical print pos. hex. 1B 28 56 <n L >< n H >< m L >< m H > d e c . 2 74 08 6< n L >< n H >< m L >< m H > Description Valid values: n L =[...]

  • Seite 143

    Set Relative Vertical Print Position ESC ( v Data Structure ASCII ESC "(" "v" <n L >< n H >< m L >< m H > set relative vertical print pos. hex. 1B 28 76 <n L >< n H >< m L >< m H > dec. 27 40 118 <n L >< n H >< m L >< m H > Description Valid values: n L = 2,[...]

  • Seite 144

    The default unit for this sequence is 1 ⁄ 360 ". Only positions within a valid form can be achieved. The current position is base for the newly defined relative positions. Positions exceeding the defined top margin will be ignored. Positions below bottom margin will a) eject paper (single sheet) and b) set new position to top of form at next[...]

  • Seite 145

    Set Unit ESC ( U Data Structure ASCII ESC "(" "U" <n L >< n H > <m> set unit hex. 1B 28 55 <n L >< n H >< m > d e c . 2 74 08 5< n L >< n H >< m > Description Valid values: n L = 1, n H = 0 m = 10, 20, 30, 40, 50, 60 Sets the units to m ⁄ 3600 inch. Following commands are u[...]

  • Seite 146

    Graphics Graphics 60 dpi ESC K Graphics 120 dpi ESC L High Speed Graphics 120 dpi ESC Y Graphics 240 dpi ESC Z Graphic Modes ESC * Data Structure ASCII ESC "K" <n 1 >< n 2 > graphics 60 dpi hex. 1B 4B <n 1 >< n 2 > dec. 27 75 <n 1 >< n 2 > ASCII ESC "L" <n 1 >< n 2 > graphics 120 d[...]

  • Seite 147

    Special 8 Point Sequences ESC * <m> ... -Sequences Print Mode Density in dpi (Dots per Inch) Needles in use Adja- cent Dots horizont. vertic. ESC K... ESC * <0>... single density 60 72 60 8 possible ESC L... ESC * <1>... double density 120 8 possible ESC Y... ESC * <2>... double density/ high speed 120 8 not possible ESC Z..[...]

  • Seite 148

    Relationship between bits of graphics data and needles (9 needle version) Each needle in a column is assigned a bit of the data byte. Needle Data Byte 1 1 • Bit 7 2 • Bit 6 3 • Bit 5 4 • Bit 4 5 • Bit 3 6 • Bit 2 7 • Bit 1 8 • Bit 0 Relationship between bits of graphics data and needles (24 needle version) When using 24-pin graphics[...]

  • Seite 149

    Graphics and text can be mixed within one line. If image data, lying outside the printable area, are input these data are ignored. Example 10 REM bit image print 20 WIDTH "LPT1:",255 30 FOR i=0 TO 4: 40 LPRINT "Mode: ";STR$(i) 50 LPRINT CHR$(27);"*";CHR$(i);CHR$(254);CHR$(0); 60 FOR j=1 TO 127 70 LPRINT STRING$(1,64+16[...]

  • Seite 150

    Select Graphics Mode ESC ( G Data Structure ASCII ESC "(" "G" <n L >< n H > <m> select graphics mode hex. 1B 28 47 <n L >< n H >< m > d e c . 2 74 07 1< n L >< n H >< m > Description Valid values: n L = 1 n H = 0 m = 1, 49 Enters graphics mode. Prepares printer for the sequen[...]

  • Seite 151

    The graphics mode can be exited with sequence ESC @ (see page 114). In this mode text and graphics cannot be mixed on the same page. This sequence does not allow text and user defined character printing. Vertical and horizontal tab settings are cleared. 68 Graphics[...]

  • Seite 152

    Graphics Mode Reassignment ESC ? Data Structure ASCII ESC "?" <s> <n> reassign graphics mode hex. 1B 3F <s> <n> dec. 27 63 <s> <n> Description This code sequence redefines one of the four alternate bit image codes ESC K, ESC L, ESC Y or ESC Z as one of the bit density numbers used with the ESC * <m&g[...]

  • Seite 153

    Example 10 REM Reassigns graphics sequence 20 LPRINT CHR$(27);"K";CHR$(60);CHR$(0); 30 REM Standard ESC K graphics sequence 40 FOR X=1 TO 60:REM 60 Columns 50 LPRINT CHR$(255);:REM one byte per columns 60 NEXT X:LPRINT 70 LPRINT CHR$(27)"?K";CHR$(3) 80 REM Reassigns ESC K to quadruple density 90 LPRINT CHR$(27)"K";CHR$[...]

  • Seite 154

    Graphics Printing with 9 Print Dots ESC ^ Data Structure ASCII ESC "^" <m> <n 1 >< n 2 > hex. 1B 5E <m> <n 1 >< n 2 > dec. 27 94 <m> <n 1 >< n 2 > Description With this Escape sequence, graphics printing with 9 print dots per dot row is selected. For each row of dots two graphics bytes[...]

  • Seite 155

    Example for the calculation of n1 and n2: The number of graphics bytes is 80. n 2 = number of bytes divided by 256 = 80 ⁄ 256 = dec.0 = hex.00 n 1 = remainder from division of n 2 = dec.80 = hex.50 Graphics and text data can be used in combination in a line. For 9-print-dots-graphics-printing, two graphics bytes must be transferred per column. 72[...]

  • Seite 156

    Download Character Generator General Your printer offers you the possibility to design your own characters in normal print mode (DPQ), in NLQ, NLQ proportional, LQ and LQ proportional. These characters can either represent modified characters of the printer ’ s internal character sets or can replace other characters. These special characters, sym[...]

  • Seite 157

    To define download characters it is helpful to do this in a defined way: Draft print quality or letter quality or letter quality proportional characters? Superscript or subscript character, 12 cpi or 15 cpi character (DPQ + LQ)? The desired print mode (DPQ or LQ or LQ proportional) must be selected in the printer. Load characters from ROM to RAM us[...]

  • Seite 158

    Copy ROM into RAM ESC : Data Structure ASCII ESC ":" NUL <n> NUL copy ROM CG hex. 1B 3A 00 <n> 00 dec. 27 58 0 <n> 0 Description This Escape sequence copies the specified character set (see ESC k <n>) from ROM or from the font module to RAM. There the individual characters can be altered by the user. Example 10 REM[...]

  • Seite 159

    Print Raster Graphics ESC . Data Structure ASCII ESC " . " <c> <v> <h> <m> <n L >< n H >< d 1 >...<d x > hex. 1B 2E <c> <v> <h> <m> <n L >< n H >< d 1 >...<d x > dec. 27 46 <c> <v> <h> <m> <n L >< n H >< d[...]

  • Seite 160

    Description of parameters: c = 0 Normal mode (not compressed) c = 1 Data Length Encoding (DLE, compressed) v Vertical resolution in dpi: 360, 180 dpi h Horizontal resolution in dpi: 360, 180 dpi m Vertical dot count (rows of dot graphics) n L , n H Horizontal dot count (columns of dot graphics) Calculating algorithm: n H = INT ( horizontal dot coun[...]

  • Seite 161

    “ a ” Counter specifies the number of data bytes following: (counter byte) + 1 = (number of data bytes to follow) or (counter byte) = (number of data bytes to follow) – 1 128 ≤ (counter byte) ≤ 255 “ b ” Counter specifies the number of times to repeat the next byte of data: 256 – (counter byte) + 1 = (number of times to repeat next [...]

  • Seite 162

    Activate User Defined Character Set ESC % Data Structure ASCII ESC "%" SOH activate user defined character set in RAM hex. 1B 25 01 dec. 27 37 1 ASCII ESC "%" NUL activate normal character set in ROM or Font Card hex. 1B 25 00 dec. 27 37 0 Example Example 30 LPRINT "[ ] ‘ { | } ~" 40 REM Copy ROM CG into Download C[...]

  • Seite 163

    Download Characters ESC & The sequence for the definition of download characters receives different parameters for 9 needle and 24 needle printers. Use the data structure available for your printer. Definition of Draft Characters (9 Needle Printer) Data Structure ASCII ESC & NUL <x> <y> <A> <n 1 >< n 2 >< n [...]

  • Seite 164

    Defining Character (9 Needle Printer) Each downloaded character is defined in a matrix field of 9 rows high and 12 columns wide. It is only possible to use column 1 up to column 11. Column 12 is the space between one character and the next. Therefore it is always left blank by automatically setting dots in column 12 to zero. Also, only 8 of 9 dots [...]

  • Seite 165

    Example (9 needle printer): The following example illustrates the definition of a character, the copyright symbol (a small “ c ” in a circle), instead of the character “ @ ” . The evaluation of the bytes in each column is as follows: R O W S 123456789 1 0 1 1 8 7 6 5 4 3 2 1 COLUMNS 128 64 32 16 8 4 2 1 = 32 =16 = 8 = 56 = 64 = 4 = 68 =128 [...]

  • Seite 166

    Example 10 REM Download Character Definition 20 LPRINT CHR$(27);"x";CHR$(0);:REM select draft print quality 30 LPRINT CHR$(27);"&";CHR$(0);"@@";CHR$(139); 40 LPRINT CHR$(56);CHR$(68);CHR$(146);CHR$(40); 50 LPRINT CHR$(130);CHR$(40);CHR$(130);CHR$(68); 60 LPRINT CHR$(56);CHR$(0);CHR$(0); 70 LPRINT CHR$(27);"%&q[...]

  • Seite 167

    Proportional Data (9 needle printer) Not all characters are the same size. “ W ” is considerably wider than “ i ” . In the proportional print mode, it is necessary to specify how much space a character takes by specifying the first and last printable columns in that character ’ s matrix. Seven bits of the attribute are used for specifying[...]

  • Seite 168

    Just add up the values of the three parts of the byte to get the value of A. 1. Normal = 128 Descender = 0 2. First column is 1 = 0 First column is 2 = 16 First column is 3 = 32 First column is 4 = 48 First column is 5 = 64 First column is 6 = 80 First column is 7 = 96 First column is 8 = 112 3. Last column is 5 = 4 Last column is 6 = 5 Last column[...]

  • Seite 169

    Normal matrix field = 128 First column is 1 = 0 Last column is 12 = 11 Total value of <A> = 139 Normal matrix field = 128 First column is 4 = 48 Last column is 9 = 8 Total value of <A> = 184 EL EL 86 Download Character Generator[...]

  • Seite 170

    Example 10 REM Copy US ASCII caracter set 20 LPRINT CHR$(27);"R";CHR$(0); 30 LPRINT CHR$(27);":";CHR$(0);CHR$(0);CHR$(0); 40 REM Define character into # code and 4 code 50 LPRINT CHR$(27);"&";CHR$(0);"#$"; 60 REM First character without descenter 70 LPRINT CHR$(137); 80 LPRINT CHR$(56);CHR$(68);CHR$(146);[...]

  • Seite 171

    Definition of NLQ Characters (9 needle printer) The definition of NLQ characters is more comprehensive than the definition of draft char- acters, since a larger number of dots is required. User-defined NLQ characters can only be generated in the NLQ mode of the printer. Data structure ASCII ESC "&" NUL <x> <y> <d 0 >[...]

  • Seite 172

    Definition of the Character Grid NLQ characters consist of 18 vertical dots and 12 hori- zontal dots. Within this grid every num- bered line or gap can be oc- cupied, including the lowest and the furthest right line. You should, however, leave one or two columns empty, so that neighboring charac- ters do not touch. For each column of the NLQ charac[...]

  • Seite 173

    The following example shows a user-defined arrow with the list of the individual column values (each 3 byte) which must be transferred to the printer. Data byte 1 00000 2 5 5 000000 Data byte 2 84210 2 5 5 012480 Data byte 3 0000 1 2 8 1 9 2 1 2 8 00000 See next page for the corresponding programming example. 123456789 1 0 1 1 1 2 128 64 32 16 8 4 [...]

  • Seite 174

    Example 100 LPRINT CHR$(27);"x";CHR$(1); 110 LPRINT CHR$(27);"&";CHR$(0);";;"; 120 LPRINT CHR$(0);CHR$(12);CHR$(0); 130 FOR I=1 TO 36 140 READ D 150 LPRINT CHR$(0); 160 NEXT I 170 LPRINT "; ; ; ; ; ;" 180 LPRINT CHR$(27);"%";CHR$(1); 190 LPRINT "; ; ; ; ; ;" 200 LPRINT CHR$(27);"%[...]

  • Seite 175

    24 needle printer Data Structure ASCII ESC "&" NUL <x> <y> <d 0 >< d 1 >< d 2 >n 1 ...n 3 (data first character) <d 0 >< d 1 >< d 2 >n 1 ...n 3 (data second character) ... hex. 1B 26 ... dec. 27 38 ... Description x first character to be redefined y last character to be redefined d 0 lea[...]

  • Seite 176

    For LQ proportional only, it is necessary to define all 41 columns; column 42 should be free. All other print modes use the number of columns as defined by d 1 . Superscript and subscript characters and 15 cpi characters can be assigned needles 1 to 16. The super and sub shifting will be done by corresponding escape sequence. If the same needle is [...]

  • Seite 177

    Example 10 REM Download Character Definition 20 LPRINT CHR$(27);"x1" 30 LPRINT CHR$(27);"&";CHR$(0);"AA"; 40 LPRINT CHR$(5);CHR$(30);CHR$(0); 50 LPRINT CHR$(15);CHR$(255);CHR$(0); 60 LPRINT CHR$(16);CHR$(0);CHR$(128); 70 LPRINT CHR$(32);CHR$(0);CHR$(64); 80 LPRINT CHR$(64);CHR$(0);CHR$(32); 90 LPRINT CHR$(128);CHR$[...]

  • Seite 178

    Miscellaneous Print Data as Characters ESC ( ^ Data Structure ASCII ESC "(" "^" <n L >< n H >< d 1 >...<d n > print data as characters hex. 1B 28 54 <n L >< n H >< d 1 >...<d n > d e c . 2 74 09 4< n L >< n H >< d 1 >...<d n > Description Valid values: 0 ≤[...]

  • Seite 179

    Printing Direction unidirectional for one line ESC < Set/Reset Unidirectional Printing ESC U Data Structure ASCII ESC "<" unidirectional printing for one line ➊ hex. 1B 3C dec. 27 60 ASCII ESC "U" <n> or n set/reset unidirectional printing ➋ hex. 1B 55 <n> or n dec. 27 85 <n> or n Description ➊ This[...]

  • Seite 180

    Half-Speed Printing ESC s Data Structure ASCII ESC "s" <n> hex. 1B 73 <n> dec. 27 115 <n> Description With n=1 the print speed is reduced by half. The result is a lower printer noise level. With n=0 the normal print speed is set. Example 10 REM selects half-speed printing 20 LPRINT "This is full speed print in LQ mo[...]

  • Seite 181

    Single n/180 Inch or n/216 Inch Line Feed ESC J Single n/180 Inch or n/216 Inch Back Feed ESC j Data Structure ASCII ESC "J" <n> n/180 inch line feed ➊ hex. 1B 4A <n> n/216 inch line feed dec. 27 74 <n> ASCII ESC "j" <n> n/180 inch back feed ➋ hex. 1B 6A <n> n/216 inch back feed dec. 27 106 <[...]

  • Seite 182

    Colour Selection ESC r Data Structure ASCII ESC "r" <n> hex. 1B 72 <n> dec. 27 114 <n> Description According to the value specified for n one of the subsequent colours is selected: 0 black 0 black 1 magenta 1 red 2 cyan 2 blue 3 blue 3 violet 4 yellow 4 yellow 5 red 5 orange 6 green 6 green The available colours depend o[...]

  • Seite 183

    The relationship between colour selection sequences and the resulting colours for several ribbon cassettes is shown in the following table: selected colour magenta, cyan, yellow, black ribbon red, green, blue, black ribbon 3 ∗ black, red ribbon black black black black red red *) red red green green **) green ****) yellow yellow green ****) blue b[...]

  • Seite 184

    International Character Sets ESC R Data Structure ASCII ESC "R" <n> select international character set hex. 1B 52 <n> dec. 27 82 <n> Description According to the value specified for n the corresponding international character set can be selected: 0U S A 1 France 2 Germany 3 United Kingdom (UK) 4 Denmark I 5 Sweden 6 Ital[...]

  • Seite 185

    Example 10 REM international character sets 20 LPRINT CHR$(27);"R";CHR$(0) ;"ASCII : ";:GOSUB 160 30 LPRINT CHR$(27);"R";CHR$(1) ;"FRANCE : ";:GOSUB 160 40 LPRINT CHR$(27);"R";CHR$(2) ;"GERMANY : ";:GOSUB 160 50 LPRINT CHR$(27);"R";CHR$(3) ;"UK : ";:GOSUB 160 60 LPRINT [...]

  • Seite 186

    Character Sets ESC t Data Structure ASCII ESC "t" <d 1 > select character table hex. 1B 74 <d 1 > dec. 27 116 <d 1 > Description Valid values: 0 ≤ d 1 ≤ 3, 48 ≤ d 1 ≤ 51 By means of this code sequence the upper half of character code table (dec. 128 to dec. 255) can be selected. default Description d 1 = 0 or 48 [...]

  • Seite 187

    You can either register 0 - 3. Register 3 is only available in ESC/P2 mode. The command ESC ( t can be used to assign character sets to character table (d 1 ). If d 1 = 2 you cannot use user-defined characters defined previously with ESC ( t (see page 105). Example 10 REM upper half of code table 20 LPRINT CHR$(27);"t0"; 30 GOSUB 90 40 LP[...]

  • Seite 188

    Assign Character Table ESC ( t Data Structure ASCII ESC "(" "t" <n L >< n H >< d 1 >< d 2 >< d 3 > assign character table hex. 1B 28 74 <n L >< n H >< d 1 >< d 2 >< d 3 > dec. 27 40 116 <n L >< n H >< d 1 >< d 2 >< d 3 > Description Valid v[...]

  • Seite 189

    d 2 d 3 Table name 26 0 Abicomp 29 16 ISO 8859-1 (Latin 1) 35 0 Roman 8 127 2 ISO 8859-2 (Latin 2) Please refer to the printer ’ s reference manual which character sets are supported. 106 Miscellaneous[...]

  • Seite 190

    Input Data Control Bit 8 = 1 ESC > Input Data Control Bit 8 = 0 ESC = Input Data Control Bit 8 unchanged ESC # Data Structure ASCII ESC ">" set bit 8 = 1 hex. 1B 3E dec. 27 62 ASCII ESC "=" set bit 8 = 0 hex. 1B 3D dec. 27 61 ASCII ESC "#" Removing the settings set for Bit 8 (MSB, most significant bit), hex. 1B 2[...]

  • Seite 191

    Sheet Feeder ESC EM Data Structure ASCII ESC EM "0" deactivate sheet feeder operation hex. 1B 19 30 dec. 27 25 48 ASCII ESC EM "1" select magazine 1 (front) hex. 1B 19 31 dec. 27 25 49 ASCII ESC EM "2" select magazine 2 (rear) hex. 1B 19 32 dec. 27 25 50 ASCII ESC EM "4" activate sheet feeder operation hex. 1[...]

  • Seite 192

    Example 10 REM sheet feeder 20 LPRINT CHR$(27);CHR$(25);"1"; 30 LPRINT "This text is on a form" 40 LPRINT "from magazine one." 50 LPRINT CHR$(12);:REM form feed 60 LPRINT CHR$(27);CHR$(25);"2"; 70 LPRINT "This text is on a form" 80 LPRINT "from magazine two." 90 END Miscellaneous 109[...]

  • Seite 193

    Print Code Area Expansion ON ESC 6 Print Code Area Expansion OFF ESC 7 Data Structure ASCII ESC "6" print ASCII codes 128 to 159 and 255 ➊ hex. 1B 36 dec. 27 54 ASCII ESC "7" suppress ASCII codes 128 to 159 and 255 ➋ hex. 1B 37 dec. 27 55 Description ➊ This code sequence causes the printout of the higher control codes (ASC[...]

  • Seite 194

    Example 10 REM code aera expansion 15 LPRINT CHR$(27);"t1"; 20 LPRINT CHR$(27);"6"; 30 GOSUB 70 40 LPRINT CHR$(27);"7"; 50 GOSUB 70 60 END 70 RESTORE 80 FOR I = 1 TO 12 90 READ D 100 LPRINT CHR$(D); 110 NEXT I 120 LPRINT 130 RETURN 140 DATA 65,66,67,68,69,128,129,130,131,132,133,134 Miscellaneous 111[...]

  • Seite 195

    Activate/Deactivate Graphics Characters ESC m Data Structure ASCII ESC "m" <n> hex. 1B 6D <n> dec. 27 109 <n> Description On receipt of this command, the ASCII codes hex.90 to hex.9F can be output as special graphics characters. Valid values for n are: n = 0 (hex.00) activates the control codes n = 4 (hex.04) activates t[...]

  • Seite 196

    International Code Table ESC I Data Structure ASCII ESC "I" <n> or n hex. 1B 49 <n> or n dec. 27 73 <n> or n Description The ASCII codes hex.00 to hex.1F (dec.0 to dec.31) and hex.80 to hex.9F (dec.128 to dec.159) are as a rule assigned with non-printable characters. These codes can, how- ever, be converted to printable [...]

  • Seite 197

    Printer Initialization ESC @ Data Structure ASCII ESC "@" printer initialization hex. 1B 40 dec. 27 64 Description Printer initialization means that the printer is in the same state as it is after switch-on. All parameters set by means of ESC sequences are cleared. All print data transferred after the last print control code (CR, LF ...) [...]

  • Seite 198

    Activate Paper End Sensor ESC 8 Deactivate Paper End Sensor ESC 9 Data Structure ASCII ESC "8" Deactivate paper end sensor ➊ hex. 1B 38 dec. 27 56 ASCII ESC "9" Activate paper end sensor ➋ hex. 1B 39 dec. 27 57 Description ➊ This sequence deactivates the paper end sensor, so that a cut sheet can be printed all the way to t[...]

  • Seite 199

    Control Codes BEL (hex.07) (dec.7) Sounds acoustic signal. BS (hex.08) (dec.8) Print contents of line buffer, then move the print head one position back. When auto right justification is selected by code sequence ESC a<3>, <BS> will be ignored. CAN (hex.18) (dec.24) When the printer receives this code, the print buffer is deleted. This [...]

  • Seite 200

    DEL (hex.7F) (dec.127) Clear previous characters in the print buffer. ESC (hex.1B) (dec.27) Start character for a subsequent program sequence. FF (hex.0C) (dec.12) When the printer receives this code, it prints the data in the print buffer, then advances the paper from the current print position to the top-of-form position on the next page. The nex[...]

  • Seite 201

    SOH (hex.01) (dec.01) S tart O f H eading. SP (hex.20) (dec.32) Space VT (hex.0B) (dec.11) When the printer receives this code, it prints the data in the print buffer and then advances the paper to the next vertical tab stop position. The next character is printed in the column following the last print position, if no CR is transmitted. The amount [...]

  • Seite 202

    Appendix A Summary of Possible Codes[...]

  • Seite 203

    BEL Bell . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 BS Control Code BS (Backspace) . . . . . . . . . . . . . . 116 CAN Control Code CAN (Cancel) . . . . . . . . . . . . . . . 116 CR Control Code CR (Carriage Return) . . . . . . . . . . . 116 DEL Control Code DEL (Delete) . . . . . . . . . . . . . . . . 116 DC1 set printe r online .[...]

  • Seite 204

    ESC * <5><n1><n2> graphics 72 dpi . . . . . . . . . . . . . . . . . . . . . . 63 ESC * <6><n1><n2> graphics 90 dpi . . . . . . . . . . . . . . . . . . . . . . 63 ESC * <7><n1><n2> graphics 144 dpi . . . . . . . . . . . . . . . . . . . . . 63 ESC * <32> <n1> <n2> graphics 60 dpi[...]

  • Seite 205

    ESC 0 set line feed to 1/8 inch . . . . . . . . . . . . . . . . . . 25 ESC 1 set line feed to 7/72 inch . . . . . . . . . . . . . . . . . 25 ESC 2 set line feed to 1/6 inch . . . . . . . . . . . . . . . . . . 25 ESC 3 <n> s et line feed to n/216 inch . . . . . . . . . . . . . . . . 27 ESC 4 italic mode ON . . . . . . . . . . . . . . . . . . .[...]

  • Seite 206

    ESC g character density 15 cpi . . . . . . . . . . . . . . . . . 21 ESC H double strike print mode OFF . . . . . . . . . . . . . . . 31 ESC I <n> printout of control codes . . . . . . . . . . . . . . . . . 113 ESC i direct print mode, activat e/deactivate . . . . . . . . . . . 112 ESC J <n> line feed n/216 inch . . . . . . . . . . . . .[...]

  • Seite 207

    ESC SP <n> charac ter spacing . . . . . . . . . . . . . . . . . . . . . 24 ESC T super/subscript mode OFF . . . . . . . . . . . . . . . . 29 ESC t <0> ch aracter set se lection (italic) . . . . . . . . . . . . . . . 103 ESC t <1> character set selection (graphics) . . . . . . . . . . . . 103 ESC t <2> character set selection[...]

  • Seite 208

    absolu te horizo ntal step ESC $<n1>< n2> . . . . . . . . . . . . . . . . . . . . . 51 ASCII characte r 0 NUL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 assign cha racter tab le ESC ( t . . . . . . . . . . . . . . . . . . . . . . . . . . 105 back feed n/216 inch ESC j <n> . . . . . . . . . . . . . . . . . . . . . [...]

  • Seite 209

    form feed FF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 form length in inches ESC C NUL <n> . . . . . . . . . . . . . . . . . . . . . 5 form length in lines ESC C <n> . . . . . . . . . . . . . . . . . . . . . . . . 5 graphics 120 dpi ESC * <1><n1><n2> . . . . . . . . . . . . . . . . . . . 63 graphics 1[...]

  • Seite 210

    national character set selection ESC R <n> . . . . . . . . . . . . . . . . . . . . . . . . 101 paper end sensor, activation ESC 9 . . . . . . . . . . . . . . . . . . . . . . . . . . 115 paper end sensor, deactivation ESC 8 . . . . . . . . . . . . . . . . . . . . . . . . . . 115 perfora tion skip ESC N <n> . . . . . . . . . . . . . . . .[...]

  • Seite 211

    set unit ESC ( U . . . . . . . . . . . . . . . . . . . . . . . . . . 62 sheet feeder ESC EM <n> . . . . . . . . . . . . . . . . . . . . . . . 108 Space SP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 super/subscript mode OFF ESC T . . . . . . . . . . . . . . . . . . . . . . . . . . 29 super/subscript mode ON ESC S <n> . .[...]

  • Seite 212

    Appendix B Character Sets Register nur für SNI[...]

  • Seite 213

    The following character sets can be selected via control panel or by Escape sequences, which correspond to the selected emulation mode. The following example shows you how to find the hexadecimal value for a character from the character set table. hex 01234 5 dec 0 NUL SP 0 1 63 24 86 48 0 1 1 1 73 34 96 58 1 2 DC2 2 1 83 45 06 68 2 3 3 1 93 55 16 [...]

  • Seite 214

    Standard Character Set hex 0123456789 ABCD E F dec 0 NUL NUL 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 DC1 DC1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 DC2 DC2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 DC3 DC3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 DC4 DC4 4 20 36 52 68 84 100 116 [...]

  • Seite 215

    International Substitution Table - normal font dec 35 36 64 91 92 93 94 96 123 124 125 126 hex 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E US ASCII French German UK Danish I Swedish Italian Spanish I Japanese Norwegian Danish II Spanish II L.American B-4 Character Sets[...]

  • Seite 216

    International Substitution Table - italic font dec 163 164 192 219 220 221 222 224 251 252 253 254 hex A3 A4 C0 DB DC DD DE E0 FB FC FD FE US ASCII French German UK Danish I Swedish Italian Spanish I Japanese Norwegian Danish II Spanish II L.American Character Sets B-5[...]

  • Seite 217

    Graphics Character Set hex 0123456789 ABCD E F dec 0 NUL NUL 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 DC1 DC1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 DC2 DC2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 DC3 DC3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 DC4 DC4 4 20 36 52 68 84 100 116 [...]

  • Seite 218

    Standard Character Set, extended hex 0123456789 ABCD E F dec 0 NUL 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 DC1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 DC2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 DC3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 DC4 4 20 36 52 68 84 100 116 132 148 16[...]

  • Seite 219

    Graphics Character Set, extended hex 0123456789 ABCD E F dec 0 NUL 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 DC1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 DC2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 DC3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 DC4 4 20 36 52 68 84 100 116 132 148 16[...]

  • Seite 220

    International Code Table hex 0123456789 ABCD E F dec 0 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 DC2 DC2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 DC3 DC3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 DC4 DC4 4 20 36 52 68 84 100 116 132 148 164 18[...]

  • Seite 221

    International Code Table, extended hex 0123456789 ABCD E F dec 0 SP 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 DC2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 DC3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 DC4 4 20 36 52 68 84 100 116 132 148 164 1[...]

  • Seite 222

    Table of Character Width for Proportional Printing On the following pages you will find tables of character widths for proportional printing. The characters are represented by the printout, the decimal and the hexadecimal value. Characters without decimal and hexadecimal codes are international characters or graphics. Please note the International [...]

  • Seite 223

    Proportional width during scaleable font mode The values of the character widths are depending on the selected point size at your printer. The width of the scaleable fonts are based on the width of a proportional 10.5 point character. Calculate the width as follows: (character width) = INT    ( point size ) x ( base width ) 10.5 + 0.5  [...]

  • Seite 224

    24 Needle Printer Code Char. Width in 1 ⁄ 360 " Code Char. Width in 1 ⁄ 360 " Code Char. Width in 1 ⁄ 360 " hex. dec. hex. dec. hex. dec. 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 30/20 18/12 30/20 30/20 30/20[...]

  • Seite 225

    Code Char. Width in 1 ⁄ 360 " Code Char. Width in 1 ⁄ 360 " Code Char. Width in 1 ⁄ 360 " hex. dec. hex. dec. hex. dec. 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 113 114 115 116 117 118 119 120 121 122 123 124 125 126 36/24 30/20 30/20 24/16 36/24 36/24 42/28 30/20 36/24 30/20 24/26 18/12 24/16 30/20 36/24 36/24 30/20 30/20 30/[...]

  • Seite 226

    Code Char. Width in 1 ⁄ 360 " Code Char. Width in 1 ⁄ 360 " Code Char. Width in 1 ⁄ 360 " hex. dec. hex. dec. hex. dec. C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 30 30 30 30 30 30 30[...]

  • Seite 227

    9 Needle Printer Code Character Width in 1 ⁄ 120 " Code Character Width in 1 ⁄ 120 " Code Character Width in 1 ⁄ 120 " hex. dec. hex. dec. hex. dec. 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 12 5 8 12 12 12 12[...]

  • Seite 228

    Code Character Width in 1 ⁄ 120 " Code Character Width in 1 ⁄ 120 " Code Character Width in 1 ⁄ 120 " hex. dec. hex. dec. italic graph. hex. dec. italic graph. 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 11 11 12 11 12 12 12 10 12 10 9 5 9 12 – 12 11 12 12 12 12 12 [...]

  • Seite 229

    Code Character Width in 1 ⁄ 120 " Code Character Width in 1 ⁄ 120 " Code Character Width in 1 ⁄ 120 " hex. dec. italic graph. hex. dec. italic graph. hex. dec. italic graph. B6 B7 B8 B9 BA BB BC BD BE BF C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF C0 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 20[...]

  • Seite 230

    “All rights reserv ed. Translations, reprinting or copying by any means of this manual complete or in part or in any different form requires our explicit approval. We reserve the right to make changes to this manual without notice. All care has been taken to ensure ac curacy of inf ormation contained in this manual. However, we cannot acc ept res[...]

  • Seite 231

    Programmer’s Reference Tally ANSI ( MTPL ) Emulation[...]

  • Seite 232

    Table of Contents Description of MTPL-Sequences Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Paper and Text Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Form Lengt h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Turn ON Positioning Un it Mode (SM) . . . . . . . . . . . [...]

  • Seite 233

    Line Spac ing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Vertical Spacin g (SVS) . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Line Dens ity 6 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Line Dens ity 8 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Set Line Spacing (SLS) .[...]

  • Seite 234

    Horizonta l Tab Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Set Horizon tal Tab Stop at Curren t Position . . . . . . . . . . . . . . . . 45 Horizonta l Tab Stop s ON . . . . . . . . . . . . . . . . . . . . . . . . . 46 Horizonta l Tab Stop s OFF (TBC) . . . . . . . . . . . . . . . . . . . . . 46 Line Fe ed . . . . . . . . . . .[...]

  • Seite 235

    Color Selectio n (Option) . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Input Da ta Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Sheet Fee der/Paper way . . . . . . . . . . . . . . . . . . . . . . . . . 76 Eject Fo rm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Reset to I nitial State (RIS) [...]

  • Seite 236

    Appendix A Summary of Possib le Codes Sorted by S equences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2 Sorted by Func tions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-8 Appendix B Character Sets Standard Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-2 International Substit ution Table –[...]

  • Seite 237

    Description of MTPL-Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Miscellaneous[...]

  • Seite 238

    Introduction Regardle ss of the sp ecific MTPL sequence s of your pr inter, th is User’s Manua l describes the sum of a ll MTPL sequen ces and con trol code s. The only differentiat ion is made be - tween 9 and 24 ne ed le printers as we ll as the maxim um possible p ap e r width of 8 inches (80 column prin ter) or 1 3.6 inches (132 column print [...]

  • Seite 239

    CSI means “ C ontrol S equence I ntroducer” and is described by the co de 9B (hex.) or ESC [ : 7-Bit-environment ➛ hex. 1B, hex. 5B (= ESC [ ) 8-Bit-environment ➛ hex. 9B It is sensible to use only ESC [ as “Control Sequence Introducer” if MTPL is used associated with a ny other pr inter emulat ion. The last character ( in the following[...]

  • Seite 240

    Character explanation and sym bol description Lower case “ ” Informations Sequence o nly applies for 9 needle printer Sequence only applies f or 24 nee dle printe r In the follo wing you will find an example fo r a MTPL sequen ce with a Basic pr ogramming example: Set to a f orm lengt h of 72 li nes: MTPL-Sequence CSI n with n=72 t Transmission[...]

  • Seite 241

    Paper and Text Formatting Form Length CSI .. . t Data Sructure ASCII CSI n "t" [A] set form lenght in line s hex. 9B n 74 dec. 155 n 116 Description PUM turned OFF: n = 1...132 lines at a line spacing of 1 ⁄ 6 inch (6 lpi) = 1...176 lines at a line spacing of 1 ⁄ 8 inch (8 lpi) This MTPL-seque nce sets the f orm length t o n times the[...]

  • Seite 242

    Example 10 REM form length 20 LPRINT CHR $(27);"[4t"; 30 FOR F=1 TO 2 40 FOR L=1 TO 3 50 LPRINT "le ngth 4:form";F;" line"; L 60 NEXT L:LPR INT CHR$(12);:NEXT F 70 LPRINT 80 LPRINT CHR $(27);"[3t"; 90 FOR F=1 TO 3 100 FOR L=1 TO 2 110 LPRINT "le ngth 3:form";F;" line"; L 120 NEXT L:LPR INT[...]

  • Seite 243

    Turn ON Positioning Unit Mode (SM) CSI 11 h Turn OFF Positioning Unit Mode (RM) CSI 11 Data Stru cture ASCII CSI "1" "1" "h" [A] turn PUM ON hex. 9B 31 31 68 dec. 155 49 49 104 ASCII CSI "1" "1" " " [A] turn PUM OFF hex. 9B 31 31 69 dec. 155 49 49 105 Description PUM = P ositioning U nit M[...]

  • Seite 244

    Select Size Unit (SSU) CSI ... SP I Data Stru cture ASCII CSI n SP "I" [B] select size unit hex. 9B n SP 4 9 dec. 155 n SP 7 3 Description For n th e following param eters are ava ilable: n hex. dec. size unit 0 30 48 De cipoints ( 1 ⁄ 720 inch = 0,0353 m m) 1 31 49 Millimeters 2 32 50 De cipoints (0,0 353 mm) 3 33 51 De cididots (0,0 3[...]

  • Seite 245

    Set Top and Bottom Margin CSI ... r Clear Top and Bottom Margin CSI r Data Stru cture ASCII CSI n 1 ";" n 2 "r" [A] set top and bo ttom margin hex. 9B n 1 3B n 2 72 dec. 155 n 1 59 n 2 114 ASCII CSI "r" [A] clear top a nd bottom m argin hex. 9B 72 dec. 155 114 Description n 1 specifies the va lue of the top m argin n 2[...]

  • Seite 246

    Example 10 REM top and bottom margin 20 LPRINT CHR $(27);"[6t";:REM form le ngth 30 LPRINT CHR $(27);"[2;5r":REM set ma rgins 40 FOR F=1 TO 2 50 FOR L=2 TO 5 60 LPRINT "fo rm";F;" line ";L 70 NEXT L:NEX T F 80 LPRINT 90 LPRINT CHR $(27);"[0;0r";:REM clear margins 100 FOR F=1 TO 2 110 FOR L=1 TO 6 12[...]

  • Seite 247

    Set Left and Right Margin CSI ... s Clear Left and Right Margin CSI s Data Stru cture ASCII CSI n 1 ";" n 2 "s" [A] set left and r ight margin hex. 9B n 1 3B n 2 73 dec. 155 n 1 59 n 2 115 ASCII CSI "s" [A] clear left and r ight margin hex. 9B 73 dec. 155 115 Description n 1 specifies the value of the left margin n 2 s[...]

  • Seite 248

    If only one margin is changed, th e ot he r marg in will be re set to defa ult valu e. If there are any logical problems (for exam ple, left margin > rig ht margin), the seq uence is ignored. Example 10 REM left and right m argin 20 WIDTH "LPT1 :",255 30 LPRINT CHR$ (27);"[10;53s"; 40 LPRINT "Now the left margin is set t[...]

  • Seite 249

    Set Line Home (SLH ) CSI ... SP U Set Line Limit (SLL) CSI ... SP V Data Stru cture ASCII CSI n SP "U" [A] set line home ➊ hex. 9B n 20 55 dec. 155 n 32 85 ASCII CSI n SP "V" [A] set line limit ➋ hex. 9B n 20 55 dec. 155 n 32 85 Description n = 1...maxi mal print area ➊ Default setting: Physical left marg in of me diu m or[...]

  • Seite 250

    Right Justification ON CSI 8 y Centering ON CSI 9 y Right Justification and Centering OFF CSI 10 y Right Justification and Centering OFF CSI : y Data Stru cture ASCII CSI n "y" justification hex. 9B n 79 dec. 155 n 121 Description For n the fo llowing characters are available: n hex. d e c . justification 8 38 56 [A] right justification O[...]

  • Seite 251

    Character Spacing Spacing Increment (SPI) CSI . .. SP G Data Stru cture ASCII CSI n 1 ";" n 2 SP "G" [B] [C] set spacing in crement hex. 9B n 1 3B n 2 20 47 dec. 155I n 1 59 n 2 32 71 Description n 1 specifies the line spa cing n 2 specifies the charact er spacing The unit is expresse d in decipoin ts or other units de fined by [...]

  • Seite 252

    Horizontal Spacing CSI .. . w Data Stru cture ASCII CSI n "w" [A] set cpi hex. 9B n 77 dec. 155 n 119 Description For n th e following param eters are ava ilable: n h e x . dec. horizontal spacin g 0 30 48 5 cpi 1 31 49 6 cpi 2 32 50 7,5 cp i 3 33 51 [B] [C] 8,6 cpi 4 34 52 10 cp i 5 35 53 12 cpi 6 36 54 15 cpi 7 37 55 [B] [C] 17,1 cpi 11[...]

  • Seite 253

    Example 10 REM cha racter densities 20 LPRINT CHR $(27);"[4wthis is 10 cpi , "; 30 LPRINT CHR $(27);"[12wthis is 10 cp i (high resolution ), " 40 LPRINT CHR $(27);"[5wthis is 12 cpi , "; 50 LPRINT CHR $(27);"[6wthis is 15 cpi , "; 60 LPRINT CHR $(27);"[7wthis is 17.1 c pi, "; 70 LPRINT CHR $(27);&qu[...]

  • Seite 254

    Horizontal Character Spacing (SHS) CSI ... SP K Data Stru cture ASCII CSI n SP "K" [A] set cpi hex. 9B n 20 4B dec. 155 n 32 75 Description For n th e following param eters are ava ilable: n hex. dec. character spacing 0 30 48 10 cpi 1 31 49 6 cpi 2 32 50 12 cpi 3 33 51 15 cpi With this seque nce the horizon tal character spacing is defin[...]

  • Seite 255

    Character Spacing (SCS) CSI ... SP g Data Stru cture ASCII CSI n SP "g" [A] set character sp acing hex. 9B n 20 67 dec. 155 n 32 103 Description n specifies the character sp acin g The unit is either decipoints or depends on the SSU selection (S elect Size Unit, see page 8). The character size will n ot be change d. Character Sp acing 19[...]

  • Seite 256

    Additional Character Spacing (SACS) CSI ... SP Data Stru cture ASCII CSI n SP " " [A] set additional character spa cing hex. 9B n 20 5C dec. 155 n 32 92 Description n specifies the additional cha racte r sp acing The units ar e either decipoints o r defined by SSU (Select Size Unit, see pa ge 8). This function en larges the inter c har[...]

  • Seite 257

    Reduced Ch aracter Spacing (SRCS) CSI ... SP f Data Stru cture ASCII CSI n SP "f" [B] set reduced character spacing hex. 9B n 20 66 dec. 155 n 32 102 Description n specifies the reduced chara cte r spacing The units ar e either decipoints o r defined by SSU (Select Size Unit, see pa ge 8). This function reduces th e inte r chara cte r spa[...]

  • Seite 258

    Horizontal Motion Index (HMI) CSI ... p Data Sructure ASCII CSI n "p" [C] set HMI hex. 9B n 70 dec. 155 n 112 Description n = 0... 20 The normal character density is enlarged by n ∗ 1 ⁄ 120 inch. If n is set to zero (default setting), HMI is disabled. Example 10 REM horizontal motio n index 20 LPRINT "thi s is normal width" [...]

  • Seite 259

    Horizontal Step (Microspace) CSI ... q Data Stru cture ASCII CSI n "q" [C] set horizontal step hex. 9B n 71 dec. 155 n 113 Description n = 1... 255 The space between ch aracters is enlarge d by n ∗ 1 ⁄ 120 inch at the cu rrent print position. Examples: CSI q enlarging c haracter space by n ∗ 1 ⁄ 120 inch CSI 10 q inserts a 1 ⁄ 1[...]

  • Seite 260

    Line Spacing Vertical Spacing (SVS) CSI ... SP L Data Stru cture ASCII CSI n SP "L" [A] set vertical spacing (lpi) hex. 9B n 20 4C dec. 155 n 32 76 Description For n th e following param eters are ava ilable: n hex. dec. vertical spacin g 03 0 4 8 6 l p i 13 1 4 9 4 l p i 23 2 5 0 3 l p i 33 3 5 1 1 2 l p i 43 4 5 2 8 l p i 93 9 5 7 2 l p[...]

  • Seite 261

    Line Density 6 lpi CSI 3 z Line Density 8 lpi CSI 4 z Data Stru cture ASCII CSI "3" "z" [C] line density 6 lpi (= line spa cing 1/6 inch ) hex. 9B 33 7A dec. 155 51 122 ASCII CSI "4" "z" [C] line density 8 lpi (= line spa cing 1/8 inch ) hex. 9B 34 7A dec. 155 52 122 Description These sequen ce s set th e lin[...]

  • Seite 262

    Set Line Spacing (SLS) CSI ... SP h Data Stru cture ASCII CSI n SP "h" [A] set line spacing hex. 9B n 20 68 dec. 155 n 32 104 Description n specifies the line spacing The unit is either decipoints or depends on the SSU selection (S elect Size Unit, see page 8). Note also the sequen ce SPI (Spacing Incr ement, see page 15) . 26 Line Spaci [...]

  • Seite 263

    Character Styling Superscript ON CSI 0 z Subscript ON CSI 1 z Microscript ON CSI 10 z Super-/Sub-/Microscript OFF CSI 2 z Data Stru cture ASCII CSI n "z" [A] character styling hex. 9B n 7A dec. 155 n 122 Description For n th e following param eters are ava ilble: n h e x . dec. character styling 0 30 48 super script ON ➊ 1 31 49 su bscr[...]

  • Seite 264

    Example 10 REM super/sub/micro script 20 LPRINT "E= M*C"; 30 LPRINT CHR $(27);"[0z"; 40 LPRINT "2" ; 50 LPRINT CHR $(27);"[2z"; 60 LPRINT " i s Einsteins most famous formula." 70 LPRINT "H" ; 80 LPRINT CHR $(27);"[1z";"2";CHR$(27) ;"[2z"; 90 LPRINT "O is [...]

  • Seite 265

    Double Height ON (Upper Half) CS I 12 z Double Height ON (Lower Half) CSI 13 z Double Height OFF CSI 2 z Data Stru cture ASCII CSI "1" "2" "z" [C] doubl e height ON (upper half ) ➊ hex. 9B 31 32 7A dec. 155 49 50 122 ASCII CSI "1" "3" "z" [C] double he ight ON (lower half) ➊ hex. 9B 31[...]

  • Seite 266

    Example 10 REM double height 20 LPRINT "Fo r ";CHR$(27);"[12zHeadli nes ";CHR$(27);"[2 z"; 30 LPRINT "pr inting in double" 40 LPRINT CHR $(27);"[13z Headlines ";CHR$(27);"[2z" 50 LPRINT "he ight is recommended" 60 END 30 Chara cter Styling[...]

  • Seite 267

    Print Quality CSI ... SP X CSI ... y Data Stru cture ASCII CSI n SP "X" [A] select print quality ➊ hex. 9B n 20 58 dec. 155 n 32 88 ASCII CSI n "y" select p rint quality ➋ hex. 9B n 79 dec. 155 n 121 Description ➊ This seq u en ce defin e s the prin t quality. Print thro u gh p ut ch an ge s with the print qua lity. For n [...]

  • Seite 268

    Example 10 REM print quality 20 LPRINT CHR$ (27);"[0yThis is draft q uality "; 30 LPRINT CHR$ (27);"[1yand this is NLQ printing." 40 LPRINT CHR$ (27);"[5yThis is NLQ wit h 12 cpi." 50 END 32 Chara cter Styling[...]

  • Seite 269

    Select Types tyle CSI ... m Data Stru cture ASCII CSI n "m" [A] se lect typestyle hex. 9B n 6D dec. 155 n 109 Description This sequen ce de fin es the typestyle . For n the following parameters a re available: n hex. dec. typestyle (number is printer dependent) 10 31 30 49 48 font 0 11 31 31 49 49 font 1 12 31 32 49 50 font 2 13 31 33 49 [...]

  • Seite 270

    Example Valid for most MTPL prin ters. Fontregister Font 0D r a f t 1 NLQ Courier 2L Q C o u r i e r 3 NLQ Sans Serif 4 L Q Sans Serif 5L Q R o m a n 6L Q S c r i p t 7 LQ Prestige 8 LQ OCR-B 9 LQ OCR-A 34 Chara cter Styling[...]

  • Seite 271

    Emphasized Mo de ON CSI = z Emphasized Mo de OFF CSI > z Data Stru cture ASCII CSI "=" "z" [C] emphasized mode ON hex. 9B 3D 7A dec. 155 61 122 ASCII CSI ">" "z" [C] emphasized mode OFF hex. 9B 3E 7A dec. 155 62 122 Description During prin tin g in empha size d mod e , each do t is prin te d twice , sli[...]

  • Seite 272

    Italic Mode ON CSI 3 m Italic Mode OFF CSI 23 m Data Stru cture ASCII CSI "3" "m" [A] italic mode ON hex. 9B 33 6D dec. 155 51 109 ASCII CSI "2" "3" "m" [A] italic mode OFF hex. 9B 32 33 6D dec. 155 50 51 109 The sequ ence CSI 0 m resets all CSI...m- sequences! A maximum of 16 CSI...m -sequences can[...]

  • Seite 273

    Proportional Mode ON (SGR) CSI 26 m CSI 2 y Proportional Mode OFF CSI 50 m CSI 7 y Data Stru cture ASCII CSI "2" "6" "m" [A] proportional mode ON hex. 9B 32 36 6D dec. 155 50 54 109 ASCII CSI "2" "y" [C] proportional mode ON hex. 9B 32 79 dec. 155 50 121 ASCII CSI "5" "0" "m[...]

  • Seite 274

    Example 10 REM proportional spa cing 20 LPRINT CHR$ (27);"[2y"; 30 LPRINT "thi s is an example with pro portional spacing" 40 LPRINT CHR$ (27);"[7y"; 50 LPRINT "thi s is an example with nor mal spacing" 60 END 38 Chara cter Styling[...]

  • Seite 275

    Underline Mode ON (SGR) CSI 4 m Underline Double Mode CSI 21 m Underline Mode OFF CSI 24 m Data Stru cture ASCII CSI "4" "m" [A] underline mode ON ➊ hex. 9B 34 6D dec. 155 52 109 ASCII CSI "2" "1" "m" [A] underline double mode hex. 9B 32 31 6D dec. 155 50 49 109 ASCII CSI "2" "4&quo[...]

  • Seite 276

    Overline Mode ON (SGR) CSI 53 m Overline Mode OFF CSI 55 m Data Stru cture ASCII CSI "5" "3" "m" [A] overline mode ON hex. 9B 35 33 6D dec. 155 53 51 109 ASCII CSI "5" "5" "m" [A] overline mode OFF hex. 9B 35 35 6D dec. 155 53 53 109 Description This seq uen ce switch es the automatic ove [...]

  • Seite 277

    Double Strike ON CSI 9 w Double Strike OFF CSI 8 w Data Stru cture ASCII CSI "9" "w" [B] [C] double str ike print mode ON hex. 9B 39 77 dec. 155 57 119 ASCII CSI "8" "w" [B] [C] double strike print mod e OFF hex. 9B 38 77 dec. 155 56 119 Description In doub le str ike mo de chara ct ers are printe d twice in [...]

  • Seite 278

    Graph i c S ize Select ion (G SS) CSI ... SP C Graphic Size Modification (GSM) CSI ... SP B Data Stru cture ASCII CSI n SP "C" [B] graphic size selection ➊ hex. 9B n 20 43 dec. 155 n 32 67 ASCII CSI n 1 ;n 2 SP "B" [A] graphic size modification ➋ hex. 9B n 1 3B n 2 20 42 dec. 155 n 1 59 n 2 32 66 Description ➊ n specifies [...]

  • Seite 279

    Font Designation (FNT) CSI ... SP D Data Stru cture ASCII CSI n 1; n 2 SP "D" [A] designa te font hex. 9B n 1 3B n 2 20 44 dec. 155 n 1 59 n 2 32 68 Description n 1 = fo nt number 0. ..9 n 2 = identificatio n (ID) o f the desire d font For n 2 the following pa ra meters are available: n 2 hex. dec. identification 0 30 48 Roman 1 31 49 San[...]

  • Seite 280

    Font attributes, e. g. “bold” can be specified afte r designation thr ough correspo nding ESC sequences. Technical Details Font Designation Codes The use of the font designation code CSIn 1 ;n 2 space D needs further exp lan ation. (Note : CSI is 9B; you can u se ESC[, 1B 5BH, inste ad if you wish.) The parameter n 1 Register to use. This param[...]

  • Seite 281

    Print Positioning Horizo ntal Tab St op HT Data Stru cture ASCII HT [A] horizo ntal tab stop hex. 09 dec. 9 Description The HT-Cod e moves the active print po sition to the next horizon tal tabulation s top on the same line. If there is no tab stop re acha ble - no more tab sto ps ar e set or the next tab stop is be yond the d efined rig ht margin [...]

  • Seite 282

    Horizontal Tab Stops ON CSI ... u ESC H Horizontal Tab Stops OFF (TBC) CSI ... g Data Stru cture ASCII CSI n 1 "u" [A] set horizontal tab stop ➊ hex. 9B n 1 75 dec. 155 n 1 117 ASCII ESC "H" [C] set horizonta l tab stop at current po sition ➋ hex. 1B 48 dec. 27 72 ASCII CSI n "g" [A] clear all horizontal ta b stops[...]

  • Seite 283

    ➌ With the seque nce CSI n g for n the following pa ra mete rs ar e ava ila ble: n hex. dec. function 0 30 48 clear horizontal tab stop a t current po sition 2 32 50 clear all horizontal tab stops in current line 3 33 51 clear all horizontal tab stops in all lines Examples: CSI g clear horizontal tab sto p at current position CSI 3;4 g clear all [...]

  • Seite 284

    Example 1 10 REM horizonta l tabs 20 LPRINT CHR $(27);"[4w";:REM 10 cpi 30 LPRINT CHR $(27);"[10;20;30u"; 40 LPRINT "12 345678901234567890123456 7890123456789" 50 GOSUB 110 60 LPRINT CHR $(27);"[0w";:REM 5 cpi 70 GOSUB 110 80 LPRINT CHR $(27);"[11w";:REM 20 cpi 90 GOSUB 110 100 END 110 LPRINT CHR $([...]

  • Seite 285

    Line Feed LF Data Stru cture ASCII LF [A] line feed hex. 0A dec. 10 Description When the printer r eceives this code , it prints all t he data in t he print buff er, then advan ces the paper one line. The LF code ca n also give a ca rriage return if a utomatic carria ge return is selected. If no CR is given , the next p rinting sta rts in the colu [...]

  • Seite 286

    Vertical Tab Stop VT Data Stru cture ASCII VT vertical tab stop hex. 0B dec. 11 Description When the printer r eceives this code , it prints all t he data in t he print buff er, then advan ces the pape r to the next vertical ta b stop positio n. The VT code can a lso give a carria ge return if aut omatic carriag e return is sele cted (refer to Oper[...]

  • Seite 287

    Set Vertical Ta b Stop at Current Position VTS Data Stru cture ASCII VTS [A] set ve rtical tab s top hex. 8A dec. 138 Description This code sets an horizonta l tab stop a t the current vertical position . Vertical Index IND Data Stru cture ASCII IND [A] vertical index hex. 84 dec. 132 Description The code IND moves the active print p osition to the[...]

  • Seite 288

    Vertical Tab Stops ON CSI .. . v Vertical Tab Stops OFF (TBC) CSI 1 g CSI 4 g Data Stru cture ASCII CSI n "v" [A] set vertical tab stop ➊ hex. 9B n 76 dec. 155 n 118 ASCII CSI "1" "g" [A] clear all vertic al tab stops at current position hex. 9B 31 67 dec. 155 49 103 ASCII CSI "4" "g" [A] clear al[...]

  • Seite 289

    A vertical tabulation is executed by the VT control code (hex.0B, dec.11); also see page 50, Vertical Tab Stop. Example 10 REM vertical tabs 20 LPRINT CHR$ (27);"[10t";:REM set for m length 30 LPRINT CHR$ (27);"[4g";:REM clear al l vtabs 40 LPRINT CHR$ (27);"[3;5;9v"; 50 LPRINT CHR$ (11);"this is the first vertica[...]

  • Seite 290

    Horizontal Posititon Absolute (HPA) CSI ... ’ Data Stru cture ASCII CSI n " ‘ " [A] set horizont al position abso lute hex. 9B n 60 dec. 155 n 96 Description n = 1 (default settin g) = ∧ current lef t margin This sequence move s the print h ead to a h orizontal print position absolu te. The unit depends o n PUM (Positio ning Unit M [...]

  • Seite 291

    Horizontal Position Relativ e (HPR) CSI ... a Data Stru cture ASCII CSI n "a" [A] set horizontal position r elative hex. CSI n 61 dec. CSI n 97 Description n = 1 (default settin g) This sequence moves the p rint head to th e right. The unit depends o n PUM (Positio ning Unit M ode) and is either char acter posit ions or defined by the SSU[...]

  • Seite 292

    Horizontal Position Back ward (HPB) CSI ... j Data Stru cture ASCII CSI n "j" [A] set horizontal positio n backward hex. 9B n 6A dec. 155 n 106 Description n = 1 (default settin g) This sequence moves the pr int head to th e left. The unit depends o n PUM (Positio ning Unit M ode) and is either char acter posit ions or defined by the SSU-[...]

  • Seite 293

    Vertical Position Absolute (VPA) CSI ... d Data Stru cture ASCII CSI n d [A] set vertical position absolute hex. 9B n 64 dec. 155 n 100 Description n = 1 (default settin g) = ∧ current to p margin This sequence move s the print h ead to a ve rtical print p osition absolute . The unit de pends o n PUM (Positio ning Unit M ode) and is either lines [...]

  • Seite 294

    Vertical Position Re lative (VPR) CSI ... e Data Stru cture ASCII CSI n "e" [A] set vertical position relative hex. 9B n 65 dec. 155 n 101 Description n = 1 (default settin g) This sequence move s the print h ead lines or ve rtical positions down. The unit de pends o n PUM (Positio ning Unit M ode) and is either lines o r defined by the S[...]

  • Seite 295

    Vertical Position Ba ckward (VPB) CSI ... k Data Stru cture ASCII CSI n "k" [A] set vertical position backward hex. 9B n 6B dec. 155 n 107 Description n = 1 (default settin g) This sequence move s the print h ead lines or ve rtical positions upward. The unit de pends o n PUM (Positio ning Unit M ode) and is either lines o r defined by the[...]

  • Seite 296

    Horizontal and Vertical Po sition Absolute (HVP) CSI ... f Data Stru cture ASCII CSI n 1 ;n 2 "f " [B] [C] set horizontal and vertical position absolute hex. 9B n 1 3B n 2 66 dec. 155 n 1 59 n 2 102 Description n 1 = vertica l position n 2 = horizonta l position This sequence move s the print h ead to a h orizontal and vertical print p os[...]

  • Seite 297

    Backspace BS Data Stru cture ASCII BS [A] Backspace hex. 08 dec. 8 Description After r eceiving this code the content of line buffe r is printed out . Then, the prin t head is mo ved one posit ion to the left (d epending on the current v alues of cpi). Carriage Return CR Data Stru cture ASCII CR [A] carriage retu rn hex. 0D dec. 13 Description When[...]

  • Seite 298

    Form Feed FF Data Stru cture ASCII FF [A] form feed hex. 0C dec. 12 Description When the printe r receives this code, it p rints the da ta in the print buffe r, then adva nces the pape r from th e current p ritn position t o the to p-of-form position on t he next p age. Cut sheet: Forms are ejecte d. The fir st print position o n the following pape[...]

  • Seite 299

    Partial Line Down PLD Data Stru cture ASCII PLD [A] partial line down hex. 8B dec. 139 Description If the p receding characte r is in normal posit ion, PLD moves the a ctive position do wn to a sufficient d istance to giv e the following characters t he appear ence of b eing subscrip ted. If the preceding ch aracter is in a su perscript pos ition, [...]

  • Seite 300

    Reverse Inde x RI Data Stru cture ASCII RI [B] reverse index hex. 8D dec. 141 Description The code RI moves the active position to the preced ing line. An CR optio n is not permitt ed. Next L ine NEL Data Stru cture ASCII NEL [B] next line hex. 85 dec. 133 Description The code NEL moves th e act iv e po sitio n to the left ma rgin of the nex t line[...]

  • Seite 301

    Graphics Graphic Modes ESC % ... CSI 6 z CSI 5 z Data Stru cture ASCII ES C "%" n n 1 ;n 2 ; DATA [C] set dpi for graphics hex. 1B 25 n n 1 3B n 2 3B DATA dec. 27 37 n n 1 59 n 2 59 DATA ASCII CSI "6" "z" [C] graphics invers hex. 9B 36 7A dec. 155 54 122 ASCII CSI "5" "z" [C] graphics unchanged hex.[...]

  • Seite 302

    The vertical resolut ion is 72 dpi. The graphics image is printed vertically closed at a line feed of 80 ⁄ 720 inch. (Also see the sequences Spacing Incremen t (SPI), page 15, and Set Line Spacing (SLS), page 26. Example: CSI 80 ; SP G ). Example for calculation of n 1 and n 2 : The length of gra phics is 80 by tes. n 2 = number of bytes divided [...]

  • Seite 303

    Relation ship between graphics d ata and needles: Needle Data b yte 1 • Bit 7 2 • Bit 6 3 • Bit 5 4 • Bit 4 5 • Bit 3 6 • Bit 2 7 • Bit 1 8 • Bit 0 Example 1 10 REM bit image print 20 WIDTH "LPT 1:",255 30 LPRINT CHR $(27);"%3";CHR$(80);CHR$ (0); 40 GOSUB 100: LPRINT " 60 dpi" 50 LPRINT CHR $(27);"[...]

  • Seite 304

    Example 2 10 REM bit image print 20 WIDTH "LPT 1:",255 30 LPRINT CHR $(27);"%3";CHR$(10);CHR$ (0); 40 GOSUB 130: REM 60 dpi 50 LPRINT CHR $(27);"%4";CHR$(10);CHR$ (0); 60 GOSUB 130: REM 120 dpi 70 LPRINT CHR $(27);"[6z"; 80 LPRINT CHR $(27);"%3";CHR$(10);CHR$ (0); 90 GOSUB 130: REM reverse 60 dpi 10[...]

  • Seite 305

    Miscellaneous Load Menu CSI ... SP q Data Stru cture ASCII CSI n SP "q" [B] loa d menu hex. 9B n 20 71 dec. 155 n 32 113 Description For n th e following param eters are ava ilable: n hex. dec. Load ing of 0 30 48 Default menu 1 31 49 Menu No. 1 2 32 50 Menu No. 2 3 33 51 Menu No. 3 4 34 52 M enu No. 4 (rese rved) Up to 3 (4 ) various con[...]

  • Seite 306

    Automatic Gap Adjustment (AGA) CSI ... + z Direct Setting of the Print Head Dis tance CSI ... + y Data Stru cture ASCII CSI n "+" "z" [B] automatic gap adjustment ➊ hex. 9B n 2B 7A dec. 155 n 43 122 ASCII CSI n "+" "y" [B] direct setting of the print head dista nce ➋ hex. 9B n 2B 79 dec. 155 n 43 121 Desc[...]

  • Seite 307

    Paper Handling CSI Ps1 Ps2 Ps3 Pn4 Pn5 + v Data Stru cture ASCII CSI Ps1 P s2 Ps3 Pn4 Pn5 "+" "v" hex. 9B Ps1 Ps2 Ps3 Pn4 Pn5 2B 76 dec. 155 Ps1 Ps2 Ps3 Pn4 Pn5 43 118 Description Ps1 missing or 0: Printhead does not lift off at the fold 1: Print head lifts off at the fold Ps2 missing or 0: Printhead position at left margin duri[...]

  • Seite 308

    Color Selection (Option) CSI ... m Data Stru cture ASCII CSI n "m" [A] se t colors hex. 9B n 6D dec. 155 n 109 Description For n th e following param eters are ava ilable: n hex. dec. color selection 0 30 48 reset color 1 31 49 bold or increased in tensity 2 32 50 alternate color or decreased inten sity ➊ 22 32 32 50 50 cancels function[...]

  • Seite 309

    The relationship betwe en colo r select ion sequenc es an d the resu ltin g colo rs for seve ral ribbon cassette s is shown in th e following t able: selected color yellow, ma genta, cyan, black (YMCK) red, gree n, blue, black (RGBK) 3 ∗ black, red black black black black red red *) red red green green **) green ****) yellow yellow green ****) bl[...]

  • Seite 310

    Input Data Control CSI ... z Data Stru cture ASCII CSI "9" "z" [C] set bit 8 = 1 ➊ hex. 9B 39 7A dec. 155 57 122 ASCII CSI "8" "z" [C] set bit 8 = 0 ➋ hex. 9B 38 7A dec. 155 56 122 ASCII CSI "7" "z" [C] bit 8 unchanged hex. 9B 37 7A dec. 155 55 122 Description ➊ By me ans of this M T[...]

  • Seite 311

    Example 10 REM input data contr ol 20 LPRINT CHR $(27);"[7z"; 30 GOSUB 90 40 LPRINT CHR $(27);"[9z"; 50 GOSUB 90 60 LPRINT CHR $(27);"[8z"; 70 GOSUB 90 80 END 90 FOR I=97 T O 103:LPRINT CHR$(I);:NE XT I 100 FOR I=161 TO 167:LPRINT CHR$(I);:N EXT I 110 LPRINT:LPR INT 120 RETURN Miscellaneous 75[...]

  • Seite 312

    Sheet Feeder/Paperway CSI ... { Eject Form CSI 2 J Data Stru cture ASCII CSI n ; n 1; n 2 "{" [A ] set she ed f eeder hex. 9B n 3B n 1 3B n 2 7B dec. 155 n 59 n 1 59 n 2 123 ASCII CSI "2" "J" [C] eject form ➊ hex. 9B 32 4A dec. 155 50 74 Description With th e sequence CSI n ; n 1 ; n 2 { for n the followin g paramete[...]

  • Seite 313

    ➊ Paper is ejected also by FF or the limit, fixed by the form length or the bottom margin. ➋ This sequence selects manual cut sheet paper process. ➌ This sequence selects fanfold pa per process for tractor 1. ➍ This sequence selects fanfold paper process for optiona l tractor 2. If an optional tractor 2 is installed, sequences for selecting[...]

  • Seite 314

    For compatibility to for mer printers a se quence like CSI 21 ; x ; n { will also be acce pted. In this case, th e parameter x will be ig nored. Paper is i nserted on receipt of: CR (hex.0D; de c.13) if CR = LF is selected LF (hex.0 A; dec.10) VT (hex.0 B; dec.11 ) print da ta Example 10 REM sheet feeder 15 LPRINT CHR$ (27);"[3t";:REM set[...]

  • Seite 315

    Reset to Initial State (RIS) ESC c CSI 6 ~ Data Stru cture ASCII ESC "c" [A] reset to initial state hex. 1B 63 dec. 27 99 ASCII CSI "6" " ~ " [C] reset to initial state hex. 9B 36 7E dec. 155 54 126 Description The printer is initialized, which means it has the same status as just after power switch-on. All parameters [...]

  • Seite 316

    Command Set CSI ? ... ~ Data Stru cture ASCII CSI "?" n " ~ " [B] command set hex. 9B 3F n 7 E dec. 155 63 n 126 Description For n th e following param eters are ava ilable: n hex. dec. command set 1 31 49 MTPL 2 32 50 MTPL + IBM-Graphics -Printer 3 33 51 MTPL + IBM-Proprinte r XL 4 34 52 MTPL + IBM-Proprinte r XL 24e 5 35 53 MT[...]

  • Seite 317

    Activation of Charac ter Sets SI SO ESC ... Data Stru cture ASCII SI ZG locking shift LS0 ➊ hex. 0F dec. 15 ASCII SO ZG locking shift LS1 ➋ hex. 0E dec. 14 ASCII ESC n ZG locking shift LS2, LS3, LS1R, LS2R, LS3R ➌ hex. 1B n dec. 27 n Description ➊ Activatio n of G0 for codes 21 - 7E ➋ Activation of G 1 for codes 2 1 - 7E ➌ For n the fol[...]

  • Seite 318

    A set o f up to 9 4 characte rs is ma de ready f or use. Example 10 open "lpt1:" as #1 20 width #1, 32000 30 ’Example "Locking Shift" 40 t1$=" Fre nch Characters Are Print ed" 50 t2$=" Ger man Characters Are Print ed" 60 print #1, chr$(27),"+R" ’Designate G3 <— French Substituti on 70 ’Ta[...]

  • Seite 319

    Designation of Character Set G0 ESC ( ... Designation of Character Set G1 ESC ) ... Designation of Character Set G2 ESC * ... Designation of Character Set G3 ESC + ... Data Stru cture ASCII ESC n F designation of characte r sets hex. 1B n F dec. 27 n F Description Design ation of characte r sets is a proce ss by which a se t of graphic symbols is c[...]

  • Seite 320

    F hex. d ec. charac ter set à 85 133 Table 863 (DOS French-Canad ian) å 86 134 Table 865 (DOS Norway) Ä 8E 142 Table 866 Standard (DOS Cyrillic) Å 8F 143 Table 8 66 Ukraine É 90 144 Table 866 Kazakhs tan æ 91 145 Kamenicky (co mbination o f table 437 and 852) Æ 92 146 Mazovia (code page 437 with polish characte rs) p 70 112 (ASCII) Microso f[...]

  • Seite 321

    Example 10 REM character sets 20 LPRINT CHR $(27);"(B"; 30 LPRINT "US -ASCII: ";:GOSUB 130 40 LPRINT CHR $(27);"(A"; 50 LPRINT "UK -ASCII: ";:GOSUB 130 60 LPRINT CHR $(27);"(K"; 70 LPRINT "GE RMAN : ";:GOSUB 130 80 LPRINT CHR $(27);"(R"; 90 LPRINT "FR ENCH : ";:GOSUB 13[...]

  • Seite 322

    Activation of Charac ters SO SI Data Stru cture ASCII SO [B] ZG single shift SS2 ➊ hex. 8E dec. 142 ASCII SI [B] ZG single shift SS3 ➋ hex. 8F dec. 143 Description ➊ Activatio n of one single ch aracter from G 2 (“single shift 2”). ➋ Activation of o ne single character from G3 (“single s hift 3”). The func tions SO and SI each activ[...]

  • Seite 323

    Graphic descri ption of locki ng shift/singl e shift (page s 81 - 86 ): Repertoi re of graphic sets Designatio n of graphic sets Invocation of one graphic character Invocation of graphic sets Active character set C = contro l code set G = graphic sets Miscellaneous 87[...]

  • Seite 324

    Size of Character Se t (1 Chara cter Set) CSI ? 50 h Size of Character Se t (2 Chara cter Sets) CSI ? 50 Data Stru cture ASCII CSI "?" "5" "0" "h" [A] loading a characte r set hex. 9B 3F 35 30 68 with 256 cha racters ➊ dec. 155 63 53 48 1 04 AS C II C SI " ?" " 5" " 0" " &[...]

  • Seite 325

    Proportional Spacing (Draft) OFF CSI ? 51 h Proportional Spacing (Draft) ON CSI ? 51 Data Stru cture ASCII CSI "?" "5" "1" "h" [A] disabling proportional spacing hex. 9B 3F 35 31 68 in print quality DRAFT ➊ dec. 155 63 53 49 1 04 AS C II C SI " ?" " 5" " 1" " " [ A] e[...]

  • Seite 326

    Print Code Area Expan sion ON CSI ? 53 h Print Code Area Expan sion OFF CSI ? 53 Data Stru cture ASCII CSI "?" "5" "3" "h" [A] print code are a expansion on ➊ hex. 9B 3F 35 3 3 68 dec. 155 63 53 51 1 04 ASCII CSI "?" "5" "3" " " [A] print code area expansion o ff ➋ [...]

  • Seite 327

    Printer Identification (DA) CSI ... c Data Stru cture ASCII CSI "0" "c" [B] request for printer indent ification hex. 9B 30 63 dec. 155 48 99 ASCII CSI "?" ... " c" Re sponse from printer hex. 9B 3F .. . 63 dec. 155 63 ... 99 Description By this f unctions it is p ossible to get for example informations of de[...]

  • Seite 328

    Device Status Report (DSR) CSI ... n Data Stru cture ASCII CSI n "n" [B] device status report hex. 9B n 6E dec. 155 n 110 Description For n th e following param eters are ava ilable: n hex. dec. status report direction 0 30 48 “Ready, no ma lfun ct io n ” p rin te r → computer 1 31 49 “Busy, no malfu nction” printer → computer[...]

  • Seite 329

    Enquiry for Status ENQ Data Stru cture ASCII ENQ enquiry for sta tus hex. 05 dec. 5 Description With this code it is possib le to ge t a sta tu s byte from the printe r: Status byte: Bit 0 1 = BUSY Bit 1 1 = offline Bit 2 0 = paper end Bit 3 1 = always 1 Bit 4 1 = cover open Bit 5 1 = buff er overflow Bit 6 1 = parity or fr aming error Bit 7 0 = al[...]

  • Seite 330

    Fill Character NUL Data Stru cture ASCII NUL fill character without fu rther mean ing hex. 80 dec. 128 Start of Text Block STX Data Stru cture ASCII STX start of text block hex. 02 dec. 2 Description Start of a text block. With this code any er ror message (parit y er ro r, memory overflo w) is cleare d . This code concerns only serial da ta transf[...]

  • Seite 331

    End of Text Block ETX Data Stru cture ASCII ETX end of text block hex. 03 dec. 3 Description End o f a text b lock. This code concerns only serial da ta transfe r with ACK/NAK protocol. For a detailed description se e the documen tation which co mes with your printe r. Positive Acknowledge ACK Data Stru cture ASCII ACK positive acknowle dge hex. 06[...]

  • Seite 332

    Negat ive Ackn owled g e NAK Data Stru cture ASCII NAK negative acknowledge hex. 15 dec. 21 Description By sending th e ne ga tive acknowledge code NAK a parity error (charact er with the wro ng parity) is indica ted in the d ata block to b e transmitted a nd then the data block is d eleted. This code concerns only serial da ta transfe r with ACK/N[...]

  • Seite 333

    Delete DEL Data Stru cture ASCII DEL [A] delete hex. 7F dec. 127 Description With this code th e line buffe r is clear ed. Acoustic Alarm BEL Data Stru cture ASCII BEL [A] acoustic alarm hex. 07 dec. 7 Description This code causes an acou stic alarm. Miscellaneous 97[...]

  • Seite 334

    Start Character “Escape” ESC Data Stru cture ASCII ESC [A] star t character ESC hex. 1B dec. 27 Description ESC is the start cha racter for a subse quent pro gram sequenc e (the st ring $$ can be used instead o f ESC if option is selected in the printer setup). MTPL-Start Character “Control Sequence Introducer” Data Stru cture ASCII CSI [A [...]

  • Seite 335

    Appendix A Summary of Possible Codes[...]

  • Seite 336

    ACK co ntrol code ACK (Positive Acknowledge) . . . . . . . . . . . . . . . . 95 BEL acoustic alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 BS control code BS (Backs pace) . . . . . . . . . . . . . . . . . . . . . . . 61 CAN control code CAN (Cancel) . . . . . . . . . . . . . . . . . . . . . . . . 96 CR control cod e CR (Car[...]

  • Seite 337

    CSI 0 c request for p rinter identificatio n . . . . . . . . . . . . . . . . . . . . . . 91 CSI 0 g clear horizonta l tab stop at current p osition . . . . . . . . . . . . . . . . 46 CSI 0 m clear all se lected fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 CSI 0 m res et color . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Seite 338

    CSI 12 z dou ble heigh t ON (upp er half) . . . . . . . . . . . . . . . . . . . . . . . 29 CSI 13 m font 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 CSI 13 y high resolu tion print q uality . . . . . . . . . . . . . . . . . . . . . . . . 31 CSI 13 z double height O N (lower half) . . . . . . . . . . . . . . . . . . [...]

  • Seite 339

    CSI 3 w horizont al spacing 8,6 cpi . . . . . . . . . . . . . . . . . . . . . . . . . 16 CSI 3 z line density 6 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 CSI 30 m color b lack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 CSI 31 m color r ed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Seite 340

    CSI 7 w horizont al spacing 17 ,1 cpi . . . . . . . . . . . . . . . . . . . . . . . . 16 CSI 7 y pro portional m ode OFF . . . . . . . . . . . . . . . . . . . . . . . . . . 37 CSI 7 z set b it 8 = uncha nged . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 CSI 8 w double s trike OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Seite 341

    DEL control cod e DEL (De lete) . . . . . . . . . . . . . . . . . . . . . . . . . 97 ENQ control cod e ENQ (Enq uiry for Statu s) . . . . . . . . . . . . . . . . . . 93 ESC MTPL- start cha racter for program se quence . . . . . . . . . . . . . . . 98 ESC ( F designate c haracter set G0 . . . . . . . . . . . . . . . . . . . . . . . . 83 ESC ) F desi[...]

  • Seite 342

    acoustic alarm BEL . . . . . . . . . . . . . . . . . . . . . . . 97 additional characte r spacing CSI n SP . . . . . . . . . . . . . . . . . . . 20 automatic gap adjustment OF F CSI 0 + z . . . . . . . . . . . . . . . . . . . . 70 automatic gap ad justment ON CSI 1 + z . . . . . . . . . . . . . . . . . . . . 70 Basic Measurin g Unit BMU CSI 5 SP [...]

  • Seite 343

    control co de HTS HTS . . . . . . . . . . . . . . . . . . . . . . 45 control co de IND (Vertica l Index) IND . . . . . . . . . . . . . . . . . . . . . . . 51 control co de LF (L ine Feed) LF . . . . . . . . . . . . . . . . . . . . . . . 49 control code NAK (Negative Acknowledge) NAK . . . . . . . . . . . . . . . . . . . . . . 95 control co de NEL ([...]

  • Seite 344

    font 1 CSI 11 m . . . . . . . . . . . . . . . . . . . . 33 font 2 CSI 12 m . . . . . . . . . . . . . . . . . . . . 33 font 3 CSI 13 m . . . . . . . . . . . . . . . . . . . . 33 font 4 CSI 14 m . . . . . . . . . . . . . . . . . . . . 33 font 5 CSI 15 m . . . . . . . . . . . . . . . . . . . . 33 font 6 CSI 16 m . . . . . . . . . . . . . . . . . . . .[...]

  • Seite 345

    horizontal sp acing 17,1 cp i CSI 7 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal spacing 20 cpi CSI 11 w . . . . . . . . . . . . . . . . . . . . 16 horizontal spacing 5 cpi CSI 0 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal spacing 6 cpi CSI 1 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal spacing 7,5 cpi CSI 2 [...]

  • Seite 346

    MTPL + IBM-Pro printer XL command set CSI ? 3 ~ . . . . . . . . . . . . . . . . . . . . 80 MTPL + NEC P60/70 command set CSI ? 7 ~ . . . . . . . . . . . . . . . . . . . . 80 MTPL comma nd set CSI ? 1 ~ . . . . . . . . . . . . . . . . . . . . 80 MTPL-start cha racter for progra m sequence CSI . . . . . . . . . . . . . . . . . . . . . . . 98 MTPL-sta[...]

  • Seite 347

    shared interface CSI Pn + w . . . . . . . . . . . . . . . . . . . 71 single shift 2 (SS2) SO . . . . . . . . . . . . . . . . . . . . . . . 86 single shift 3 (SS3) SI . . . . . . . . . . . . . . . . . . . . . . . . 86 size of charact er set (1 character set) CSI ? 50 h . . . . . . . . . . . . . . . . . . . 88 size of charact er set (2 char acter set[...]

  • Seite 348

    Appendix B Character Sets[...]

  • Seite 349

    Standard Charac ter Set For the contents of the shaded areas, see table at page B-3. hex 0123456789 ABCD E F dec 0 NUL SP NUL 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 DC1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 STX DC2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 ETX DC3 3 19 35 51 67 83 99 115 131 14[...]

  • Seite 350

    International Substitution Table - normal font dec 35 36 64 91 92 93 94 9 6 123 124 1 25 126 hex 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E USA Great Britain Sweden Germany Portug al France Italy Spain Norway The conte nts of the c olumns 8 and 9 depen d on the s ettings in the printer’s m enue. Character Se ts B-3[...]

  • Seite 351

    Programmer’ s Reference Tally ANSI B a rc o d e an d LCP[...]

  • Seite 352

    Table of Contents Barcode and LCP Printing Introduction Secured/Unsecured Mode Data Structure ........................... 6 Description ............................. 6 Barcode Printing Barcode Header ............................. 8 Header Format ........................... 8 Transparent Barcode/LCP commands ............... 9 Barcode Print Feature F[...]

  • Seite 353

    Code EAN 13 with HRI ...................... 2 3 Code EAN 13 without HRI ..................... 2 4 Code MSI / modified Plessey ................... 2 5 Code UPCA with HRI ....................... 2 6 Code UPCA without HRI ...................... 2 7 Code UPCE with HRI ....................... 2 8 Code UPCE without HRI ...................... 2 9 Delta di[...]

  • Seite 354

    Appendix Character Sets LCP Character Set, German ................... A - 3 LCP Character Set, US-ASCII ................... A - 4 OCR-A Character Set ....................... A - 5 OCR-B Character Set ....................... A - 6[...]

  • Seite 355

    [...]

  • Seite 356

    Barcode and LCP Printing Introduction Secured/Unsecured Mode Barcode Printing US Postnet Barcode Large Character Printing (LCP)[...]

  • Seite 357

    Introduction This User’s Manual describes all barcode and LCP sequences and control codes, regard- less of your printer’s special barcode and LCP implementation (LCP = Large Character Printing). Be sure to observe the notes in the operator’s manual regarding the special barcode/LCP Types implemented in your printer and which of the sequences [...]

  • Seite 358

    This may cause conflict with other emulations, since the above commands may have dif- ferent functions in these emulations, for example: SI Condensed print DC4 Reset expanded print ESC P <n> Proportional spacing ON/O FF ESC P Pica In barcode mode the barcode sequences have priority. The barcode interpreter can be switched on or off with the M[...]

  • Seite 359

    The syntax for the parameters, the start, separate and stop code is represented as follows: Figures (n) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 ":" 3A 58 ":" 3A 58 For the parameter (here n ), a distinction must be made between two types of repre- sentation: if the parameter is in po[...]

  • Seite 360

    Special Feature If you not get the required control codes for Barcode of ASCII code table columns 0 and 1 out of your computer you can use in addition to these Barcode control codes a set of MTPL sequences to generate these control codes by printable ASCII characters. By this measure the Barcode programs will remain fully compatible in spite of the[...]

  • Seite 361

    Secured/Unsecured Mode Unsecured mode ESC PSC0 ESC Secured mode ESC PSC1 ESC Data Structure ASCII ESC "P" "S" "C" "0" ESC "" Unsecured mode hex. 1B 50 53 43 30 1B 5C dec. 27 80 83 67 48 27 92 ASCII ESC "P" "S" "C" "1" ESC "" Secured mode hex. 1[...]

  • Seite 362

    Example 1 10 REM L CP unsecured mode 20 LPRINT CHR$ (27); "[?11~ "; 30 REM select unsecu red mode 40 LPRINT CHR$ (27); "PSC0" ; CHR$(27); ""; 50 REM set character si ze to 5 60 LPRINT CHR$ (16); "5"; C HR$(25); 70 LPRINT "Exa mple for " 80 LPRINT CHR$ (15); "LCP"; CHR$(15); " unsecur[...]

  • Seite 363

    Barcode Printing Barcode Header Before the data, which contains the barcode information, are transmitted to the printer, the barcode header must be sent. Otherwise the standard parameter values are used (see section "Header Format"). In the header, the printing parameters, the barcode size and the barcode type are defined. This header onl[...]

  • Seite 364

    The default parameter values are the following: Unsecured mode (see section "Secured/Unsecured mode") HRI OFF, Normal Print, Double Pass (F = SP) Barcode Type 2/5 matrix (a = "A") Barcode height 1/6 inch (n = "1") Narrow bar (x = "0") Narrow space (y = "0") Ratio of wide to narrow 2 to 1 (z = "[...]

  • Seite 365

    Barcode Print Feature F for Selection of F-Code HRI or normal/compressed as well as single or double pass is switched via character F according to the following table. ASCII Char. Hex- Value HRI 2 ) Print Pass 3 ) Direction 2 ) On Off Normal Compr. Double Single Unidir. Bidir. SP ! " # $ % & ‘ ( ) * + , - . / 0 1 ) 1 1 ) 20 21 22 23 24 2[...]

  • Seite 366

    Barcode Types A = 2/5 matrix (default) B = 2/5 industrial C = 2/5 interleaved D = Code 11 E = Code BCD matrix F = Code 39 G = Codabar H = EAN 8 with HRI I = EAN 8 without HRI J = 2/5 matrix (default) K = EAN 13 with HRI L = EAN 13 without HRI M = MSI/modified Plessey N = UPC A with HRI O = UPC A without HRI P = UPC E with HRI Q = UPC E without HRI [...]

  • Seite 367

    Barcode Width By specifying an ASCII value from 0 to 3, the barcode width can be defined. This allows ideal adaption to the scanner specifications, particularly for long-range scanners. Table 1 Header Para- meter Normal Compressed 1 ) older printer types (e.g.MT230) older printer types (e.g.MT2 30) Width of the narrow bar x= 0 x= 1 x= 2 x= 3 0.53 m[...]

  • Seite 368

    All values are only valid when a new colour ribbon is used. They change depending on the degree of wear: narrow bar: approx. -0.05 mm narrow space: approx. +0.05 mm. The Code EAN 128 , as the EAN/UPC , is based on module widths. Therefore only the X parameter is valid for this type. This parameter is also used for the Y parameter (narrow bar width)[...]

  • Seite 369

    Data Formats of Barcode Types Code 2/5 Matrix Type A Syntax Figures (n) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code n ... n Stop code DC4 hex. 14 Start code n ... n Stop code 14 dec. 20 Start code n ... n Stop code 20 Example 10 REM[...]

  • Seite 370

    Code 2/5 Industrial Type B Syntax Figures (n) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 ":", "<" or ">" 3A, 3C or 3E 58, 60 or 62 ";", "=" or "?" 3B, 3D or 3F 59, 61 or 63 Data Structure ASCII DC4 Start code n ... n Stop code DC4 hex. 14 St[...]

  • Seite 371

    Code 2/5 Interleaved Type C Syntax Figures (n) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 ":" or "<" 3A or 3C 58 or 60 ";" or "=" 3B or 3D 59 or 61 Data Structure ASCII DC4 Start code n ... n Stop code DC4 hex. 14 Start code n ... n Stop code 14 dec. 20 Start code[...]

  • Seite 372

    Code 11 Typ e D Syntax Figures/Characters (n) Start code Stop code ASCII hex. dec. "0" to "9" and "-" 30 to 39 and 2D 48 to 57 and 45 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code n ... n Stop code DC4 hex. 14 Start code n ... n Stop code 14 dec. 20 Start code n ... n Stop code 20 Example [...]

  • Seite 373

    Code BCD Matrix Type E Syntax Figures (n) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code n ... n Stop code DC4 hex. 14 Start code n ... n Stop code 14 dec. 20 Start code n ... n Stop code 20 Example 10 REM BCD-matrix -code barcode 20 L[...]

  • Seite 374

    Code 39 Type F Syntax Numbers/Character (n) Start code Stop code not fixed, recommended: not fixed, recommended: ASCII hex. dec. "0" to "9", "A" to "Z" and "$", "%", "*", "+", "-", ".", "/" 30 to 39, 41 to 5A and 24, 25, 2A, 2B, 2D, 2E, 2F [...]

  • Seite 375

    CODABAR Type G Syntax Numbers/Character (n) Start code Stop code not fixed, recommended: not fixed, recommended: ASCII hex. dec. "0" to "9", "A" to "D" and "$", "+", "-", ".", "/", ":" 30 to 39 and 24, 2B, 2D, 2E, 2F, 3A 48 to 57 and 36, 43, 45, 46, [...]

  • Seite 376

    Code EAN 8 with HRI Type H Syntax Figures (n) Check Number (c) Start code Separation code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnn Separation code nnnc [...]

  • Seite 377

    Code EAN 8 without HRI Type I Syntax Figures (n) Check Number (c) Start code Separation code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnn Separation code nn[...]

  • Seite 378

    Code EAN 13 with HRI Type K Syntax Figures (n) Check Number (c) Start code Separation code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnnnnn Separation code n[...]

  • Seite 379

    Code EAN 13 without HRI Type L Syntax Figures (n) Check Number (c) Start code Separation code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnnnnn Separation cod[...]

  • Seite 380

    Code MSI / modified Plessey Type M Syntax Figures (n) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 ":" 3A 58 ";" 3B 59 Data Structure ASCII DC4 Start code n ... n Stop code DC4 hex. 14 Start code n ... n Stop code 14 dec. 20 Start code n ... n Stop code 20 Example 10 REM code MSI/ples sey[...]

  • Seite 381

    Code UPC A with HRI Type N Syntax Figures (n) Check Number (c) Start code Separation code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnnnn Separation code nnn[...]

  • Seite 382

    Code UPC A with out HRI Typ e O Syntax Figures (n) Check Number (c) Start code Separation code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnnnn Separation cod[...]

  • Seite 383

    Code UPC E with HRI Typ e P Syntax Figures (n) Check Number (c) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnnnnnc Stop code DC4 hex. 14 Start code nnnnnnnc Stop code [...]

  • Seite 384

    Code UPC E without HRI Type Q Syntax Figures (n) Check Number (c) Start code Stop code ASCII hex. dec. "0" to "9" 30 to 39 48 to 57 Calculati on see section "Check Number Calculati on" ":" 3A 58 ":" 3A 58 Data Structure ASCII DC4 Start code nnnnnnnc Stop code DC4 hex. 14 Start code nnnnnnnc Stop cod[...]

  • Seite 385

    Code Delt a distance (IBM) Type R Syntax Figures/Characters (n) Start code Stop code ASCII hex. dec. "0" to "9" and "A" to "F" 30 to 39 and 41 to 46 48 to 57 and 65 to 70 "F" 46 70 "D" 44 68 Data Structure ASCII DC4 Start code n ... n Stop code DC4 hex. 14 Start code n ... n Stop code 14 d[...]

  • Seite 386

    Code 128 Type S Syntax Figures/Characters (n) Start code Stop code ASCII hex. dec. see table section "Description" none none Data Structure ASCII DC4 n ... n DC4 hex. 14 n ... n 14 dec. 20 n ... n 20 Description While many barcode styles are limited to numbers, Code 128 can encode numbers, let- ters, and other symbols commonly found on ke[...]

  • Seite 387

    Example If you need to print a Carriage Return (hex.0D, dec.13), as part of a barcode, you need to send ">M" (13 + 64 = 77, see character set table to verify that decimal 77 equals the capi- tal letter "M"). This substitution process can be carried out throughout the range of deci- mal values, i.e., ">d" (decimal[...]

  • Seite 388

    Code 128 translation table Wert Code A Code B Code C Wert Code A Code B Code C Wert Code A Code B Code C 0 Space Space 00 36 D D 36 72 BS h 72 1! ! 0 1 3 7 E E 3 7 7 3 H T i 7 3 2" " 0 2 3 8 F F 3 8 7 4 L F j 7 4 3 # # 03 39 G G 39 75 VT k 75 4 $ $ 04 40 H H 40 76 FF l 76 5% % 0 5 4 1I I4 1 7 7 C R m 7 7 6& & 0 6 4 2 J J 4 2 7 8 S[...]

  • Seite 389

    Example 10 REM code 128 20 LPRINT CHR$(27) ;"[?11~"; 30 LPRINT CHR$(26) ;" S3;111";CHR$ (25); 40 LPRINT CHR$(20) ;"ABCD0123"; CHR$(20); 50 LPRINT CHR$(27) ;"[?10~" 34 Barcode Printing[...]

  • Seite 390

    EAN 128 Type T Syntax Figures/Characters (n) Start code Stop code ASCII hex. dec. see Code 128 none none Data Structure ASCII DC4 n ... n DC4 hex. 14 n ... n 14 dec. 20 n ... n 20 Description The only difference between both types of barcodes is the initial sequence. Code 128 starts with Code A, Code B or Code C followed by character information. B[...]

  • Seite 391

    Add-On Barcodes UPC and EAN barcodes (commercial barcodes) can be extended with Add-On barcodes. The following barcodes can be extended with Add-On barcodes: Barcode Types H, I, K, L, N, O, P and Q In the data formats the numbers are generally given in the sequence they are printed from left to right in the barcode, i.e. in the case of the EAN13 co[...]

  • Seite 392

    Example 2 EAN13 barcode with HRI and Add On 5 extention Format: DC4:nnnnnnn:nnnnnn :cnnnnn :DC4 10 REM code EAN 13 with add-on-5 ex tention 20 LPRINT CHR$(27) ;"[?11~"; 30 LPRINT CHR$(26);" K3; 111";CHR$(25); 40 LPRINT CHR$(20) ;":0123456:7890 12:012345:";CHR$(2 0); 50 LPRINT CHR$(27) ;"[?10~" Barcode Printin[...]

  • Seite 393

    Check Number Calculation The following barcode types must be given a check number for transfer to the printer: Type H and I (EAN 8) Type K and L (EAN 13) Type N and O (UPC A) Type P and Q (UPC E) The check number (c) is transferred after the barcode information (n). For the "EAN" type, this is printed as the last figure in the HRI data li[...]

  • Seite 394

    EAN 8 7 numbers are transferred for the EAN 8 code. The 8. digit represents the check number. The even figures of the information have a factor of "3", the uneven figures a factor of "1". Counting begins from the left. The resulting cross sum is divided by 10. The remaining fig- ure is subtracted from the modul (10). If the rema[...]

  • Seite 395

    UPCE For the UPCE barcode type, 7 numbers are transmitted. The 8. digit is the check number. The uneven figures of the information have a factor of "3", the even figures a factor of "1". Counting begins from the left. The resulting cross sum is divided by 10. The remaining in- teger value is subtracted from the modul (10). The r[...]

  • Seite 396

    Add-On 2 3 numbers are transmitted: check number (c) and 2 informations (n). The check number results from the remaining integer value of modul (4). Example 1 Information 004 Remainder (0) 0 Example 2 Information 206 Remainder (2) 2 Example 3 Information 399 Remainder (3) 3 Example 4 Information 109 Remainder (1) 1 The check number always lies betw[...]

  • Seite 397

    US Postnet Barcode US Postnet Barcode ESC [ 1 SP p Data Structure ASCII ESC "[" "1" SP "p" hex. 1B 5B 31 20 70 dec. 27 91 49 32 112 Description After receiving this sequence numeric characters from 0 (hex. 30) to 9 (hex. 39) are inter- preted as barcode figures. Other Alpha characters are ignored. Control characters fr[...]

  • Seite 398

    Large Character Printing (LCP) Before you can transfer the LCP data (Large Character Printing) data to the printer, the LCP header must be sent. The LCP header is made up of a series of max. 5 characters. In the header, the printing parameters and the LCP character size are defined. This hea- der only needs to be transferred once, unless settings a[...]

  • Seite 399

    Refer to the section "Secured/Unsecured Mode" at the front of the Manual for detailed description of the secured/unsecured mode. Data Structure ASCII SI n ... n SI hex. 0F n ... n 0F dec. 15 n ... n 15 n = all printable characters (> hex.1F, dec.31) Example REM Example Charac ter Densities OPEN "lpt1:" FOR R ANDOM AS #1 WIDTH[...]

  • Seite 400

    LCP Character Set US-ASCII ESC P L S 0 1 ESC LCP Character Set German ESC P L S 0 2 ESC Data Structure ASCII ESC "P" "L" "S" "0" "1" ESC "" character set US-ASCII hex. 1B 50 4C 53 30 31 1B 5C dec. 27 80 76 83 48 49 27 92 ASCII ESC "P" "L" "S" "0"[...]

  • Seite 401

    Various Examples Example 1 10 LPRIN T "Example f or different LCP char acter sizes" 20 LPRINT CHR$ (27); "[?11~ "; 30 LPRINT CHR$ (27); "PSC0" ; CHR$(27); ""; 40 REM set character si ze to 3 50 LPRINT CHR$ (16); "3"; C HR$(25); 60 LPRINT CHR$ (15); "3"; C HR$(15); 70 REM set character si [...]

  • Seite 402

    Example 2 REM Ex ample 2 for unsecured pr inting OPEN "lpt1:" FOR R ANDOM AS #1 WIDTH #1, 255 PRINT #1, CHR$(27) ; "[?11~"; PRINT #1, CHR $(27); "PSCO"; CHR $(27); ""; PRINT #1, CHR$(16) ; "5"; CHR$(25) ; PRINT #1, "Ex ample for "; PRINT #1, CHR $(15); "LCP"; CHR$ (15);" un[...]

  • Seite 403

    Example 4 Unsecured Mode, vertical spacing with various enlargement factors Legend A – a single line Feed (1/6") B – Factor 6 character; heigth C – Factor 7 character; height additional space is added to gain a full Line Feed D – Factor 4 character; height E – Factor 5 character; height additional space is added to gain a full Line F[...]

  • Seite 404

    Appendix Character Sets[...]

  • Seite 405

    The following symbol sets are available in the barcode mode. The LCP symbol sets can only be selected via Escape sequenc es. The OCR-A and OCR-B fonts can be selected v ia control panel or by Escape sequences , which corre- spond to the selected emulation mode. The codes hex.A 0 up to hex.FE correspond to the selected character set. The following e[...]

  • Seite 406

    LCP Character Set, german hex 01234567 dec 0 NUL 0 1 63 24 86 48 09 6 1 1 2 1 1 1 73 34 96 58 19 7 1 1 3 2 2 1 83 45 06 68 29 8 1 1 4 3 3 1 93 55 16 78 39 9 1 1 5 4 4 2 03 65 26 88 4 1 0 0 1 1 6 5 5 2 13 75 36 98 5 1 0 1 1 1 7 6 6 2 23 85 47 08 6 1 0 2 1 1 8 7 7 2 33 95 57 18 7 1 0 3 1 1 9 8 8 2 44 05 67 28 8 1 0 4 1 2 0 9 9 2 54 15 77 38 9 1 0 5 1[...]

  • Seite 407

    LCP Character Set, US-ASCII hex 01234567 dec 0 NUL 0 1 63 24 86 48 09 6 1 1 2 1 1 1 73 34 96 58 19 7 1 1 3 2 2 1 83 45 06 68 29 8 1 1 4 3 3 1 93 55 16 78 39 9 1 1 5 4 4 2 03 65 26 88 4 1 0 0 1 1 6 5 5 2 13 75 36 98 5 1 0 1 1 1 7 6 6 2 23 85 47 08 6 1 0 2 1 1 8 7 7 2 33 95 57 18 7 1 0 3 1 1 9 8 8 2 44 05 67 28 8 1 0 4 1 2 0 9 9 2 54 15 77 38 9 1 0 5[...]

  • Seite 408

    OCR-A Character Set (Code Page 437) hex 01234567 dec 0 NUL 0 1 63 24 86 48 09 6 1 1 2 1 1 1 73 34 96 58 19 7 1 1 3 2 2 1 83 45 06 68 29 8 1 1 4 3 3 1 93 55 16 78 39 9 1 1 5 4 4 2 03 65 26 88 4 1 0 0 1 1 6 5 5 2 13 75 36 98 5 1 0 1 1 1 7 6 6 2 23 85 47 08 6 1 0 2 1 1 8 7 7 2 33 95 57 18 7 1 0 3 1 1 9 8 8 2 44 05 67 28 8 1 0 4 1 2 0 9 9 2 54 15 77 38[...]

  • Seite 409

    OCR-B Character Set (Code Page 437) hex 01234567 dec 0 NUL 0 1 63 24 86 48 09 6 1 1 2 1 1 1 73 34 96 58 19 7 1 1 3 2 2 1 83 45 06 68 29 8 1 1 4 3 3 1 93 55 16 78 39 9 1 1 5 4 4 2 03 65 26 88 4 1 0 0 1 1 6 5 5 2 13 75 36 98 5 1 0 1 1 1 7 6 6 2 23 85 47 08 6 1 0 2 1 1 8 7 7 2 33 95 57 18 7 1 0 3 1 1 9 8 8 2 44 05 67 28 8 1 0 4 1 2 0 9 9 2 54 15 77 38[...]