TallyGenicom Matrix Printer manuel d'utilisation
- Voir en ligne ou télécharger le manuel d’utilisation
- 409 pages
- 6.06 mb
Aller à la page of
Les manuels d’utilisation similaires
-
Printer
TallyGenicom Feed MIP3F
3 pages 0.25 mb -
Printer
TallyGenicom 8008N
194 pages 7.5 mb -
Printer
TallyGenicom 5040
142 pages 7.4 mb -
Printer
TallyGenicom 9025
214 pages 3.95 mb -
Printer
TallyGenicom 6600
330 pages 5.49 mb -
Printer
TallyGenicom Matrix Printer
409 pages 6.06 mb -
Printer
TallyGenicom 9330N
3 pages 0.34 mb -
Printer
TallyGenicom mL450
232 pages 4.65 mb
Un bon manuel d’utilisation
Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation TallyGenicom Matrix Printer. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel TallyGenicom Matrix Printer ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.
Qu'est ce que le manuel d’utilisation?
Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation TallyGenicom Matrix Printer décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.
Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.
Donc, ce qui devrait contenir le manuel parfait?
Tout d'abord, le manuel d’utilisation TallyGenicom Matrix Printer devrait contenir:
- informations sur les caractéristiques techniques du dispositif TallyGenicom Matrix Printer
- nom du fabricant et année de fabrication TallyGenicom Matrix Printer
- instructions d'utilisation, de réglage et d’entretien de l'équipement TallyGenicom Matrix Printer
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes
Pourquoi nous ne lisons pas les manuels d’utilisation?
Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage TallyGenicom Matrix Printer ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles TallyGenicom Matrix Printer et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service TallyGenicom en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées TallyGenicom Matrix Printer, comme c’est le cas pour la version papier.
Pourquoi lire le manuel d’utilisation?
Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif TallyGenicom Matrix Printer, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.
Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation TallyGenicom Matrix Printer. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.
Table des matières du manuel d’utilisation
-
Page 1
Programmer's Manual Matrix printer 7265[...]
-
Page 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 .............................................................................[...]
-
Page 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 ..........................................................[...]
-
Page 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 ....................................[...]
-
Page 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 ex ibilit y of use is g uarantee d by the wide range of software em [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 , &[...]
-
Page 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 ?[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 #$&[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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) [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 & / [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 79
Programmer's Reference EPSON Emulation[...]
-
Page 80
Table of Contents Description of Escape Sequences Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Paper and Text Formatting . . . . . . . . . . . . . . . . . . . . . . . . . 5 Form Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Page Length in Units . . . . . . . . . . . . . . . . . . . . . . . [...]
-
Page 81
Character Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Super-/Subscript Mode ON . . . . . . . . . . . . . . . . . . . . . . 29 Double Strike . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Select Font and Pitch by Point . . . . . . . . . . . . . . . . . . . . 32 Print Quality . . . . . . . . . . . . . . . . . [...]
-
Page 82
Download Character Generator . . . . . . . . . . . . . . . . . . . . . . 73 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Copy ROM into RAM . . . . . . . . . . . . . . . . . . . . . . . . . 75 Print Raster Graphics . . . . . . . . . . . . . . . . . . . . . . . . . 76 Activate User Defined Character Set . . . . . . . . .[...]
-
Page 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[...]
-
Page 84
Description of Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Download Character Generator Miscellaneous Control Codes[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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"[...]
-
Page 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 < ([...]
-
Page 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 >< [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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" s et 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 ➌ he[...]
-
Page 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&[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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, [...]
-
Page 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. [...]
-
Page 123
Score Selection ESC ( - Data Structure ASCII ESC "(" "-" <3> NUL <1> <n 1 >< n 2 > h e x . 1 B 2 8 2 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 ca[...]
-
Page 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 - [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 136
Relative Horizontal Step ESC Data Structure ASCII ESC "" <n 1 >< n 2 > set 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 i[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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,[...]
-
Page 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 =[...]
-
Page 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,[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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..[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 152
Graphics Mode Reassignment ESC ? Data Structure ASCII ESC "?" <s> <n> reassign graphics mode hex. 1B 3 F <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&[...]
-
Page 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$[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 >< [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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);[...]
-
Page 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 >[...]
-
Page 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[...]
-
Page 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 0000 0 See next page for the corresponding programming example. 123456789 1 0 1 1 1 2 128 64 32 16 8 4[...]
-
Page 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);"%[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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$[...]
-
Page 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 ≤[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 <[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 189
d 2 d 3 Table name 26 0 A bicomp 29 16 ISO 8859-1 (Latin 1) 35 0 Roman 8 127 2 I SO 8859-2 (Latin 2) Please refer to the printer ’ s reference manual which character sets are supported. 106 Miscellaneous[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 ...) [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 202
Appendix A Summary of Possible Codes[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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> set line feed to n/216 inch . . . . . . . . . . . . . . . . 27 ESC 4 italic mode ON . . . . . . . . . . . . . . . . . . . [...]
-
Page 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 . . . . . . . . . . . . .[...]
-
Page 207
ESC SP <n> charac ter spacing . . . . . . . . . . . . . . . . . . . . . 24 ESC T super/subscript mode OFF . . . . . . . . . . . . . . . . 29 ESC t <0> ch aracter se t selection (ita lic) . . . . . . . . . . . . . . . 103 ESC t <1> character set selection (graphics) . . . . . . . . . . . . 103 ESC t <2> character set selectio[...]
-
Page 208
absolu te horizo ntal step ESC $<n1> <n2> . . . . . . . . . . . . . . . . . . . . . 51 ASCII characte r 0 NUL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 assign ch aracter tab le ESC ( t . . . . . . . . . . . . . . . . . . . . . . . . . . 105 back feed n/216 inch ESC j <n> . . . . . . . . . . . . . . . . . . . . . [...]
-
Page 209
form fee d 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 [...]
-
Page 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> . . . . . . . . . . . . . . . .[...]
-
Page 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> . .[...]
-
Page 212
Appendix B Character Sets Register nur für SNI[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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/[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 thi s manual without notice. All care has been taken to ensure accura cy of information contained in this manual. However, we cannot acc ept res[...]
-
Page 231
Programmer’s Reference Tally ANSI ( MTPL ) Emulation[...]
-
Page 232
Table of Contents Description of MTPL-Sequences Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Paper and Text Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Form Lengt h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Turn ON Positioning Unit Mode (SM) . . . . . . . . . . . .[...]
-
Page 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) .[...]
-
Page 234
Horizonta l Tab Sto p . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Set Horizon tal Tab Stop at Curre nt Position . . . . . . . . . . . . . . . . 45 Horizonta l Tab Sto ps ON . . . . . . . . . . . . . . . . . . . . . . . . . 46 Horizonta l Tab Sto ps OFF (TBC) . . . . . . . . . . . . . . . . . . . . . 46 Line Fe ed . . . . . . . . . . [...]
-
Page 235
Color Selectio n (Option) . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Input Da ta Contro l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Sheet Fe eder/Pap erway . . . . . . . . . . . . . . . . . . . . . . . . . 76 Eject Fo rm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Reset to I nitial State ( RIS[...]
-
Page 236
Appendix A Summary of Possible 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 – [...]
-
Page 237
Description of MTPL-Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Miscellaneous[...]
-
Page 238
Introduction Regardle ss of the specific M TPL seque nces of yo ur printe r, this User’s M anual d escribes the sum of a ll MTPL seq uences and c ontrol codes. The o nly diffe rentiation is made be- tween 9 and 24 n e ed le printers as well as the maxim um possible pap e r width of 8 inches (80 column pr inter) or 13.6 inches ( 132 column p rinte[...]
-
Page 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 wit h any other printer em ulation. The last characte r (in the fo llowin[...]
-
Page 240
Character explanat ion and sym bol description Lower case “ ” Informat ion s Sequence o nly applies f or 9 ne edle printer Sequence only app lies for 24 needle pr inter In the follo wing you will find a n example for a MTPL seq uence with a Basic progra mming example : Set to a form le ngth of 72 l ines: MTPL-Sequence CSI n with n=72 t Transmis[...]
-
Page 241
Paper and Text Formatting Form Length CSI ... t Data Sructure ASCII CSI n "t" [A] set form lenght in lines hex. 9B n 74 dec. 155 n 116 Description PUM turned OF F: n = 1...1 32 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 form length to n times the c[...]
-
Page 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 C[...]
-
Page 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[...]
-
Page 244
Select Size Unit (SSU) CSI ... SP I Data Stru cture ASCII CSI n SP "I" [B] select size unit hex. 9B n SP 49 dec. 155 n SP 73 Description For n th e following pa rameters are a vailable: n h ex. dec. size unit 0 3 0 48 Decipoints ( 1 ⁄ 720 inch = 0,035 3 mm) 1 31 4 9 Millimeters 2 3 2 50 Decipoints (0,0 353 mm) 3 3 3 51 Decididots (0,0 3[...]
-
Page 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 a nd botto m margin hex. 9B n 1 3B n 2 72 dec. 155 n 1 59 n 2 114 ASCII CSI "r" [A] clear top an d bottom m argin hex. 9B 72 dec. 155 114 Description n 1 specifies the value of the top margin n 2 [...]
-
Page 246
Example 10 REM top and bottom margin 20 LPRINT CHR $(27);"[6t";:REM f orm length 30 LPRINT CHR $(27);"[2;5r":REM set margins 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 120[...]
-
Page 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 marg in hex. 9B n 1 3B n 2 73 dec. 155 n 1 59 n 2 115 ASCII CSI "s" [A] clear left and righ t margin hex. 9B 73 dec. 155 115 Description n 1 specifies the value of the left margin n 2 [...]
-
Page 248
If only one margin is changed , the ot he r ma rg in will be reset to de fa ult valu e. If there are any logical problems (for ex ample, le ft marg in > 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 i s s[...]
-
Page 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 8 5 ASCII CSI n SP "V" [A] set line limit ➋ hex. 9B n 20 55 dec. 155 n 32 8 5 Description n = 1... maximal print a rea ➊ Default setting: Physical left marg in of mediu m [...]
-
Page 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 th e following charac ters are available: n h ex. d e c . justification 8 38 56 [A] right justification[...]
-
Page 251
Character Spacing Spacing Increment (SPI) CSI ... SP G Data Stru cture ASCII CSI n 1 ";" n 2 SP "G" [B] [C] set spacing incremen t hex. 9B n 1 3B n 2 20 47 dec. 155I n 1 59 n 2 32 71 Description n 1 specifies the line spacing n 2 specifies the charact er spacin g The unit is expre ssed in decipo ints or o ther unit s defined by [...]
-
Page 252
Horizontal Spaci ng 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 pa rameters are a vailable: n h e x . dec. horizontal spacing 0 3 0 48 5 cp i 1 3 1 49 6 cp i 2 3 2 50 7,5 cpi 3 3 3 51 [B] [ C] 8,6 cpi 4 3 4 52 10 cpi 5 3 5 53 12 cpi 6 3 6 54 15 cpi 7 3 7 55 [B] [ C] 17[...]
-
Page 253
Example 10 REM cha racter densities 20 LPRINT CHR $(27);"[4wthis is 10 cpi, "; 30 LPRINT CHR $(27);"[12wthis is 10 cpi (high reso lution), " 40 LPRINT CHR $(27);"[5wthis is 12 cpi, "; 50 LPRINT CHR $(27);"[6wthis is 15 cpi, "; 60 LPRINT CHR $(27);"[7wthis is 17.1 cpi, "; 70 LPRINT CHR $(27);"[1[...]
-
Page 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 7 5 Description For n th e following pa rameters are a vailable: n h ex. dec. character spacing 0 3 0 48 10 cpi 1 3 1 49 6 cpi 2 3 2 50 12 cpi 3 3 3 51 15 cpi With this seque nce the ho rizontal charact er spacing i[...]
-
Page 255
Character Spacing (SCS) CSI ... SP g Data Stru cture ASCII CSI n SP "g" [A] set character spacing hex. 9B n 20 67 dec. 155 n 32 1 03 Description n specifies th e cha racte r 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 not be chan ged. Character Sp acing 1[...]
-
Page 256
Additional Character Spacing (SACS) CSI ... SP Data Stru cture ASCI I CSI n SP " " [A] set addit ional charac ter spacin g hex. 9B n 20 5C dec. 155 n 32 9 2 Description n specifies th e ad dition al cha racter spacing The units are eith er decipoint s or defin ed by SSU ( Select Size Unit, se e page 8). This function en larges the inte[...]
-
Page 257
Reduced Ch aracter Spacing (SRCS) CSI ... SP f Data Stru cture ASCII CSI n SP "f" [B] set reduced cha racte r sp acin g hex. 9B n 20 66 dec. 155 n 32 1 02 Description n specifies th e re duc ed chara cte r spacing The units are eith er decipoint s or defin ed by SSU ( Select Size Unit, se e page 8). This function reduces th e inte r chara[...]
-
Page 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" 3[...]
-
Page 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...25 5 The space between character s is enlarg ed by n ∗ 1 ⁄ 120 inch at the current p rint position. Examples: CSI q enlarging char acter spa ce by n ∗ 1 ⁄ 120 inch CSI 10 q inserts a 1 ⁄ [...]
-
Page 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 7 6 Description For n th e following pa rameters are a vailable: n h ex . 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 [...]
-
Page 261
Line Density 6 lpi CSI 3 z Line Density 8 lpi CSI 4 z Data Stru cture ASCI I CSI "3" "z" [C] line dens ity 6 lpi (= lin e spacing 1/ 6 inch) hex. 9B 33 7A dec. 155 51 122 ASCII CSI "4" "z" [C] line density 8 lpi ( = line spacin g 1/8 inch) hex. 9B 34 7A dec. 155 52 122 Description These sequen ce s set th e l[...]
-
Page 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 1 04 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 seq uen ce SPI (Spacing Incr em ent, see page 15). 26 Line Spac[...]
-
Page 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 pa rameters are a vailble: n h e x . dec. character styling 0 3 0 48 superscript ON ➊ 1 3 1 49 subscr[...]
-
Page 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 f amous formula." 70 LPRINT "H" ; 80 LPRINT CHR $(27);"[1z";"2";CH R$(27);"[2z"; 90 LPRINT "O is[...]
-
Page 265
Double Height ON (Upper Half) CSI 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 (uppe r half) ➊ hex. 9B 31 32 7A dec. 155 49 50 122 ASCII CSI "1" "3" "z" [C] double height ON (lowe r half) ➊ hex. 9B 31 [...]
-
Page 266
Example 10 REM double height 20 LPRINT "Fo r ";CHR$(27);"[12z Headlines ";CHR$(2 7);"[2z"; 30 LPRINT "pr inting in double" 40 LPRINT CHR $(27);"[13z Hea dlines";CHR$(27);" [2z" 50 LPRINT "he ight is recommende d" 60 END 30 Chara cter Sty ling[...]
-
Page 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 8 8 ASCII CSI n "y" select p rint quality ➋ hex. 9B n 79 dec. 155 n 121 Description ➊ This seq u en ce defines the prin t qu ality . Print through p ut ch an ges with the pr int qua lity. For n t[...]
-
Page 268
Example 10 REM print quality 20 LPRINT CHR$ (27);"[0yThis is d raft quality "; 30 LPRINT CHR$ (27);"[1yand this is NLQ printing." 40 LPRINT CHR$ (27);"[5yThis is N LQ with 12 cpi." 50 END 32 Chara cter Styling[...]
-
Page 269
Select Ty pestyle CSI ... m Data Stru cture ASCII CSI n "m" [A] select typestyle hex. 9B n 6D dec. 155 n 109 Description This sequen ce de fin es the typ estyle . For n the followin g paramete rs are availab le: n h ex. dec. typestyle (number is printer dependen t) 10 31 30 49 48 font 0 11 31 31 49 49 font 1 12 31 32 49 50 font 2 13 31 33[...]
-
Page 270
Example Valid for most MTPL p rinters. Fontregister Font 0D r a f t 1 NLQ Courier 2L Q C o u r i e r 3 NLQ Sans Serif 4 LQ 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[...]
-
Page 271
Emphasized Mode ON CSI = z Emphasized Mode 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 , eac h do t is prin te d twice , slig[...]
-
Page 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 -se q ue nces [...]
-
Page 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[...]
-
Page 274
Example 10 REM proportional spa cing 20 LPRINT CHR$ (27);"[2y"; 30 LPRINT "thi s is an example wi th proportional sp acing" 40 LPRINT CHR$ (27);"[7y"; 50 LPRINT "thi s is an example wi th normal spacing" 60 END 38 Chara cter Styling[...]
-
Page 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[...]
-
Page 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 ue n ce switch es the auto matic ov[...]
-
Page 277
Double Strike ON CSI 9 w Double Strike OFF CSI 8 w Data Stru cture ASCII CSI "9" "w" [B] [C] double strike pr int mode ON hex. 9B 39 77 dec. 155 57 119 ASCII CSI "8" "w" [B] [C] double strike print mode OF F hex. 9B 38 77 dec. 155 56 119 Description In doub le str ike mode chara ct er s ar e pr in te d twice [...]
-
Page 278
Grap h 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 6 7 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 speci[...]
-
Page 279
Font Designation (FNT) CSI ... SP D Data Stru cture ASCII CSI n 1; n 2 SP "D" [A] designate fon t 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 de sired fon t For n 2 the following pa ra mete rs ar e ava ila ble: n 2 hex. dec. identification 0 30 48 Roman 1 31 4[...]
-
Page 280
Font attributes, e.g. “bold” ca n be specified af ter design ation through corresponding ESC sequences . Technical Details Font Designation Codes The use of the font designat ion code CSIn 1 ;n 2 space D needs further e xp lan at ion. (Note : CSI is 9B; you can u se ESC[, 1B 5BH, ins tead if you wish .) The parameter n 1 Register to use. This p[...]
-
Page 281
Print Positioning Hori zo nt al Tab St op HT Data Stru cture ASCI I HT [A] horizontal tab stop hex. 09 dec. 9 Description The HT-Cod e moves the active prin t position to the next horizontal tabula tion stop on the same line. If there is no tab stop re acha ble - no mo re tab stops ar e set or the nex t tab stop is be yond the defined right margin [...]
-
Page 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 t ab 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 tab sto p[...]
-
Page 283
➌ With the seque nce CSI n g for n the follo wing pa ra mete rs ar e available: n hex. dec. function 0 30 48 clear horizontal tab st op at curr ent position 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 stop at curr ent pos ition CSI 3;4 g clear a ll[...]
-
Page 284
Example 1 10 REM hor izontal tabs 20 LPRINT CHR $(27);"[4w";:REM 1 0 cpi 30 LPRINT CHR $(27);"[10;20;30u" ; 40 LPRINT "12 345678901234567890 123456789012345678 9" 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[...]
-
Page 285
Line Feed LF Data Stru cture ASCII LF [A] line f eed hex. 0A dec. 10 Description When the printe r receives this code, it prin ts all the dat a in the print buffer, th en advance s the paper one line. The LF code ca n also give a carriage return if automatic carriage re turn is selected. If no CR is given , the ne xt printing starts in the column f[...]
-
Page 286
Vertical Tab Stop VT Data Stru cture ASCII VT vertical tab stop hex. 0B dec. 11 Description When the printe r receives this code, it prin ts all the dat a in the print buffer, th en advance s the pape r to the n ext vertical tab stop position. The VT code can a lso give a ca rriage return if automatic car riage return is selected (re fer to Oper at[...]
-
Page 287
Set Vertical Ta b Stop at Current Position VTS Data Stru cture ASCII VTS [A] set vertical tab stop hex. 8A dec. 138 Description This code sets an horizo ntal tab stop at the cur rent vertical p osition. Vertical Index IND Data Stru cture ASCII IND [A] vertical index hex. 84 dec. 132 Description The code IND moves th e active pr int position t o the[...]
-
Page 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 vertical tab stops at cur rent position hex. 9B 31 67 dec. 155 49 103 ASCII CSI "4" "g" [A] clear all[...]
-
Page 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 s et form length 30 LPRINT CHR$ (27);"[4g";:REM cl ear all vtabs 40 LPRINT CHR$ (27);"[3;5;9v"; 50 LPRINT CHR$ (11);"this is the first vertica[...]
-
Page 290
Horizontal Posititon Absolute (HPA) CSI ... ’ Data Stru cture ASCII CSI n " ‘ " [A] set horizontal p osition abso lute hex. 9B n 60 dec. 155 n 96 Description n = 1 (default se tting) = ∧ current left margin This sequence moves the print head to a horizontal p rint position a bsolute. The unit depends on PUM ( Positioning Un it Mode)[...]
-
Page 291
Horizontal Position Relativ e (HPR) CSI ... a Data Stru cture ASCII CSI n "a" [A] set horizontal p osition relat ive hex. CSI n 61 dec. CSI n 97 Description n = 1 (default se tting) This sequen ce moves th e print head to the righ t. The unit depends on PUM ( Positioning Un it Mode) a nd is eithe r characte r position s or defined by th e[...]
-
Page 292
Horizontal Position Back ward (HPB) CSI ... j Data Stru cture ASCII CSI n "j" [A] set horizontal position b ackward hex. 9B n 6A dec. 155 n 106 Description n = 1 (default se tting) This sequen ce moves the p rint head to the left. The unit depends on PUM ( Positioning Un it Mode) a nd is eithe r characte r position s or defined by th e SS[...]
-
Page 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 se tting) = ∧ current top margin This sequence moves the print head to a vertical prin t position ab solute. The unit depends on PUM (Posit ioning Un it Mode) a nd is either lines or d [...]
-
Page 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 se tting) This sequence moves the print head lines o r vertical po sitions down. The unit depends on PUM (Posit ioning Un it Mode) a nd is either lines or d efined by th e SS[...]
-
Page 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 se tting) This sequence moves the print head lines o r vertical po sitions upward. The unit depends on PUM (Posit ioning Un it Mode) a nd is either lines or d efined by th e [...]
-
Page 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 = ve rtical position n 2 = horizon tal position This sequence moves the print head to a horizontal a nd vertical p rint posit[...]
-
Page 297
Backspace BS Data Stru cture ASCII BS [A] Backspace hex. 08 dec. 8 Description After r eceiving this co de the conte nt of line bu ffer is printed out. Then, the pr int head is m oved one p osition to the le ft (dependin g on the cu rrent values of cpi). Carriage Return CR Data Stru cture ASCII CR [A] carri age return hex. 0D dec. 13 Description Wh[...]
-
Page 298
Form Feed FF Data Stru cture ASCII FF [A ] form feed hex. 0C dec. 12 Description When the pr inter receive s this code, it prints th e data in the prin t buffer, t hen advanc es the pape r from the current pritn po sition to th e top-of- form positio n on the next pa ge. Cut sheet: Forms are ejecte d. The first print posit ion on the f ollowing pap[...]
-
Page 299
Partial Line Down PLD Data Stru cture ASCII PLD [A] partial line down hex. 8B dec. 139 Description If the p receding char acter is in normal p osition, PLD moves th e active po sition down to a sufficient d istance to g ive the follo wing characte rs the ap pearence of being subscripte d. If the preced ing character is in a superscript p osition, P[...]
-
Page 300
Revers e Inde x RI Data Stru cture ASCI I RI [B] reverse index hex. 8D dec. 141 Description The code RI moves the active position to the p receding line. An CR option is not permitted. 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 lef t margin of the next line.[...]
-
Page 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.[...]
-
Page 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 I ncrement (SPI), page 15, an d Set Line Spacing (SLS ), page 26. Example: CS I 80 ; SP G ). Example for calculat ion of n 1 and n 2 : The length of graphics is 80 bytes. n 2 = number of bytes divid [...]
-
Page 303
Relation ship betwee n graphics data an d needle s: 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);&quo[...]
-
Page 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[...]
-
Page 305
Miscellaneous Load Menu CSI ... SP q Data Stru cture ASCII CSI n SP "q" [B] load menu hex. 9B n 20 71 dec. 155 n 32 1 13 Description For n th e following pa rameters are a vailable: n h ex. dec. Loading o f 0 3 0 48 Default menu 1 3 1 49 Menu No. 1 2 3 2 50 Menu No. 2 3 3 3 51 Menu No. 3 4 34 52 Menu No. 4 (res erved) Up to 3 ( 4) various[...]
-
Page 306
Automatic Gap Adjustmen t (AGA) CSI ... + z Direct Setting of the Pri nt Head Distance CSI ... + y Data Stru cture ASCII CSI n "+" "z" [B] automatic gap adjustment ➊ hex. 9B n 2B 7A dec. 155 n 43 1 22 ASCII CSI n "+" "y" [B] direct setting of the pr int head dista nce ➋ hex. 9B n 2B 79 dec. 155 n 43 1 21 [...]
-
Page 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 a t the fold Ps2 missing or 0: Printhead position at left margi n du[...]
-
Page 308
Color Selection (Option) CSI ... m Data Stru cture ASCII CSI n "m" [A] set colors hex. 9B n 6D dec. 155 n 109 Description For n th e following pa rameters are a vailable: n h ex. dec. color selection 0 3 0 48 reset color 1 3 1 49 bold or increas ed intensity 2 3 2 50 alternate color or decreased inten sity ➊ 22 32 32 50 50 cancels funct[...]
-
Page 309
The relationship betwe en colo r select ion seque nc es an d the resultin g colo rs for several ribbon casset tes is shown in the following table: selected color yellow, m agenta, cya n, 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 ****) blue[...]
-
Page 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 th is MT[...]
-
Page 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);:NEXT I 100 FOR I=161 TO 167:LPRINT CHR$ (I);:NEXT I 110 LPRINT:LPR INT 120 RETURN Miscellaneous 75[...]
-
Page 312
Sheet Feeder/Paperway CSI ... { Eject Form CSI 2 J Data Stru cture ASCII CSI n ; n 1; n 2 "{" [A] set sheed feeder 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 fo llowing parame ters[...]
-
Page 313
➊ Paper is ejected also by FF or the limit, fixed by the for m length or the bottom margin. ➋ This sequence selects manu al cut sheet pa per process. ➌ This sequence selects fanfo ld paper process for tractor 1. ➍ This sequence selects fanfold paper process for op tional tractor 2. If an optional tractor 2 is installed, sequences for select[...]
-
Page 314
For compatibility to f ormer printers a sequence like CSI 21 ; x ; n { will also be accept ed. In this case, the parameter x will be ignored. Paper is i nserted on rece ipt of: CR (hex.0D; de c.13) if CR = L F 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 se [...]
-
Page 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 [...]
-
Page 316
Command Set CSI ? ... ~ Data Stru cture ASCII CSI "?" n " ~ " [B] command set hex. 9B 3F n 7E dec. 155 63 n 1 26 Description For n th e following pa rameters are a vailable: n h ex. dec. command set 1 31 49 MTPL 2 3 2 50 MTPL + IBM-Gr aphics-Printe r 3 3 3 51 MTPL + IBM-Prop rinter XL 4 3 4 52 MTPL + IBM-Prop rinter XL 24e 5 35 [...]
-
Page 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 f or codes 21 - 7E ➋ Activation of G1 for cod es 21 - 7E ➌ For n the fol[...]
-
Page 318
A set o f up to 94 charac ters is made ready for us e. Example 10 open "lpt1:" as #1 20 width #1, 32000 30 ’Example "Locking Shift" 40 t1$=" Fre nch Characters Are Printed" 50 t2$=" Ger man Characters Are Printed" 60 print #1, chr$(27),"+R" ’Designate G3 <— French Substituti on 70 ’Table [...]
-
Page 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 ASCI I ESC n F designatio n of char acter sets hex. 1B n F dec. 27 n F Description Design ation of char acter sets is a process by which a set of gr aphic symbols is [...]
-
Page 320
F hex. dec. charac ter set à 85 133 Table 863 (DOS French -Canadia n) å 86 134 Table 865 (DOS Norwa y) Ä 8E 142 Table 866 Standard (DOS Cyrillic) Å 8F 143 Table 866 Ukrain e É 90 144 Table 866 Kazakhsta n æ 91 145 Kamenicky (combin ation of table 437 and 85 2) Æ 92 146 Mazovia (code page 437 with polish char acte rs) p 70 112 (ASCII) Microso[...]
-
Page 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[...]
-
Page 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 sin gle character fro m G2 (“single shift 2”). ➋ Activation of one single charact er from G3 (“single shift 3”). The func tions SO an d SI each act i[...]
-
Page 323
Graphic descr iption of loc king shift /single shift (pages 81 - 86): Repertoi re of graphic sets Designatio n of graphic sets Invocation of one graphic characte r Invocation of graphic sets Active charact er set C = contro l code set G = grap hic sets Miscellaneous 87[...]
-
Page 324
Size of Character Se t (1 Character Set) CSI ? 50 h Size of Character Se t (2 Character Sets ) CSI ? 50 Data Stru cture ASCI I CSI "?" "5" "0" "h" [A] loading a characte r set hex. 9B 3F 35 30 68 with 256 characters ➊ dec. 155 63 53 48 104 AS C II C S I " ? " "5 " " 0" " &[...]
-
Page 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 104 AS C II C S I " ? " "5 " " 1" " " [A ] [...]
-
Page 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 area expa nsion on ➊ hex. 9B 3F 35 33 68 dec. 155 63 53 51 104 ASCII CSI "?" "5" "3" " " [A] print code area e xpansion off ➋ he[...]
-
Page 327
Printer Identification (DA) CSI .. . c Data Stru cture ASCII CSI "0" "c" [B] request for printer ind entification hex. 9B 30 63 dec. 155 48 99 ASCII CSI "?" ... "c" Response from printer hex. 9B 3F ... 63 dec. 155 63 ... 99 Description By this f unctions it is possible to g et for examp le information s of de[...]
-
Page 328
Device Status Re port (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 pa rameters are a vailable: n h ex . dec. status report direction 0 3 0 48 “Ready, no ma lfun ct io n ” printe r → computer 1 3 1 49 “Busy, no malfu nction” printer → compu[...]
-
Page 329
Enquiry for Status ENQ Data Stru cture ASCI I ENQ enquiry f or status hex. 05 dec. 5 Description With this cod e it is possib le to get 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 = b uffer over flow Bit 6 1 = parity or fr aming error Bit 7 0 = [...]
-
Page 330
Fill Character NUL Data Stru cture ASCII NUL fill character with out furthe r meaning hex. 80 dec. 128 Start of Text Block STX Data Stru cture ASCI I STX start of te xt block hex. 02 dec. 2 Description Start of a text block. With this code an y er ror me ssage (parity e rro r, memory overflo w) is cleared. This code concerns only ser ial da ta tran[...]
-
Page 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 ser ial da ta transfe r with ACK/NAK protocol. For a detaile d description see the docu mentation which comes with your pr inter. Positive Acknowledge ACK Data Stru cture ASCII ACK po sitive acknowledg e hex. 0[...]
-
Page 332
Nega t i ve Ackn o w ledge NAK Data Stru cture ASCII NAK negative acknowledge hex. 15 dec. 21 Description By sending th e negative ackn owledge code NAK a parity er ror (c ha ract er with the wro ng parity) is ind icated in the data block to be transm itted and then the data b lock is delete d. This code concerns only ser ial da ta transfe r with A[...]
-
Page 333
Delete DEL Data Stru cture ASCI I DEL [A] delete hex. 7F dec. 127 Description With this cod e th e line buffer is clear ed. Acoustic Alarm BEL Data Stru cture ASCII BEL [A ] acoustic alarm hex. 07 dec. 7 Description This code causes an a coustic alarm. Miscellaneous 97[...]
-
Page 334
Start Character “Escape” ESC Data Stru cture ASCII ESC [A] star t character ES C hex. 1B dec. 27 Description ESC is the start ch aracter f or a sub sequent program se quence (the string $$ can b e used instead o f ESC if optio n is selected in the prin ter setu p). MTPL-Start Character “Control Sequence Introducer” Data Stru cture ASCII CSI[...]
-
Page 335
Appendix A Summary of Possible Codes[...]
-
Page 336
ACK control code ACK ( Positive Acknowledge) . . . . . . . . . . . . . . . . 95 BEL acoustic alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 BS control cod e BS (Backs pace) . . . . . . . . . . . . . . . . . . . . . . . 61 CAN control c ode CAN (Can cel) . . . . . . . . . . . . . . . . . . . . . . . . 96 CR cont rol code CR ([...]
-
Page 337
CSI 0 c request for p rinter identifica tion . . . . . . . . . . . . . . . . . . . . . . 91 CSI 0 g clear ho rizontal ta b stop at current p osition . . . . . . . . . . . . . . . . 46 CSI 0 m clear all selected fon ts . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 CSI 0 m reset color . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]
-
Page 338
CSI 12 z dou ble heig ht ON (u pper ha lf) . . . . . . . . . . . . . . . . . . . . . . . 29 CSI 13 m font 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 CSI 13 y high resolu tion print quality . . . . . . . . . . . . . . . . . . . . . . . . 31 CSI 13 z double height O N (lower half ) . . . . . . . . . . . . . . . . . .[...]
-
Page 339
CSI 3 w horizont al spacing 8 ,6 cpi . . . . . . . . . . . . . . . . . . . . . . . . . 16 CSI 3 z line densit y 6 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 CSI 30 m color b lack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 CSI 31 m color r ed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]
-
Page 340
CSI 7 w horizont al spacing 1 7,1 cpi . . . . . . . . . . . . . . . . . . . . . . . . 16 CSI 7 y proportional m ode OF F . . . . . . . . . . . . . . . . . . . . . . . . . . 37 CSI 7 z set bit 8 = unc hanged . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 CSI 8 w double s trike OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4[...]
-
Page 341
DEL control code DEL (Delete ) . . . . . . . . . . . . . . . . . . . . . . . . . 97 ENQ control c ode ENQ ( Enquiry f or Status) . . . . . . . . . . . . . . . . . . 93 ESC MTPL-start cha racter fo r progra m sequenc e . . . . . . . . . . . . . . . 98 ESC ( F designate c haracter set G0 . . . . . . . . . . . . . . . . . . . . . . . . 83 ESC ) F desi[...]
-
Page 342
acoustic alarm BEL . . . . . . . . . . . . . . . . . . . . . . . 97 additional char acter spacing C SI n SP . . . . . . . . . . . . . . . . . . . 20 automatic gap adjustment OFF CSI 0 + z . . . . . . . . . . . . . . . . . . . . 70 automatic gap adjustment ON CSI 1 + z . . . . . . . . . . . . . . . . . . . . 70 Basic Measurin g Unit BMU C SI 5 SP [...]
-
Page 343
control co de HTS HTS . . . . . . . . . . . . . . . . . . . . . . 45 control co de IND (Ver tical Index) IND . . . . . . . . . . . . . . . . . . . . . . . 51 control co de LF (Line F eed) LF . . . . . . . . . . . . . . . . . . . . . . . 49 control co de NAK (Negative Acknowled ge) NAK . . . . . . . . . . . . . . . . . . . . . . 95 control co de NEL[...]
-
Page 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 . . . . . . . . . . . . . . . . . . . .[...]
-
Page 345
horizontal sp acing 17,1 cpi CSI 7 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal sp acing 20 cpi CSI 11 w . . . . . . . . . . . . . . . . . . . . 16 horizontal sp acing 5 cpi CSI 0 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal sp acing 6 cpi CSI 1 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal sp acing 7,5 cpi CSI[...]
-
Page 346
MTPL + IBM-Pro printer XL command se t CSI ? 3 ~ . . . . . . . . . . . . . . . . . . . . 80 MTPL + NEC P60/70 command set CSI ? 7 ~ . . . . . . . . . . . . . . . . . . . . 80 MTPL comma nd set CSI ? 1 ~ . . . . . . . . . . . . . . . . . . . . 80 MTPL-start c haracter f or progr am seque nce CSI . . . . . . . . . . . . . . . . . . . . . . . 98 MTPL-[...]
-
Page 347
shared interface CSI Pn + w . . . . . . . . . . . . . . . . . . . 71 single shift 2 (SS2) SO . . . . . . . . . . . . . . . . . . . . . . . 86 single shift 3 (SS3) SI . . . . . . . . . . . . . . . . . . . . . . . . 86 size of chara cter set ( 1 character se t) CSI ? 50 h . . . . . . . . . . . . . . . . . . . 88 size of chara cter set (2 c haracter s[...]
-
Page 348
Appendix B Character Sets[...]
-
Page 349
Standa rd Chara cter Se t 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 [...]
-
Page 350
International Substitution Table - norm al font dec 35 36 64 91 92 93 94 96 12 3 124 125 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 columns 8 and 9 dep end on the setting s in the p rinter’s me nue. Character Se ts B-3[...]
-
Page 351
Programmer’ s Reference Tally ANSI B a rc o d e an d LCP[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 355
[...]
-
Page 356
Barcode and LCP Printing Introduction Secured/Unsecured Mode Barcode Printing US Postnet Barcode Large Character Printing (LCP)[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 362
Example 1 10 RE M LCP unsecured mo de 20 LPRINT C HR$(27); "[? 11~"; 30 REM sele ct unsecured mode 40 LPRINT C HR$(27); "PS C0"; CHR$ (27); ""; 50 REM set cha racter size to 5 60 LPRINT C HR$(16); "5" ; CHR$(25 ); 70 LPRINT " Example f or " 80 LPRINT C HR$(15); "LC P"; CHR$( 15); " u[...]
-
Page 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[...]
-
Page 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 = "[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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)[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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-mat rix-code bar code 20 [...]
-
Page 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 [...]
-
Page 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, [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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/p lessey[...]
-
Page 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[...]
-
Page 382
Code UPC A with out HRI Type 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 code[...]
-
Page 383
Code UPC E with HRI Type 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 1[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 388
Code 128 translation table Wert Code A Code B Code C Wert Code A Code B Code C We rt 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 [...]
-
Page 389
Example 10 REM code 128 20 LPRINT CHR$(27) ;"[?11~"; 30 LPRINT CHR$(26) ;" S3;111";C HR$(25); 40 LPRINT CHR$(20) ;"ABCD012 3";CHR$(20); 50 LPRINT CHR$(27) ;"[?10~" 34 Barcode Printing[...]
-
Page 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[...]
-
Page 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[...]
-
Page 392
Example 2 EAN13 barcode with HRI and Add On 5 extention Format: DC4:nnnnnnn:nnnnnn :cnnnnn :DC4 10 REM code EAN 13 with ad d-on-5 extention 20 LPRINT CHR$(27) ;"[?11~"; 30 LPRINT CHR$(26);" K3; 111";CHR$(25); 40 LPRINT CHR$(20) ;":0123456:7890 12:012345:";CHR $(20); 50 LPRINT CHR$(27) ;"[?10~" Barcode Printin[...]
-
Page 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[...]
-
Page 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 resul ting cross sum is divided by 10. The remaining fig- ure is subtracted from the modul (10). If the rem[...]
-
Page 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 resul ting cross sum is divided by 10. The remaining in- teger value is subtracted from the modul (10). The [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 Densitie s OPEN "lpt1:" FO R RANDOM AS #1 WIDT[...]
-
Page 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"[...]
-
Page 401
Various Examples Example 1 10 LP RINT "Exampl e for dif ferent LCP c haracter siz es" 20 LPRINT C HR$(27); "[? 11~"; 30 LPRINT C HR$(27); "PS C0"; CHR$ (27); ""; 40 REM set cha racter size to 3 50 LPRINT C HR$(16); "3" ; CHR$(25 ); 60 LPRINT C HR$(15); "3" ; CHR$(15 ); 70 REM set cha ract[...]
-
Page 402
Example 2 REM Example 2 for unsecured pr inting OPEN "lpt1:" FO R RANDOM 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, "Example for "; PRINT #1, CHR$(15); "LCP" ; CHR$(15);" un se[...]
-
Page 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[...]
-
Page 404
Appendix Character Sets[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]