Programmer's ManualMatrix printer7265
7265 Programmer’s Manual 6Copyright © 2004 TallyGenicom Chapter 2 ANSICode is Hexadecimal, Ordered Column|Row89ABCDEF0 DCS á!"#$1 PU1 í%& &a
This sequence terminates previously set additional character space defined withESC SP.Following sequences will cancel the HMI mode:ESC ! print mode se
Set enlarged Print ModeSO/ESC SOReset enlarged Print ModeDC4Continuous enlarged Print ModeESC WSyntaxASCII SO or ESC SO set enlarged print mode (for
Example 10 REM enlarged character densities20 LPRINT CHR$(27);"P";: REM 10 cpi30 LPRINT "normal 10 cpi character density"40 LP
Condensed Character DensitySI/ESC SIReset Condensed Character DensityDC2Data StructureASCII SI or ESC SI condensed print ON➊hex. 0F or 1B 0Fdec. 15
Character Density 10 cpiESC PCharacter Density 12 cpiESC MCharacter Density 15 cpiESC gData StructureASCII ESC "P" set character density to
Example 10 REM single character densities20 LPRINT CHR$(27);"P";"this is pica sized"30 LPRINT CHR$(27);"M";"and
Proportional SpacingESC pData StructureASCII ESC "p" <n> or n proportional spacing ON/OFFhex. 1B 70 <n> or ndec. 27 112 <n>
Character SpacingESC SPData StructureASCII ESC SP <n>hex. 1B 20 <n>dec. 27 32 <n>DescriptionThe size of the spaces between the chara
Line SpacingFixed Line Spacing 1/8 InchESC 0Fixed Line Spacing 7/72 InchESC 1Fixed Line Spacing 1/6 InchESC 2Data StructureASCII ESC "0" set
Note that changing the line spacing also changes the number of lines per page. Changingthe line spacing does not affect the current tab stops or form
7265 Programmer’ Manual 7Copyright © 2004 TallyGenico
Variable Line Spacing n/180 Inch or n/216 InchESC 3Variable Line Spacing n/60 Inch or n/72 InchESC AVariable Line Spacing n/360 InchESC +Data Structur
Example 10 REM variable line spacing20 FOR N= 20 TO 40 STEP 1030 LPRINT CHR$(27);"3";CHR$(N)40 LPRINT "these two lines are printed w
Character StylingSuper-/Subscript Mode ONESC SSuper-/Subscript Mode OFFESC TData StructureASCII ESC "S" <n> or n super/subscript mode
Example 10 REM superscript and subscript20 LPRINT "E=M*C";30 LPRINT CHR$(27);"S";CHR$(0);40 LPRINT "2";50 LPRINT
Double Strike ONESC GDouble Strike OFFESC HData StructureASCII ESC "G" double strike ON➊hex. 1B 47dec. 27 71ASCII ESC "H" double s
Select Font and Pitch by PointESC XData StructureASCII ESC "X" <m> <nL><nH> select font and pitch by pointhex. 1B 58 <
Not all printer fonts are scaleable. Please refer to the printer’s reference manual whichfonts are supported. Scaleable fonts can only be printed in o
Print QualityESC xData StructureASCII ESC "x" <n> or n set print quality (PQ)hex. 1B 78 <n> or ndec. 27 120 <n> or nDescri
Font Type SelectionESC kData StructureASCII ESC "k" <n>hex. 1B 6B <n>dec. 27 107 <n>DescriptionCorresponding to the value
Example 10 REM font selection20 LPRINT CHR$(27);"x1"; : REM high print quality30 FOR i=0 TO 940 LPRINT CHR$(27);"k";CHR$(i);50
7265 Programmer’s Manual 8Copyright © 2004 TallyGenicom Chapter 2 ANSIPr inter HandshakingCommands DescriptionDC1 PRINTER READYIn serial interface, i
Typestyle SelectionESC qData StructureASCII ESC "q" <n> or nhex. 1B 71 <n> or ndec. 27 113 <n> or nDescriptionThis sequenc
Emphasized Mode ONESC EEmphasized Mode OFFESC FData StructureASCII ESC "E" emphasized mode ON➊hex. 1B 45dec. 27 69ASCII ESC "F" em
Underline ModeESC -Data StructureASCII ESC "-" <n> or n underline mode ON/OFFhex. 1B 2D <n> or ndec. 27 45 <n> or nDescrip
Score Selection ESC ( -Data StructureASCII ESC "(" "-" <3> NUL <1> <n1><n2>hex. 1B282D030001<n1><
Example 10 REM Score Selection20 LPRINT CHR$(27);"(-";CHR$(3);CHR$(0);CHR$(1);CHR$(1);CHR$(2);30 LPRINT "1. Underline - Double conti
Italic Mode ONESC 4Italic Mode OFFESC 5Data StructureASCII ESC "4" italic mode ON➊hex. 1B 34dec. 27 52ASCII ESC "5" italic mode OF
Print Mode Selection ESC !Data StructureASCII ESC "!" <n>hex. 1B 21 <n>dec. 27 33 <n>DescriptionThis code sequence allows
Stan- Con- En- Cond. Propor- Prop.-/ LQ LQdard densed larged enlarg. tional enlarg. enlargedPica - normal 0 4 32 36 2 34 0 32- emphas. 8 – 40 – 18 50
Example 10 REM print mode selection20 LPRINT CHR$(27);"D";CHR$(40);CHR$(0);30 FOR N = 0 TO 255 STEP 740 LPRINT CHR$(27);"!";CHR
Double HeightESC wData StructureASCII ESC "w" <n> double height ON/OFFhex. 1B 77 <n> or ndec. 27 119 <n> or nDescriptionBy
7265 Programmer’s Manual 9Copyright © 2004 TallyGenicom Chapter 2 ANSIPrinter ControlCommands DescriptionSO SHIFT OUTYou can strap the printer to star
Print PositioningHorizontal Tab StopsESC DData StructureASCII ESC "D" <n1> ...<n32> NUL set horizontal tab stops➊hex. 1B 44 <
When the printer is switched on or ESC @ is sent, horizontal tab stops are set at everyeight position (9, 17, 25, etc.).Example 10 REM horizontal
Set Horizontal and Vertical Step WidthESC eData StructureASCII ESC "e" NUL <n> Set horizontal step width➊hex. 1B 65 00 <n>dec. 2
Horizontal and Vertical Step Forward ESC fData StructureASCII ESC "f" NUL <n> Set horizontal step forward➊hex. 1B 66 00 <n>dec.
Absolute Horizontal StepESC $Data StructureASCII ESC "$" <n1><n2> set absolute horizontal stephex. 1B 24 <n1><n2>dec
Example 10 REM absolute horizontal position20 LPRINT CHR$(27);"x1";:REM select LQ30 LPRINT CHR$(27);"$";CHR$(10);CHR$(0);"
Relative Horizontal StepESC \Data StructureASCII ESC "\" <n1><n2> set relative horizontal stephex. 1B 5C <n1><n2>dec
n1= 480 MOD 256= dec.224= hex.E0Movement of 5⁄3 inches (1.67 inches) towards the left side:n = 65536 - 1.67 * 120= 65336n2= INT (65336⁄256)= dec.255
Vertical Tab StopsESC BData StructureASCII ESC "B" <n1>...<n16> NUL set vertical tab stops➊hex. 1B 42 <n1>...<n16>
When the printer is switched on no vertical tab stops are set.Example 10 REM vertical tabs20 LPRINT CHR$(27);"C";CHR$(10);:REM set form
7265 Programmer’s Manual 10Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionDEL DELETEDEL is a printable character, or is a valid graph
Set/Reset Vertical Tabs in ChannelsESC bSelect Vertical Tab ChannelESC /Data StructureASCII ESC "b" <m> <n1>...<n16> NUL
Example 10 REM vertical tabs in tab channels20 LPRINT CHR$(27);"C";CHR$(24); ’form length 24 lines30 LPRINT CHR$(27);"b";CHR$
Set Absolute Vertical Print Position ESC ( VData StructureASCII ESC "(" "V" <nL><nH><mL><mH> set absol
Set Relative Vertical Print Position ESC ( vData StructureASCII ESC "(" "v" <nL><nH><mL><mH> set relat
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 defin
Set Unit ESC ( UData StructureASCII ESC "(" "U" <nL><nH> <m> set unithex. 1B 28 55 <nL><nH><m
GraphicsGraphics 60 dpiESC KGraphics 120 dpiESC LHigh Speed Graphics 120 dpiESC YGraphics 240 dpiESC ZGraphic ModesESC *Data StructureASCII ESC &quo
Special8 PointSequencesESC * <m> ...-SequencesPrint ModeDensity in dpi(Dots per Inch)Needlesin useAdja-centDotshorizont. vertic.ESC K... ESC *
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
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 i
7265 Programmer’s Manual 11Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC c RESET TO INITIAL STATERecalls the user format present
Select Graphics ModeESC ( GData StructureASCII ESC "(" "G" <nL><nH> <m> select graphics modehex. 1B 28 47 <n
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
Graphics Mode ReassignmentESC ?Data StructureASCII ESC "?" <s> <n> reassign graphics modehex. 1B 3F <s> <n>dec. 27 6
Example 10 REM Reassigns graphics sequence20 LPRINT CHR$(27);"K";CHR$(60);CHR$(0);30 REM Standard ESC K graphics sequence40 FOR X=1 TO 6
Graphics Printing with 9 Print DotsESC ^Data StructureASCII ESC "^" <m> <n1><n2>hex. 1B 5E <m> <n1><n2>d
Example for the calculation of n1 and n2:The number of graphics bytes is 80.n2= number of bytes divided by 256= 80⁄256= dec.0= hex.00n1= remainder f
Download Character GeneratorGeneralYour printer offers you the possibility to design your own characters in normal print mode(DPQ), in NLQ, NLQ propor
To define download characters it is helpful to do this in a defined way:Draft print quality or letter quality or letter quality proportional character
Copy ROM into RAMESC :Data StructureASCII ESC ":" NUL <n> NUL copy ROM CGhex. 1B 3A 00 <n> 00dec. 27 58 0 <n> 0Description
Print Raster GraphicsESC .Data StructureASCII ESC "." <c> <v> <h> <m> <nL><nH><d1>...<dx> h
7265 Programmer’s Manual 12Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC [(p1);...(pn)lRESET MODE (ANSI)Resets mode(s) set by ES
Description of parameters:c = 0 Normal mode (not compressed)c = 1 Data Length Encoding (DLE, compressed)v Vertical resolution in dpi: 360, 180 dpih Ho
“a” Counter specifies the number of data bytes following:(counter byte) + 1 = (number of data bytes to follow) or(counter byte) = (number of data byte
Activate User Defined Character Set ESC %Data StructureASCII ESC "%" SOH activate user defined character set in RAMhex. 1B 25 01dec. 27 37 1
Download CharactersESC &The sequence for the definition of download characters receives different parameters for9 needle and 24 needle printers. U
Defining Character (9 Needle Printer)Each downloaded character is defined in a matrixfield of 9 rows high and 12 columns wide.It is only possible to u
Example (9 needle printer):The following example illustrates the definition of acharacter, the copyright symbol (a small “c” in acircle), instead of t
Example 10 REM Download Character Definition20 LPRINT CHR$(27);"x";CHR$(0);:REM select draft print quality30 LPRINT CHR$(27);"&&
Proportional Data (9 needle printer)Not all characters are the same size. “W” is considerably wider than “i”. In the proportionalprint mode, it is nec
Just add up the values of the three parts of the byte to get the value of A.1. Normal = 128Descender = 02. First column is 1 = 0First column i
Normal matrix field = 128First column is 1 = 0Last column is 12 = 11 Total value of <A> = 139Normal matrix field = 128First colum
7265 Programmer’s Manual 13Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC [(p1);(p2);<SP>{PAPER SHEARIf the paper shear opt
Example 10 REM Copy US ASCII caracter set20 LPRINT CHR$(27);"R";CHR$(0);30 LPRINT CHR$(27);":";CHR$(0);CHR$(0);CHR$(0);40 R
Definition of NLQ Characters (9 needle printer)The definition of NLQ characters is more comprehensive than the definition of draft char-acters, since
Definition of the Character GridNLQ characters consist of18 vertical dots and 12 hori-zontal dots.Within this grid every num-bered line or gap can be
The following example shows a user-defined arrow with the list of the individual columnvalues (each 3 byte) which must be transferred to the printer.D
Example 100 LPRINT CHR$(27);"x";CHR$(1);110 LPRINT CHR$(27);"&";CHR$(0);";;";120 LPRINT CHR$(0);CHR$(12);CHR$(0);130
24 needle printerData StructureASCII ESC "&" NUL <x> <y> <d0><d1><d2>n1...n3 (data first character)<d0
For LQ proportional only, it is necessary to define all 41 columns; column 42 should befree. All other print modes use the number of columns as define
Example 10 REM Download Character Definition20 LPRINT CHR$(27);"x1"30 LPRINT CHR$(27);"&";CHR$(0);"AA";40 LPRI
MiscellaneousPrint Data as CharactersESC ( ^Data StructureASCII ESC "(" "^" <nL><nH><d1>...<dn> prin
Printing Direction unidirectional for one lineESC <Set/Reset Unidirectional PrintingESC UData StructureASCII ESC "<" unidirectional pr
7265 Programmer’s Manual 14Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC ]6;4;(p3);(p4)ESC \STRAPS AND OPTIONSThis command enabl
Half-Speed PrintingESC sData StructureASCII ESC "s" <n>hex. 1B 73 <n>dec. 27 115 <n>DescriptionWith n=1 the print speed is
Single n/180 Inch or n/216 Inch Line FeedESC JSingle n/180 Inch or n/216 Inch Back FeedESC jData StructureASCII ESC "J" <n> n/180 inch
Colour SelectionESC rData StructureASCII ESC "r" <n>hex. 1B 72 <n>dec. 27 114 <n>DescriptionAccording to the value specifi
The relationship between colour selection sequences and the resulting colours for severalribbon cassettes is shown in the following table:selected col
International Character SetsESC RData StructureASCII ESC "R" <n> select international character sethex. 1B 52 <n>dec. 27 82 <
Example 10 REM international character sets20 LPRINT CHR$(27);"R";CHR$(0) ;"ASCII : ";:GOSUB 16030 LPRINT CHR$(27
Character SetsESC tData StructureASCII ESC "t" <d1> select character tablehex. 1B 74 <d1>dec. 27 116 <d1>Description Vali
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 tab
Assign Character Table ESC ( tData StructureASCII ESC "(" "t" <nL><nH><d1><d2><d3> assign character
d2d3Table name26 0 Abicomp29 16 ISO 8859-1 (Latin 1)35 0 Roman 8127 2 ISO 8859-2 (Latin 2)Please refer to the printer’s reference manual which charact
7265 Programmer’s Manual 15Copyright © 2004 TallyGenicom Chapter 2 ANSIGraphics Rendition (Fonts and Modes)Command DescriptionESC [(p1);...(pn)mSELECT
Input Data Control Bit 8 = 1ESC >Input Data Control Bit 8 = 0ESC =Input Data Control Bit 8 unchangedESC #Data StructureASCII ESC ">" s
Sheet FeederESC EMData StructureASCII ESC EM "0" deactivate sheet feeder operationhex. 1B 19 30dec. 27 25 48ASCII ESC EM "1" selec
Example 10 REM sheet feeder20 LPRINT CHR$(27);CHR$(25);"1";30 LPRINT "This text is on a form"40 LPRINT "from magazine one.&
Print Code Area Expansion ONESC 6Print Code Area Expansion OFFESC 7Data StructureASCII ESC "6" print ASCII codes 128 to 159 and 255➊hex. 1B
Example 10 REM code aera expansion15 LPRINT CHR$(27);"t1"; 20 LPRINT CHR$(27);"6";30 GOSUB 7040 LPRINT CHR$(27);"7&qu
Activate/Deactivate Graphics CharactersESC mData StructureASCII ESC "m" <n>hex. 1B 6D <n>dec. 27 109 <n>DescriptionOn rece
International Code Table ESC IData StructureASCII ESC "I" <n> or nhex. 1B 49 <n> or ndec. 27 73 <n> or nDescriptionThe ASC
Printer InitializationESC @Data StructureASCII ESC "@" printer initializationhex. 1B 40dec. 27 64DescriptionPrinter initialization means tha
Activate Paper End SensorESC 8Deactivate Paper End SensorESC 9Data StructureASCII ESC "8" Deactivate paper end sensor➊hex. 1B 38dec. 27 56AS
Control CodesBEL (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. Wh
Table of Contents7265 Programmer’s Manual iCopyright © 2004 TallyGenicomChapter 1. Introduction...
7265 Programmer’s Manual 16Copyright © 2004 TallyGenicom Chapter 2 ANSINATIONAL CHARACTER SET Command DescriptionESC [(p)x SELECT NATIONAL CHARACTER S
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)(
SOH (hex.01)(dec.01)Start Of Heading.SP (hex.20)(dec.32)SpaceVT (hex.0B)(dec.11)When the printer receives this code, it prints the data in the print b
Appendix ASummary of Possible Codes
BEL Bell . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116BS Control Code BS (Backspace) . . . . . . .
ESC * <5><n1><n2> graphics 72 dpi . . . . . . . . . . . . . . . . . . . . . . 63ESC * <6><n1><
ESC 0 set line feed to 1/8 inch . . . . . . . . . . . . . . . . . . 25ESC 1 set line feed to 7/72 inch . . . . . . . . .
ESC g character density 15 cpi . . . . . . . . . . . . . . . . . 21ESC H double strike print mode OFF . . . . . . . . . .
ESC SP <n> character spacing . . . . . . . . . . . . . . . . . . . . . 24ESC T super/subscript mode OFF . . . . . .
absolute horizontal step ESC $<n1><n2> . . . . . . . . . . . . . . . . . . . . . 51ASCII character 0 NUL . . . .
form feed FF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117form length in inches ESC C NUL <n> . .
7265 Programmer’s Manual 17Copyright © 2004 TallyGenicom Chapter 2 ANSID/N = Danish/Norwegian S/F = Swedish/FinnishCode DLocation H352336243826
national character set selection ESC R <n> . . . . . . . . . . . . . . . . . . . . . . . . 101paper end sensor, activat
set unit ESC ( U . . . . . . . . . . . . . . . . . . . . . . . . . . 62sheet feeder ESC EM <n> . . . . . . . .
Appendix B Character SetsRegister nur für SNI
The following character sets can be selected via control panel or by Escape sequences,which correspond to the selected emulation mode.The following ex
Standard Character Sethex0123456789ABCDEFdec0NUL NUL0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 2401DC1 DC11 17 33 49 65 81 97 113 129 145 161
International Substitution Table - normal fontdec 35 36 64 91 92 93 94 96 123 124 125 126hex 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7EUS ASCIIFrench
International Substitution Table - italic fontdec 163 164 192 219 220 221 222 224 251 252 253 254hex A3 A4 C0 DB DC DD DE E0 FB FC FD FEUS ASCIIFrench
Graphics Character Sethex0123456789ABCDEFdec0NUL NUL0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 2401DC1 DC11 17 33 49 65 81 97 113 129 145 161
Standard Character Set, extendedhex0123456789ABCDEFdec0NUL0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 2401DC11 17 33 49 65 81 97 113 129 145 1
Graphics Character Set, extendedhex0123456789ABCDEFdec0NUL0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 2401DC11 17 33 49 65 81 97 113 129 145 1
7265 Programmer’s Manual 18Copyright © 2004 TallyGenicom Chapter 2 ANSILine/Character SpacingCommand DescriptionESC [(p1); (p2)<SP> GLINE/CHAR
International Code Tablehex0123456789ABCDEFdec00 16 32 48 64 80 96 112 128 144 160 176 192 208 224 24011 17 33 49 65 81 97 113 129 145 161 177 193 209
International Code Table, extendedhex0123456789ABCDEFdec0SP0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 24011 17 33 49 65 81 97 113 129 145 161
Table of Character Width for Proportional PrintingOn the following pages you will find tables of character widths for proportional printing.The charac
Proportional width during scaleable font modeThe values of the character widths are depending on the selected point sizeat your printer.The width of t
24 Needle PrinterCodeChar.Widthin 1⁄360"CodeChar.Widthin 1⁄360"CodeChar.Widthin 1⁄360"hex. dec. hex. dec. hex. dec.202122232425262728
CodeChar.Widthin 1⁄360"CodeChar.Widthin 1⁄360"CodeChar.Widthin 1⁄360"hex. dec. hex. dec. hex. dec.7172737475767778797A7B7C7D7E113114115
CodeChar.Widthin 1⁄360"CodeChar.Widthin 1⁄360"CodeChar.Widthin 1⁄360"hex. dec. hex. dec. hex. dec.C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D
9 Needle PrinterCodeCharacterWidthin 1⁄120"CodeCharacterWidthin 1⁄120"CodeCharacterWidthin 1⁄120"hex. dec. hex. dec. hex. dec.2021222
CodeCharacterWidthin1⁄120"Code CharacterWidthin1⁄120"Code CharacterWidthin1⁄120"hex. dec. hex. dec. italic graph. hex. dec. italic grap
Code CharacterWidthin1⁄120"Code CharacterWidthin1⁄120"Code CharacterWidthin1⁄120"hex. dec. italic graph. hex. dec. italic graph. hex. d
7265 Programmer’s Manual 19Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC [(p1);(p2) <SP> GLINE/CHARACTER SPACINGp1 = line
“All rights reserved. Translations, reprinting or copying by any means of this manual complete or in part or in any different form requiresour explici
Programmer’s ReferenceTally ANSI (MTPL) Emulation
Table of ContentsDescription of MTPL-SequencesIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Line Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Vertical Spacing (SVS) . . .
Horizontal Tab Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Set Horizontal Tab Stop at Current Position
Color Selection (Option) . . . . . . . . . . . . . . . . . . . . . . . . . . 72Input Data Control . . . . . . . . .
Appendix A Summary of Possible CodesSorted by Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2S
Description of MTPL-SequencesIntroductionPaper and Text FormattingCharacter SpacingLine SpacingCharacter StylingPrint PositioningGraphicsMiscellaneous
Introduction Regardless of the specific MTPL sequences of your printer, this User’s Manual describesthe sum of all MTPL sequences and control codes. T
CSI means “Control Sequence Introducer” and is described by the code 9B (hex.) or ESC [ :7-Bit-environment ➛ hex. 1B, hex. 5B (= ESC [ )8-Bit-enviro
7265 Programmer’s Manual 20Copyright © 2004 TallyGenicom Chapter 2 ANSIForms SetupCommand DescriptionESC [(p1);(p2);(p3);(p4);(p5)rFORMS SETUPSets top
Character explanation and symbol description Lower case “ ” InformationsSequence only applies for 9 needle printerSequence only applies for 24 ne
Paper and Text Formatting Form Length CSI ... tData Sructure ASCII CSI n "t" [A] set form lenght in lineshex. 9B n 74dec. 155 n 116Descr
Example 10 REM form length20 LPRINT CHR$(27);"[4t";30 FOR F=1 TO 240 FOR L=1 TO 350 LPRINT "length 4:form";F;" line&
Turn ON Positioning Unit Mode (SM) CSI 11 hTurn OFF Positioning Unit Mode (RM) CSI 11 Data Structure ASCII CSI "1" "1" "h&quo
Select Size Unit (SSU) CSI ... SP IData Structure ASCII CSI n SP "I" [B] select size unithex. 9B n SP 49dec. 155 n SP 73Description For n
Set Top and Bottom Margin CSI ... rClear Top and Bottom Margin CSI rData Structure ASCII CSI n1";" n2"r" [A] set top and bottom m
Example 10 REM top and bottom margin20 LPRINT CHR$(27);"[6t";:REM form length30 LPRINT CHR$(27);"[2;5r":REM set margins40 F
Set Left and Right Margin CSI ... sClear Left and Right Margin CSI sData Structure ASCII CSI n1";" n2"s" [A] set left and rig
If only one margin is changed, the other margin will be reset to default value.If there are any logical problems (for example, left margin > right
Set Line Home (SLH) CSI ... SP USet Line Limit (SLL) CSI ... SP VData Structure ASCII CSI n SP "U" [A] set line home ➊hex. 9B n 20 55dec
7265 Programmer’s Manual 21Copyright © 2004 TallyGenicom Chapter 2 ANSISuperscript/SubscriptCommand DescriptionESC K(PLD)SUBSCRIPT PRINTINGMoves paper
Right Justification ON CSI 8 yCentering ON CSI 9 yRight Justification and Centering OFF CSI 10 yRight Justification and Centering OFF CSI : yData Stru
Character Spacing Spacing Increment (SPI) CSI ... SP GData Structure ASCII CSI n1 ";" n2SP "G" [B] [C] set spacing incrementhex.
Horizontal Spacing CSI ... wData Structure ASCII CSI n "w" [A] set cpihex. 9B n 77dec. 155 n 119Description For n the following parameters a
Example 10 REM character densities20 LPRINT CHR$(27);"[4wthis is 10 cpi, ";30 LPRINT CHR$(27);"[12wthis is 10 cpi (high resoluti
Horizontal Character Spacing (SHS) CSI ... SP KData Structure ASCII CSI n SP "K" [A] set cpihex. 9B n 20 4Bdec. 155 n 32 75Description For
Character Spacing (SCS) CSI ... SP gData Structure ASCII CSI n SP "g" [A] set character spacinghex. 9B n 20 67dec. 155 n 32 103Descriptio
Additional Character Spacing (SACS) CSI ... SP \Data Structure ASCII CSI n SP " \" [A] set additional character spacinghex. 9B n 20 5Cdec.
Reduced Character Spacing (SRCS) CSI ... SP fData Structure ASCII CSI n SP "f" [B] set reduced character spacinghex. 9B n 20 66dec. 155 n 3
Horizontal Motion Index (HMI) CSI ... pData Sructure ASCII CSI n "p" [C] set HMIhex. 9B n 70dec. 155 n 112Description n = 0...20The norma
Horizontal Step (Microspace) CSI ... qData Structure ASCII CSI n "q" [C] set horizontal stephex. 9B n 71dec. 155 n 113Description n = 1...25
7265 Programmer’s Manual 22Copyright © 2004 TallyGenicom Chapter 2 ANSIVertical MovementAbsolute positions are calculated from the top and left print
Line Spacing Vertical Spacing (SVS) CSI ... SP LData Structure ASCII CSI n SP "L" [A] set vertical spacing (lpi)hex. 9B n 20 4Cdec. 155 n
Line Density 6 lpi CSI 3 zLine Density 8 lpi CSI 4 zData Structure ASCII CSI "3" "z" [C] line density 6 lpi (= line s
Set Line Spacing (SLS) CSI ... SP hData Structure ASCII CSI n SP "h" [A] set line spacinghex. 9B n 20 68dec. 155 n 32 104Description n
Character Styling Superscript ON CSI 0 zSubscript ON CSI 1 zMicroscript ON CSI 10 zSuper-/Sub-/Microscript OFF CSI 2 zData Structure ASCII CSI n "
Example 10 REM super/sub/microscript20 LPRINT "E=M*C";30 LPRINT CHR$(27);"[0z";40 LPRINT "2";50 LPRINT CHR$(27);
Double Height ON (Upper Half) CSI 12 zDouble Height ON (Lower Half) CSI 13 zDouble Height OFF CSI 2 zData Structure ASCII CSI "1" "2&qu
Example 10 REM double height20 LPRINT "For ";CHR$(27);"[12zHeadlines ";CHR$(27);"[2z";30 LPRINT "printing in d
Print Quality CSI ... SP XCSI ... yData Structure ASCII CSI n SP "X" [A] select print quality ➊hex. 9B n 20 58dec. 155 n 32 88ASCII CSI n
Example 10 REM print quality20 LPRINT CHR$(27);"[0yThis is draft quality ";30 LPRINT CHR$(27);"[1yand this is NLQ printing."40
Select Typestyle CSI ... mData Structure ASCII CSI n "m" [A] select typestylehex. 9B n 6Ddec. 155 n 109Description This sequence defines
7265 Programmer’s Manual 23Copyright © 2004 TallyGenicom Chapter 2 ANSIVertical MovementCommands DescriptionLF LINE FEEDAdvances the paper one line ac
Example Valid for most MTPL printers.Fontregister Font 0Draft1 NLQ Courier2LQ Courier3 NLQ Sans Serif4 LQ Sans Serif5LQ Roman6LQ Script7 LQ Prest
Emphasized Mode ON CSI = zEmphasized Mode OFF CSI > zData Structure ASCII CSI "=" "z" [C] emphasized mode ONhex. 9B 3D 7Ade
Italic Mode ON CSI 3 mItalic Mode OFF CSI 23 mData Structure ASCII CSI "3" "m" [A] italic mode ONhex. 9B 33 6Ddec. 155 51 109A
Proportional Mode ON (SGR) CSI 26 m CSI 2 yProportional Mode OFF CSI 50 m CSI 7 yData Structure ASCII CSI "2" "6" &quo
Example 10 REM proportional spacing20 LPRINT CHR$(27);"[2y";30 LPRINT "this is an example with proportional spacing"40 LPRINT C
Underline Mode ON (SGR) CSI 4 mUnderline Double Mode CSI 21 mUnderline Mode OFF CSI 24 mData Structure ASCII CSI "4" "m" [A]
Overline Mode ON (SGR) CSI 53 mOverline Mode OFF CSI 55 mData Structure ASCII CSI "5" "3" "m" [A] overline mode ONhe
Double Strike ON CSI 9 wDouble Strike OFF CSI 8 wData Structure ASCII CSI "9" "w" [B] [C] double strike print mode ONhex. 9B
Graphic Size Selection (GSS) CSI ... SP CGraphic Size Modification (GSM) CSI ... SP BData Structure ASCII CSI n SP "C" [B] graphic size sele
Font Designation (FNT) CSI ... SP DData Structure ASCII CSI n1;n2SP "D" [A] designate fonthex. 9B n13B n220 44dec. 155 n159 n232 68Descrip
7265 Programmer’s Manual 24Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC [(p)e VERTICAL POSITION RELATIVEAdvances paper p decipo
Font attributes, e.g. “bold” can be specified after designation through corresponding ESCsequences.Technical Details Font Designation CodesThe use of
Print Positioning Horizontal Tab Stop HTData Structure ASCII HT [A] horizontal tab stophex. 09dec. 9Description The HT-Code moves the active print
Horizontal Tab Stops ON CSI ... u ESC H Horizontal Tab Stops OFF (TBC) CSI ... g Data Structure ASCII CSI n1"u" [A] set horizontal tab st
➌ With the sequence CSI n g for n the following parameters are available:n hex. dec. function 0 30 48 clear horizontal tab stop at current positi
Example 1 10 REM horizontal tabs20 LPRINT CHR$(27);"[4w";:REM 10 cpi30 LPRINT CHR$(27);"[10;20;30u";40 LPRINT "1234567
Line Feed LFData Structure ASCII LF [A] line feedhex. 0Adec. 10Description When the printer receives this code, it prints all the data in the pri
Vertical Tab Stop VTData Structure ASCII VT vertical tab stophex. 0Bdec. 11Description When the printer receives this code, it prints all the data
Set Vertical Tab Stop at Current Position VTSData Structure ASCII VTS [A] set vertical tab stophex. 8Adec. 138Description This code sets an horizont
Vertical Tab Stops ON CSI ... vVertical Tab Stops OFF (TBC) CSI 1 gCSI 4 gData Structure ASCII CSI n "v" [A] set vertical tab stop ➊hex. 9B
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 tabs20 LPRINT
7265 Programmer’s Manual 25Copyright © 2004 TallyGenicom Chapter 2 ANSIMarginsUse the Forms Setup command, page 2-39, to set vertical margins.Commands
Horizontal Posititon Absolute (HPA) CSI ... ’Data Structure ASCII CSI n " ‘ " [A] set horizontal position absolutehex. 9B n 60dec. 155 n
Horizontal Position Relative (HPR) CSI ... aData Structure ASCII CSI n "a" [A] set horizontal position relativehex. CSI n 61dec. CSI n 97De
Horizontal Position Backward (HPB) CSI ... jData Structure ASCII CSI n "j" [A] set horizontal position backwardhex. 9B n 6Adec. 155 n 106
Vertical Position Absolute (VPA) CSI ... dData Structure ASCII CSI n d [A] set vertical position absolutehex. 9B n 64dec. 155 n 100Description n = 1 (
Vertical Position Relative (VPR) CSI ... eData Structure ASCII CSI n "e" [A] set vertical position relativehex. 9B n 65dec. 155 n 101Descri
Vertical Position Backward (VPB) CSI ... kData Structure ASCII CSI n "k" [A] set vertical position backwardhex. 9B n 6Bdec. 155 n 107Descri
Horizontal and Vertical Position Absolute (HVP) CSI ... fData Structure ASCII CSI n1 ;n2"f" [B] [C] set horizontal and vertical position
Backspace BSData Structure ASCII BS [A] Backspacehex. 08dec. 8Description After receiving this code the content of line buffer is printed out.Then,
Form Feed FFData Structure ASCII FF [A] form feedhex. 0Cdec. 12Description When the printer receives this code, it prints the data in the print buf
Partial Line Down PLDData Structure ASCII PLD [A] partial line downhex. 8Bdec. 139Description If the preceding character is in normal position, PLD mo
Table of Contents7265 Programmer’s Manual iiCopyright © 2004 TallyGenicom Setting Bar Code Parameters...
7265 Programmer’s Manual 26Copyright © 2004 TallyGenicom Chapter 2 ANSIHorizontal MovementCommands DescriptionHT HORIZONTAL TABCauses the c
Reverse Index RIData Structure ASCII RI [B] reverse indexhex. 8Ddec. 141Description The code RI moves the active position to the preceding line. A
Graphics Graphic Modes ESC % ... CSI 6 z CSI 5 zData Structure ASCII ESC "%" n n1;n2; DATA [C] set dpi for graphicshex. 1B 25 n n13B n23B D
The vertical resolution is 72 dpi.The graphics image is printed vertically closed at a line feed of 80⁄720 inch. (Also see thesequences Spacing Increm
Relationship between graphics data and needles:Needle Data byte 1•Bit 72•Bit 63•Bit 54•Bit 45•Bit 36•Bit 27•Bit 18•Bit 0Example 1 10 REM bit image
Example 2 10 REM bit image print20 WIDTH "LPT1:",25530 LPRINT CHR$(27);"%3";CHR$(10);CHR$(0);40 GOSUB 130:REM 60 dpi50 LPRI
Miscellaneous Load Menu CSI ... SP qData Structure ASCII CSI n SP "q" [B] load menuhex. 9B n 20 71dec. 155 n 32 113Description For n the f
Automatic Gap Adjustment (AGA) CSI ... + zDirect Setting of the Print Head Distance CSI ... + yData Structure ASCII CSI n "+" "
Paper Handling CSI Ps1 Ps2 Ps3 Pn4 Pn5 + vData Structure ASCII CSI Ps1 Ps2 Ps3 Pn4 Pn5 "+" "v"hex. 9B Ps1 Ps2 Ps
Color Selection (Option) CSI ... mData Structure ASCII CSI n "m" [A] set colorshex. 9B n 6Ddec. 155 n 109Description For n the following par
The relationship between color selection sequences and the resulting colors for severalribbon cassettes is shown in the following table:selectedcolory
7265 Programmer’s Manual 27Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC [(p)` HORIZONTAL POSITION ABSOLUTECauses the print posi
Input Data Control CSI ... zData Structure ASCII CSI "9" "z" [C] set bit 8 = 1 ➊hex. 9B 39 7Adec. 155 57 122ASCII CSI "8&quo
Example 10 REM input data control20 LPRINT CHR$(27);"[7z";30 GOSUB 9040 LPRINT CHR$(27);"[9z";50 GOSUB 9060 LPRINT CHR$(27
Sheet Feeder/Paperway CSI ... {Eject Form CSI 2 JData Structure ASCII CSI n ; n1;n2"{" [A] set sheed feederhex. 9B n 3B n13B
➊ Paper is ejected also by FF or the limit, fixed by the form length or the bottom margin.➋ This sequence selects manual cut sheet paper process.➌ Thi
For compatibility to former printers a sequence like CSI 21 ; x ; n { will also be accepted.In this case, the parameter x will be ignored.Paper is ins
Reset to Initial State (RIS) ESC cCSI 6 ~Data Structure ASCII ESC "c" [A] reset to initial statehex. 1B 63dec. 27 99ASCII CSI "6"
Command Set CSI ? ... ~Data Structure ASCII CSI "?" n " ~ " [B] command sethex. 9B 3F n 7Edec. 155 63 n 126Description For n th
Activation of Character Sets SISOESC ...Data Structure ASCII SI ZG locking shift LS0 ➊hex. 0Fdec. 15ASCII SO ZG locking shift LS1 ➋hex. 0
A set of up to 94 characters is made ready for use.Example 10 open "lpt1:" as #120 width #1,3200030 ’Example "Locking Shift"4
Designation of Character Set G0 ESC ( ...Designation of Character Set G1 ESC ) ...Designation of Character Set G2 ESC * ...Designation of Character Se
7265 Programmer’s Manual 28Copyright © 2004 TallyGenicom Chapter 2 ANSITabsThis printer stores tab stops in NVRAM while power is off. Therefore, all t
F hex. dec. character set à 85 133 Table 863 (DOS French-Canadian)å 86 134 Table 865 (DOS Norway)Ä 8E 142 Table 866 Standard (DOS Cyrillic)Å 8
Example 10 REM character sets20 LPRINT CHR$(27);"(B";30 LPRINT "US-ASCII: ";:GOSUB 13040 LPRINT CHR$(27);"(A";50
Activation of Characters SO SIData Structure ASCII SO [B] ZG single shift SS2 ➊hex. 8Edec. 142ASCII SI [B] ZG single shift SS3➋hex. 8Fdec. 143Descr
Graphic description of locking shift/single shift (pages 81 - 86):Repertoire ofgraphic setsDesignation ofgraphic setsInvocation of onegraphic characte
Size of Character Set (1 Character Set) CSI ? 50 hSize of Character Set (2 Character Sets) CSI ? 50 Data Structure ASCII CSI "?" &qu
Proportional Spacing (Draft) OFF CSI ? 51 hProportional Spacing (Draft) ON CSI ? 51 Data Structure ASCII CSI "?" "5" "1&q
Print Code Area Expansion ON CSI ? 53 hPrint Code Area Expansion OFF CSI ? 53 Data Structure ASCII CSI "?" "5" "3" &
Printer Identification (DA) CSI ... cData Structure ASCII CSI "0" "c" [B] request for printer indentificationhex. 9B 30 63dec. 15
Device Status Report (DSR) CSI ... nData Structure ASCII CSI n "n" [B] device status reporthex. 9B n 6Edec. 155 n 110Description For n the f
Enquiry for Status ENQData Structure ASCII ENQ enquiry for statushex. 05dec. 5Description With this code it is possible to get a status byte from
7265 Programmer’s Manual 29Copyright © 2004 TallyGenicom Chapter 2 ANSIDot GraphicsDot graphics allows you to print individual dots at any position on
Fill Character NULData Structure ASCII NUL fill character without further meaninghex. 80dec. 128Start of Text Block STXData Structure ASCII STX st
End of Text Block ETXData Structure ASCII ETX end of text blockhex. 03dec. 3Description End of a text block.This code concerns only serial data tr
Negative Acknowledge NAKData Structure ASCII NAK negative acknowledgehex. 15dec. 21Description By sending the negative acknowledge code NAK a pari
Delete DELData Structure ASCII DEL [A] deletehex. 7Fdec. 127Description With this code the line buffer is cleared.Acoustic Alarm BELData Structu
Start Character “Escape” ESCData Structure ASCII ESC [A] start character ESChex. 1Bdec. 27Description ESC is the start character for a subsequent
Appendix ASummary of Possible Codes
ACK control code ACK (Positive Acknowledge) . . . . . . . . . . . . . . . . 95BEL acoustic alarm . . . . . . . . . . . .
CSI 0 c request for printer identification . . . . . . . . . . . . . . . . . . . . . . 91CSI 0 g clear horizontal tab stop at c
CSI 12 z double height ON (upper half) . . . . . . . . . . . . . . . . . . . . . . . 29CSI 13 m font 3 . . . . . . . .
CSI 3 w horizontal spacing 8,6 cpi . . . . . . . . . . . . . . . . . . . . . . . . . 16CSI 3 z line density 6 lpi . . .
7265 Programmer’s Manual 30Copyright © 2004 TallyGenicom Chapter 2 ANSISample Basic Program for Dot CodingFigure 2-6 Dot Graphics Example
CSI 7 w horizontal spacing 17,1 cpi . . . . . . . . . . . . . . . . . . . . . . . . 16CSI 7 y proportional mode OFF . . .
DEL control code DEL (Delete) . . . . . . . . . . . . . . . . . . . . . . . . . 97ENQ control code ENQ (Enquiry for Status)
acoustic alarm BEL . . . . . . . . . . . . . . . . . . . . . . . 97additional character spacing CSI n SP \ . . . . . . .
control code HTS HTS . . . . . . . . . . . . . . . . . . . . . . 45control code IND (Vertical Index) IND . . . . . . .
font 1 CSI 11 m . . . . . . . . . . . . . . . . . . . . 33font 2 CSI 12 m . . . . . . . . . . . . . . . . . .
horizontal spacing 17,1 cpi CSI 7 w . . . . . . . . . . . . . . . . . . . . . 16horizontal spacing 20 cpi CSI 11 w . . . . .
MTPL + IBM-Proprinter XL command set CSI ? 3 ~ . . . . . . . . . . . . . . . . . . . . 80MTPL + NEC P60/70 command set CSI ? 7 ~
shared interface CSI Pn + w . . . . . . . . . . . . . . . . . . . 71single shift 2 (SS2) SO . . . . . . . . . . . . .
Appendix B Character Sets
Standard Character SetFor the contents of the shaded areas, see table at page B-3.hex0123456789ABCDEFdec0NUL SP NUL0 16 32 48 64 80 96 112 128 144 160
7265 Programmer’s Manual 31Copyright © 2004 TallyGenicom Chapter 2 ANSIGraphics Control FunctionsThe set of control codes that are interpreted while i
International Substitution Table - normal fontdec 35 36 64 91 92 93 94 96 123 124 125 126hex 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7EUSAGreat Brita
Programmer’sReferenceTally ANSI BarcodeandLCP
Table of ContentsBarcode and LCP PrintingIntroductionSecured/Unsecured ModeData Structure ... 6Description ...
Code EAN 13 with HRI ... 23Code EAN 13 without HRI ... 24Code MSI / modified Plessey ... 25Code
AppendixCharacter SetsLCP Character Set, German ... A-3LCP Character Set, US-ASCII ... A-4OCR-A Character Set ...
Barcode and LCP PrintingIntroductionSecured/Unsecured ModeBarcode PrintingUS Postnet BarcodeLarge Character Printing (LCP)
IntroductionThis User’s Manual describes all barcode and LCP sequences and control codes, regard-less of your printer’s special barcode and LCP implem
This may cause conflict with other emulations, since the above commands may have dif-ferent functions in these emulations, for example:SI Condensed pr
The syntax for the parameters, the start, separate and stop code is represented asfollows:Figures (n) Start code Stop codeASCIIhex.dec."0" t
7265 Programmer’s Manual 32Copyright © 2004 TallyGenicom Chapter 2 ANSICommands DescriptionESC [(p1)q GRAPHICS DENSITYSets the graphics density. The p
Special FeatureIf you not get the required control codes for Barcode of ASCII code table columns 0 and 1out of your computer you can use in addition t
Secured/Unsecured ModeUnsecured mode ESC PSC0 ESC \Secured mode ESC PSC1 ESC \Data Structure ASCII ESC "P" "S" "C" "
Example 1 10 REM LCP unsecured mode20 LPRINT CHR$(27); "[?11~";30 REM select unsecured mode40 LPRINT CHR$(27); "PSC0"; CHR$(27); &
Barcode PrintingBarcodeHeaderBefore the data, which contains the barcode information, are transmitted to the printer,the barcode header must be sent.
The default parameter values are the following:Unsecured mode (see section "Secured/Unsecured mode")HRI OFF, Normal Print, Double Pass (F =
Barcode PrintFeature F forSelection ofF-CodeHRI or normal/compressed as well as single or double pass is switched via character Faccording to the foll
Barcode Types A = 2/5 matrix (default)B = 2/5 industrialC = 2/5 interleavedD = Code 11E = Code BCD matrixF = Code 39G = CodabarH = EAN 8 with HRII = E
Barcode Width By specifying an ASCII value from 0 to 3, the barcode width can be defined. This allowsideal adaption to the scanner specifications, par
All values are only valid when a new colour ribbon is used. They change depending onthe degree of wear:narrow bar: approx. -0.05 mmnarrow space: appro
Data Formats of Barcode TypesCode 2/5 Matrix Type ASyntaxFigures (n) Start code Stop codeASCIIhex.dec."0" to "9"30 to 3948 to 57&q
7265 Programmer’s Manual 33Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesChapter 3. ANSI Bar CodesThis chapter describes t
Code 2/5 Industrial Type BSyntaxFigures (n) Start code Stop codeASCIIhex.dec."0" to "9"30 to 3948 to 57":", "<&q
Code 2/5 Interleaved Type CSyntaxFigures (n) Start code Stop codeASCIIhex.dec."0" to "9"30 to 3948 to 57":" or "<
Code 11 Type DSyntaxFigures/Characters (n) Start code Stop codeASCIIhex.dec."0" to "9" and "-"30 to 39 and 2D48 to 57 an
Code BCD Matrix Type ESyntaxFigures (n) Start code Stop codeASCIIhex.dec."0" to "9"30 to 3948 to 57":"3A58":"3
Code 39 Type FSyntaxNumbers/Character (n) Start code Stop codenot fixed,recommended:not fixed,recommended:ASCIIhex.dec."0" to "9",
CODABAR Type GSyntaxNumbers/Character (n) Start code Stop codenot fixed,recommended:not fixed,recommended:ASCIIhex.dec."0" to "9",
Code EAN 8 with HRI Type HSyntaxFigures (n) CheckNumber (c)Start code SeparationcodeStop codeASCIIhex.dec."0" to "9"30 to 3948 to
Code EAN 8 without HRI Type ISyntaxFigures (n) CheckNumber (c)Start code SeparationcodeStop codeASCIIhex.dec."0" to "9"30 to 3948
Code EAN 13 with HRI Type KSyntaxFigures (n) CheckNumber (c)Start code SeparationcodeStop codeASCIIhex.dec."0" to "9"30 to 3948 to
Code EAN 13 without HRI Type LSyntaxFigures (n) CheckNumber (c)Start code SeparationcodeStop codeASCIIhex.dec."0" to "9"30 to 3948
7265 Programmer’s Manual 34Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesBefore You Begin - Set the Form LengthProgrammers tend not to trust f
Code MSI / modified Plessey Type MSyntaxFigures (n) Start code Stop codeASCIIhex.dec."0" to "9"30 to 3948 to 57":"3A58&q
Code UPC A with HRI Type NSyntaxFigures (n) CheckNumber (c)Start code SeparationcodeStop codeASCIIhex.dec."0" to "9"30 to 3948 to
Code UPC A without HRI Type OSyntaxFigures (n) CheckNumber (c)Start code SeparationcodeStop codeASCIIhex.dec."0" to "9"30 to 3948
Code UPC E with HRI Type PSyntaxFigures (n) Check Number (c) Start code Stop codeASCIIhex.dec."0" to "9"30 to 3948 to 57Calculatio
Code UPC E without HRI Type QSyntaxFigures (n) Check Number (c) Start code Stop codeASCIIhex.dec."0" to "9"30 to 3948 to 57Calcula
Code Delta distance (IBM) Type RSyntaxFigures/Characters (n) Start code Stop codeASCIIhex.dec."0" to "9" and "A" to &quo
Code 128 Type SSyntaxFigures/Characters (n) Start code Stop codeASCIIhex.dec.see tablesection "Description"none noneData Structure ASCII DC4
ExampleIf you need to print a Carriage Return (hex.0D, dec.13), as part of a barcode, you need tosend ">M" (13 + 64 = 77, see character s
Code 128 translation tableWert Code A Code B Code CWertCode A Code B Code C Wert Code A Code B Code C0 Space Space 00 36 D D 36 72 BS h 721!!01 37EE37
Example 10 REM code 12820 LPRINT CHR$(27);"[?11~";30 LPRINT CHR$(26);" S3;111";CHR$(25);40 LPRINT CHR$(20);"ABCD0123";CH
7265 Programmer’s Manual 35Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesSetting Bar Code ParametersThe ANSI control sequence that sets bar co
EAN 128 Type TSyntaxFigures/Characters (n) Start code Stop codeASCIIhex.dec.see Code 128 none noneData Structure ASCII DC4 n ... n DC4hex. 14 n ... n
Add-OnBarcodesUPC and EAN barcodes (commercial barcodes) can be extended with Add-On barcodes.The following barcodes can be extended with Add-On barco
Example 2 EAN13 barcode with HRI and Add On 5 extentionFormat: DC4:nnnnnnn:nnnnnn:cnnnnn:DC410 REM code EAN 13 with add-on-5 extention20 LPRINT CHR$(2
CheckNumberCalculationThe 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)Ty
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 &quo
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 &qu
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).Exa
US Postnet BarcodeUS Postnet Barcode ESC [ 1 SP pData Structure ASCII ESC "[" "1" SP "p"hex. 1B 5B 31 20 70dec. 27 91 49
Large Character Printing (LCP)Before you can transfer the LCP data (Large Character Printing) data to the printer, theLCP header must be sent. The LCP
Refer to the section "Secured/Unsecured Mode" at the front of the Manual for detaileddescription of the secured/unsecured mode.Data Structur
Table of Figures7265 Programmer’s Manual iiiCopyright © 2004 TallyGenicom Figure 2-1 Default Character Set for ANSI Emulation, 00 to 7F ...
7265 Programmer’s Manual 36Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesValues of all the adjustable bar code parameters are stored in NVRAM
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
Various ExamplesExample 1 10 LPRINT "Example for different LCP character sizes"20 LPRINT CHR$(27); "[?11~";30 LPRINT CHR$(27); &qu
Example 2 REM Example 2 for unsecured printingOPEN "lpt1:" FOR RANDOM AS #1WIDTH #1, 255PRINT #1, CHR$(27); "[?11~";PRINT #1, CHR$
Example 4 Unsecured Mode, vertical spacing with various enlargement factorsLegendA – a single line Feed (1/6")B – Factor 6 character; heigthC – F
AppendixCharacter Sets
The following symbol sets are available in the barcode mode. The LCP symbol sets can only be selected via Escape sequences. The OCR-A andOCR-B fonts c
LCP Character Set, german hex01234567dec0NUL0 16324864809611211 17334965819711322 18345066829811433 19355167839911544 203652688410011655 2137536985101
LCP Character Set, US-ASCIIhex01234567dec0NUL0 16324864809611211 17334965819711322 18345066829811433 19355167839911544 203652688410011655 213753698510
OCR-A Character Set (Code Page 437)hex01234567dec0NUL0 16324864809611211 17334965819711322 18345066829811433 19355167839911544 203652688410011655 2137
OCR-B Character Set (Code Page 437)hex01234567dec0NUL0 16324864809611211 17334965819711322 18345066829811433 19355167839911544 203652688410011655 2137
7265 Programmer’s Manual 37Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesBar Code Command SequencesCommand DescriptionESC [3t ENABLE BAR CODES
7265 Programmer’s Manual 38Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar Codesp1 - Bar Code StyleThis printer supports the following styles:p1 Styl
7265 Programmer’s Manual 39Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar Codesp3 - Human Readable EnableAn argument of 1 turns on the human-readabl
7265 Programmer’s Manual 40Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesOther Parametersp9 – RotationSets the absolute rotation in 90 degree
7265 Programmer’s Manual 41Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar Codesp10 - Horizontal ResolutionA value of 0 is 60 dots per inch, while a
7265 Programmer’s Manual 42Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesDelimitersA bar code delimiter is a character or control function tha
7265 Programmer’s Manual 43Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesFigure 3-3 Comma, Space, and Asterisk Delimiters!#/E" !#/E"
7265 Programmer’s Manual 44Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesHorizontal Tab DelimiterThe HT control code (09) is a valid delimiter
7265 Programmer’s Manual 45Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesHorizontal Position - Relative DelimiterThe horizontal position-relat
7265 Programmer’s Manual 1Copyright © 2004 TallyGenicom Chapter 1 IntroductionChapter 1. IntroductionThe TallyGenicom
7265 Programmer’s Manual 46Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesDelimiters and Vertical Bar CodesIf you rotate a bar code 90o or 270o
7265 Programmer’s Manual 47Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesCalculating Characters per InchWe show characters per inch at the def
7265 Programmer’s Manual 48Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesBar Code Style CharacteristicsThe following pages show specific infor
72655 Programmer’s Manual 49Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesMatrix 2 of 5 (Style 2)1 Bars per character: 3 dark bars and 2 light
7265 Programmer’s Manual 50Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesEAN-8 (Style 5)1 Bars per character: 2 dark bars and 2 light bars2 Ch
7265 Programmer’s Manual 51Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesCode 11 (Style 7)1 Bars per character: 3 dark bars and 2 light bars
7265 Programmer’s Manual 52Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesCodabar A/t, B/n, C/*, D/e (9, 10, 11, 12)1 Bars per character: 4 dar
7265 Programmer’s Manual 53Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesUPC-E (Style 14)Ten digits must be entered as input. The first five r
7265 Programmer’s Manual 54Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesCode 93 (Style 15)1 Bars per character: 3 dark bars and 3 light bars2
7265 Programmer’s Manual 55Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesMSI (Style19)1 Bars per character: 4 dark bars and 4 light bars2 Char
7265 Programmer’s Manual 2Copyright © 2004 TallyGenicom Chapter 2. ANSIThe TallyGenicom im ple m entation of ANSI X3.64 is the native control pr
7265 Programmer’s Manual 56Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesPOSTNET (Style 50)You cannot adjust POSTNET bar code attributes with
7265 Programmer’s Manual 57Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar Codes1 Bars per character: 2 tall bars and 3 short bars2 Character set: 0
7265 Programmer’s Manual 58Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesCalculating the Checksum for Code 3 of 9A 3 of 9 symbol is a variable
7265 Programmer’s Manual 59Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesThe following example illustrates the calculation of the check digits
7265 Programmer’s Manual 60Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesCode 93 Checksums for Full ASCIIYou can send any of the 128 ASCII cha
7265 Programmer’s Manual 61Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesChecksum calculation for the symbol CatData C <CTRL> + A <CT
7265 Programmer’s Manual 62Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar CodesCode 93 Full ASCII TableCode Code Code CodeASCII93 ASCII 93 ASCII 93
7265 Programmer’s Manual 63Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedChapter 4. ANSI Oversized FontThis chapter desc
7265 Programmer’s Manual 64Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedControl Function SummaryControl Function DescriptionSO Act
7265 Programmer’s Manual 65Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedCommands DescriptionESC[Pv;Ph<sp>BSET CHARACTER SIZESets the ex
7265 Programmer’s Manual 3Copyright © 2004 TallyGenicom Chapter 2 ANSIControl Code SummaryCode Hex DescriptionETX 03 ETX/ACK Communication ProtocolAC
7265 Programmer’s Manual 66Copyright © 2004 TallyGenicom Chapter 4 ANSI Oversized Oversized Versus ExpandedThere are two ANSI functions that print cha
7265 Programmer’s Manual 67Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedESC [(pv);(ph)<SP>Bwhere (pv) is the vertical expansion, (ph) i
7265 Programmer’s Manual 68Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedWhat is a Character Cell?A character cell is the rectangular array of
7265 Programmer’s Manual 69Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedOversized Character Dimensions – 0oThe width of an oversized characte
7265 Programmer’s Manual 70Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedOversized Character Dimensions - 270oThe width of a character cell is
7265 Programmer’s Manual 71Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedImplementing the Line Feed Function - 0oA good technique is to exit o
7265 Programmer’s Manual 72Copyright © 2004 TallyGenicom Chapter 4 ANSI OversizedLine Spacing and Intercharacter Spacing - 270oIf you print sideways t
Appendix A. Commands and Exceptions Supported Control Codes and Escape Sequences ACK Acknowledge BEL Bell BS Back Space CR
Commands not implemented in the 7265 ANSI Emulation ESC ] p1;pn<ST> User Defined Character Substitution (GENUDS) ESC ] p1;p2;p3;data<ST&g
Programmer's ReferenceEPSON Emulation
7265 Programmer’s Manual 4Copyright © 2004 TallyGenicomompar ison, 7 Bi t/ 8 Bi t8 B i t Hex Description 7 Bit HexIND 84 Index ESC D 1B 44NEL 85 Ne
Table of ContentsDescription of Escape SequencesIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Character Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Super-/Subscript Mode ON . . . . .
Download Character Generator . . . . . . . . . . . . . . . . . . . . . . 73General . . . . . . . . . . . . . . .
Appendix A Summary of Possible CodesSorted by Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2Sorted
Description of SequencesIntroductionPaper and Text FormattingCharacter SpacingLine SpacingCharacter StylingPrint PositioningGraphicsDownload Character
IntroductionThis User’s Manual describes the sum of all EPSON Escape sequences, regardless ofthe specific EPSON emulation used by your printer. The on
This is followed by the Data Structure in ASCII, hexadecimal and decimal syntax with thenecessary parameters, e.g.:ASCII ESC "C" <n> S
Setting the form length to 72 linesEscape Sequence ESC C <n>with n=72Transfer ASCII ESC "C" "H"hex. 1B 43 48dec.276772100 RE
Paper and Text FormattingForm Length in Lines ESC CForm Length in Inches ESC C NULData StructureASCII ESC "C" <n> set form length in l
Example 10 REM form length20 FF$=CHR$(12)30 K=140 LPRINT CHR$(27);"C";CHR$(4);50 FOR F=1 TO 360 FOR L=1 TO K70 LPRINT "length 4:
7265 Programmer’s Manual 5Copyright © 2004 TallyGenicomde is He xade c imal, Orde red Column|Row0 123 456 700 NUL@P`p1 DC1 !1AQaq2“2BRbr3 ETX DC
Set Page Length in UnitsESC ( CData StructureASCII ESC "(" "C" <nL><nH><mL><mH> set page length in unitsh
Set Page Format ESC ( cData StructureASCII ESC "(" "c" <nL><nH><tL><tH><bL><bH> set page for
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
Perforation SkipESC NReset Perforation SkipESC OData StructureASCII ESC "N" <n> set space before perforation (perforation skip)➊hex. 1
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
Right MarginESC QLeft MarginESC lData StructureASCII ESC "Q" <n> set right margin➊hex. 1B 51 <n>dec. 27 81 <n>ASCII ESC &q
Example 10 REM left and right margin20 LPRINT " 1 2 3 4 5"30 LPRINT "12345678901234567890
Justification and CenteringESC aData StructureASCII ESC "a" <n>hex. 1B 61 <n> or ndec. 27 97 <n> or nDescriptionIn some ca
Example 10 REM justification and centering20 WIDTH "LPT1:",25530 LPRINT CHR$(27);"Q";CHR$(48);:REM set right margin40 LPRI
Character SpacingSet HMI (Horizontal Motion Index)ESC cData StructureASCII ESC "c" <nL><nH> set HMI (Horizontal Motion Index)h
Commenti su questo manuale