background image

Programming interface (General)

Character tables

T5023/5023+ - Programming Guide

25

Character tables

Two areas are differentiated with the printable characters in a code table:

Area with the basic character set of each type font (Draft standard type, Ro-
man, Sans Serif). This area is also called the ’basic character table’.
The characters of the basic character table are encrypted in ASCII by the co-
des hex 20 to hex 7F (decimal 32 to 127).

Area with italic characters, special characters, graphics characters or cha-
racters defined by the user. This area is also called the ’upper character ta-
ble’.
The characters in the upper character table are encrypted in ASCII with the
codes hex 80 to hex FF (decimal 128 to 255).

The italic character set contains a basic character table (hex 20 to hex 7F) and
an italic character table (hex A0 to hex FF). The area hex 80 to hex 9F is not
utilized. In the graphics character set the upper character table contains special
graphics characters in the area hex A0 to hex FF. In the extended graphics set
the upper character table additionally contains characters in the area hex 80 to
hex 9F.

It is possible to switch over the various character sets at any time via a program
by means of appropriate ESC or CSI sequences.

The program can be switched to different fontpages by ESC se-
quences. You can find the available codepages in the appendix.

i

Summary of Contents for T5023+

Page 1: ...T5023 5023 Programming Guide...

Page 2: ...ncluding rights created by patent grants or registration of a utility mod el or design are reserved Delivery subject to availability right of technical mod ifications reserved TRADEMARKS All names of...

Page 3: ...ogical protocol 9 Application areas 11 Programming interface General 13 Encryptions Codes 13 ASCII code 14 Activating the document printer functions 16 Print effects 17 Print quality 17 Fonts 18 Font...

Page 4: ...51 Backspace of one character 53 Deleting a character 54 Cancelling a line 54 Line feed commands 55 Line feed 56 Carrying out an n 180 inch line feed 57 Determining 1 8 inch line spacing 58 Determini...

Page 5: ...e 99 Selecting the character size 15 cpi 100 Print modes 101 Switching on condensed print 102 Switching on condensed print 103 Switching off condensed print 104 Switching on elongated print for one li...

Page 6: ...s 159 Mode of operation of the graphics commands 160 Syntax of the graphics commands 163 Selecting the graphics mode 163 Switching on the single density graphics mode 168 Switching on the double densi...

Page 7: ...Writing a MSR track 215 Deleting a MSR track 217 The MICR Read Process 218 Activate parameter command MICR 221 Reading command MICR 222 Status and error messages 223 Notes on the printer status 224 Se...

Page 8: ...ors 284 Indicate Ready to load character generator 284 Loading the Character Generator 285 Loading the Firmware 286 Indicate Ready to load 286 Loading the Firmware 286 Length of the Transfer 287 Readi...

Page 9: ...indows Latin 1 329 1253 Windows Greek 330 1254 Windows Latin 5 331 1255 Windows Hebrew 332 1256 Windows Arabic 333 1257 Windows Baltic Rim 334 Chinese Characters in the Passbook Document Printer 335 P...

Page 10: ...r messages 359 Status messages 359 Status messages Bootstrap loader activated 360 Malfunctions 361 Description of the physical interface 367 General 367 Handshaking protocols 367 Interface data serial...

Page 11: ...xample connecting the printer inserting the paper etc and maintenance instructions are in a separate operating instruction Fault elimination information is in the appendix of this manual Conventions F...

Page 12: ...nguage special BASIC dialects COBOL C etc will not be dealt with here Likewise particulars of the communication protocol between the document printer and the connected computer are not taken into acco...

Page 13: ...In particular the commands for the following application areas are described Controlling the configuration of the printer Setting the page and line constants Vertical and horizontal tabulation Setting...

Page 14: ...t processing with the document printer Passbook processing with MSR Individual program steps are annotated in detail and the program structure is presented in the form of a pseudo code Chapter Loadabl...

Page 15: ...his product manual contains the following information List of all document printer commands Character set tables Printable document and paper versions paper specification Table of error messages Descr...

Page 16: ...Contents of the manual Preface 6 T5023 5023 Programming Guide...

Page 17: ...t forward The form feed of the documents can be freely selected The feeding of the docu ments is supported by an automatic alignment The print characters can be positio ned relative to all the documen...

Page 18: ...ice for passbooks This enables reading and updating from the magnetic stripe on passbooks depending on certain recording modes DIN IBM It is possible to change between various recording modes via the...

Page 19: ...characteristics are selected via the operating panel Physical interface Two interfaces are available internal interface RS232 optional external interface Centronics LAN etc in combination with a cor r...

Page 20: ...is emulation should be used for the relisation of new appli cations Also this emulation can be used for the removal of the following printers EPSON ESC P ND 90 HPR 4904 HPR 4905 IBM 4722 Proprinter XL...

Page 21: ...printer in the following areas Industry and commerce Delivery notes Freight and customs papers Invoices Envelopes Public authorities Application forms Filing cards Tax car ds Motor vehicle papers Driv...

Page 22: ...Application areas Short description of the document printer 12 T5023 5023 Programming Guide...

Page 23: ...y means of the program in a short comprehensive summary Encryptions Codes The print functions of the document printer are initiated from a program in which unique numeric encryptions codes representin...

Page 24: ...s encrypted via 7 bits whereby 128 different meanings are possible Escape sequences CSI sequences As the ASCII table provides fewer control codes than print functions the commands for the printer norm...

Page 25: ...apter and the chapter Additional com mands Examples ESC sequences Examples CSI sequences here without encryptions ESC sequence Meaning ASCII encryption ESC 4 ESC 5 ESC 0 ESC C 60 Italic print on Itali...

Page 26: ...nes 1 and 3 are printed in normal print line 2 in italic print Pseudo code Conversion into BASIC Result BEGIN PRINTLF first line PRINT ESC 4 PRINTLF second line PRINT ESC 5 PRINTLF third line END 10 L...

Page 27: ...nt Print quality The print quality is characterized by the density of the print characters and by the print rate The document printer provides two print qualities LQ mode Letter Quality The LQ mode ha...

Page 28: ...er Quality LQ mode East Europe Cyrillic Greece Hebrew Tur key The DQ Roman and Sans Serif fonts are selected via corresponding ESC se quences in the program The OCR A OCR B and ISO 8859 fonts as well...

Page 29: ...haracter is then the same width Example The font size can also be influenced by proportional type as well as by elonga ted or condensed print Proportional type With proportional type each character ta...

Page 30: ...Programming interface General 20 T5023 5023 Programming Guide Condensed print If printing takes place in 10 or 12 pitch in condensed print each character can be reduced to 60 of its width in normal p...

Page 31: ...ed 1 180 inch after the first print and the same cha racters are printed again vertically and slightly displaced With bold print also called horizontal bold print each dot of a character is printed tw...

Page 32: ...effects Programming interface General 22 T5023 5023 Programming Guide Superscript subscript Footnotes equation or special text designs are possible by switching superscript and subscript on and off Ex...

Page 33: ...esign can be influenced or the text output controlled on the basis of pre printed forms This includes for ex ample Setting and deleting horizontal and vertical tabs Setting the width of a printed page...

Page 34: ...Print effects Programming interface General 24 T5023 5023 Programming Guide Example Text adjustment Example line spacing...

Page 35: ...ble The characters in the upper character table are encrypted in ASCII with the codes hex 80 to hex FF decimal 128 to 255 The italic character set contains a basic character table hex 20 to hex 7F an...

Page 36: ...ed in character tables are printed on the basis of the respective character code and the assigned dot pattern Example By means of certain ESC sequences any dot patterns can be defined anew and assigne...

Page 37: ...oduction of se mi graphics on the basis of character sets is in principle the connecting of individual characters over several lines Example By switching over to a graphics mode special graphics comma...

Page 38: ...ents and passbooks Standardly or optionally the document printer has features with which documents or passbooks can be processed magnetic stripes can be read and written on Additional special commands...

Page 39: ...DIN A4 sheets standard forms or passbooks the logical struc ture of a document must be considered Example passbook constants 1 Page heading area is not printed during a passbook transaction 2 Area wit...

Page 40: ...stripe de pends on the respective recording mode DIN IBM Example magnetic stripe on the back of a passbook Here the magnetic stripe could contain the following information Next or last line to be prin...

Page 41: ...f necessary by appropriate commands when a document is fed in by the user When the first print or positioning command for this document is re cognized it will be drawn in and transported to the correc...

Page 42: ...Document printer specifications Programming interface General 32 T5023 5023 Programming Guide...

Page 43: ...rding the interpretation of the pseudo code instructions in the program ex amples then follows A note is then given on how the commands normally behave when incorrect command parameters are transmitte...

Page 44: ...er must be implemented in the user programm by me ans of a corresponding ASCII coding in hexadecimal or decimal encryption In the command syntax parameter values to be coded binarily are bracketed in...

Page 45: ...onstrate the standard control commands are represented independently of a certain programming language This is done by formulating the program lines in a colloquial pseudo code In practice this pseudo...

Page 46: ...BEGIN LINE PRINT SET N 0 REPEAT SET N N 1 PRINTLF Line N after title UNTIL N 6 END LINE PRINT Function Coding 1 2 3 4 5 6 7 7 7 8 Instruction block Loop Alternative Initializing Changing variable valu...

Page 47: ...un 3 for example IF N 50 THEN BEGIN END or IF n 50 THEN CALL NEW PAGE ELSE N N 1 4 for example SET N 0 5 for example SET N N 1 6 for example CALL LINE PRINT 7 The data transmission from the program to...

Page 48: ...his are the pseudo code instructions Argument Meaning x character x character a b n text A B C N or counter page pass etc Code of a printable character x from the sequence ESC x x decimal encryption o...

Page 49: ...ing the line spacing successively n 180 inch by means of ESC 3 n Printing a blank line PRINT char 27 67 0 6 or PRINT char 27 C char 0 char 6 PRINT text char 10 char 27 or PRINT text PRINT char 10 PRIN...

Page 50: ...parameters which are within the specified value range but inf ringe on the set conditions are ignored for example if horizontal absolute posi tioning is attempted outside the possible print area Exce...

Page 51: ...ommand ESC Therefore cha racters from the basic character table range from 20h to 7Fh can also be printed On the other hand for computers which can only transfer 7 bit data MSB value always constant 0...

Page 52: ...ns to the default va lues the current vertical position is defined as the new line 1 set the left margin to the value which has been set in the emulation menu adjustable via the operating panel set th...

Page 53: ...nt actions current vertical position is new line 1 For this reason ESC is not recommended for initializing para meters within a document When initializing or defining printer parameters for certain ap...

Page 54: ...printing in only one direction is sensible for example in order to ensure a pre cise positioning of the characters when printing a text or graphics thus to produ ce a neat print format ESC U n activa...

Page 55: ...Result BEGIN PRINT char 27 U char 0 bidirectional on PRINTLF bidirectional printing PRINTLF bidirectional printing PRINTLF bidirectional printing PRINT char 27 U char 1 bidirectional off PRINTLF PRINT...

Page 56: ...e to print italic or graphics characters or characters defined by the user for programs on computers which only transfer 7 bit data access to character ta ble range from hex 80 to hex FF ESC 27 1B 62...

Page 57: ...coming data to 0 zero Thus it is possible to print characters of the standard code table even for programs on compu ters which only transfer 7 bit data ESC 27 1B 61 3D ASCII character Decimal Hexadeci...

Page 58: ...e MSB specification Function ESC cancels the MSB specification deleting or setting the most significant bit resulting from ESC or ESC ESC 27 1B 35 23 ASCII character Decimal Hexadecimal An MSB specifi...

Page 59: ...online is received In no way can the printer be reactivated via the STOP key Printer online Function DC1 device control 1 switches the printer back online after it has previously been switched offlin...

Page 60: ...e ASC II Decimal Hexadecimal Function 0 48 30 Switches single sheet feeder off 1 49 31 Selects feeder compartment 1 only if 2 feeder compartments are available 2 50 32 Selects feeder compartment 2 onl...

Page 61: ...eturned on the same line If necessary an addi tional line feed must be achieved by subsequently pressing LF line feed see section Line feed commands in this chapter If CR according to presetting is in...

Page 62: ...Special character codes Standard commands 52 T5023 5023 Programming Guide Result CR without line feed CR with line feed...

Page 63: ...s prin ting In the following cases the BS command is ignored the print head is at the left edge the previous character is an HT character horizontal tab as column limit a command for an absolute or re...

Page 64: ...t character in the buffer as long as it has not yet been printed The control codes remain unchanged Cancelling a line Function CAN Cancel cancels in the printing buffer the whole text of one print lin...

Page 65: ...s whereby the smal lest unit for the line spacing is 1 180 inch The corresponding line feed is carried out depending on the set line spacing Command Function LF Line feed J ESC J n Carrying out an n 1...

Page 66: ...paper transported one line further according to the current line spacing LF 10 0A ASCII character Decimal Hexadecimal If after LF the logical bottom edge of the sheet is exceeded depen ding on the set...

Page 67: ...h positioning of the print head at the beginning of the line ESC J n has no influence on the current line spacing which results for examp le by means of LF line feed Example A demonstration of the dif...

Page 68: ...he standard line feed 1 6 inch and the 1 8 inch line spacing The printer begins with the standard line feed Result ESC 27 1B 0 48 30 ASCII character Decimal Hexadecimal The line spacing set by ESC 0 i...

Page 69: ...unction ESC 2 sets the line spacing to 1 6 inch for the subsequent line feed commands This value is the effective default value when the printer is switched on The 2 is the ASCII character for the fig...

Page 70: ...value between 0 and 255 inclusive must be given for n The 3 is the ASCII character for the figure three and not the ASCII code 3 Example A demonstration of the printout for n 1 to 20 with a measuring...

Page 71: ...d Example A demonstration of the printout using four n values 0 3 5 18 with a measuring unit of n 60 inch line spacing 6 lines are printed for each n ESC 27 1B A 65 41 n n n ASCII character Decimal He...

Page 72: ...Line feed commands Standard commands 62 T5023 5023 Programming Guide Result...

Page 73: ...spacing to n 360 inch for the subsequent line feed com mands LF A value between 0 and 255 inclusive must be given for n ESC 27 1B 43 2B n n n ASCII character Decimal Hexadecimal As the document printe...

Page 74: ...mand Function FF Sheet ejection ESC C n Determining the document length in lines ESC C NUL n Determining the document length in inches Using ESC C n or ESC C NUL n the document length depending on the...

Page 75: ...the print line is identical to the insertion position set via the operating panel value between 10 60 and 80 60 inch if print data is transmitted without a previous insertion command Howe ver a docum...

Page 76: ...h of the document The current line in which the print head is located on receipt of the command is fixed as the starting position of the document A bottom margin set by means of ESC N n is cancelled s...

Page 77: ...ically sets the maximum permitted format height as the current document length The current line in which the print head is located on receipt of the command is fixed as the starting position of the do...

Page 78: ...If tabs already set are to be reset the old tab values for the corresponding chan nel must be deleted beforehand When setting vertical tabs the appropriate absolute line position is calculated on the...

Page 79: ...h presetting of the printer or the document length set by ESC C document length in lines or by ESC C NUL document length in inches serves as the basis A value between 0 and 127 can be selected for n T...

Page 80: ...ed using ESC O Subsequent alterations to the line spacing have no influence on the set margin area If necessary after a change in the line spacing the bottom margin setting must be deleted ESC O and t...

Page 81: ...re entered as n1 n2 number of lines etc from 1 up to and including 255 in ascending order The sign NUL marks the end of the com mand Deleting tabs Via ESC B NUL the set tabs are deleted NUL characters...

Page 82: ...vertical tabs The change between the tab channels occurs via the command ESC c whereby c identifies the corresponding channel number Deleting the tabs for one channel Via ESC b c NUL the tabs set in...

Page 83: ...the current channel Vertical tabulation Function After VT all the data contained in the buffer is printed and the paper transported to the next tab in the current channel ESC 27 1B 47 2F c c c ASCII c...

Page 84: ...eder compartment 1 n 4 Selects the feeder compartment 1 n R Ejection ESC 27 1B EM 25 19 n n n ASCII character Decimal Hexadecimal This command is only to be used if a single sheet feeder is installed...

Page 85: ...ences during horizontal print positioning are described in more detail in the Additional commands chapter When setting the left and right margins or the horizontal tabs the appropriate ab solute colum...

Page 86: ...Guide right centered or with margin justification ESC a Feeding to a certain position on a line is specified in dots and calculated either starting from the left margin ESC 1 dot 1 60 inch or startin...

Page 87: ...ft edge of the document is determined by means of the value of n and the currently valid character width A value between 0 and 160 can be selected for n The margin resulting from this must not however...

Page 88: ...set margin The distance between the left and right margins must be at least 10 cpi ESC l n should be entered at the beginning of a print line as ESC l n deletes all the previously entered characters a...

Page 89: ...Standard commands Horizontal print control T5023 5023 Programming Guide 79 Result reduced in size Result original size...

Page 90: ...n and the current valid character width A value between 0 and 255 can be selected for n The n th column will then not be printed If a text line exceeds the right margin a carriage return with a line f...

Page 91: ...longated normal With proportional spacing the right margin is determined according to the character size 10 cpi Subsequent alterations to the character size have no influence on the set margin The dis...

Page 92: ...mmand PRINTLF LF Line feed is output implicitly for example by the print command PRINT LF VT Vertical tabulation FF Form feed After an additional command ESC With margin justification the text is alig...

Page 93: ...mmands which after the output of the printed text automatically carry out the CR or LF command for example PRINTLF The control commands HT Horizontal tabulation and BS Backspace are without effect wit...

Page 94: ...n1 n1 n1 n2 n2 n2 NUL 0 00 ASCII character Decimal Hexadecimal A horizontal tab jump takes place via the command HT for ASCII decimal 9 and hex 09 The absolute tab position is dependent on the set cha...

Page 95: ...D NUL HT 9 09 ASCII character Decimal Hexadecimal After switching on the printer or after initializing ESC the tabs are set at a spacing of eight 10 cpi characters The tab positions are set using the...

Page 96: ...the print head from the left sheet margin results from the following formula m 256 n 60 inch A value between 0 and 255 for n and a value between 0 and 3 for m can be sel ected m 256 n may not be more...

Page 97: ...Standard commands Horizontal print control T5023 5023 Programming Guide 87 Result reduced in size Result Original size...

Page 98: ...osition relative to the current print position The position is calculated depending on the selected print quality Draft or LQ from the values n and m using the following formula m 256 n 120 inch Draft...

Page 99: ...Programming Guide 89 Example At the beginning the Draft print quality is set Result BEGIN PRINT Displacement PRINT char 27 char 180 0 PRINTLF by 1 5 inches PRINT char 27 x char 1 LQ mode PRINT Displa...

Page 100: ...racters can be increased The additional character spacing is calculated depending on the sel ected print quality Draft or LQ from the value of n using the following formula n 120 inch Draft n 180 inch...

Page 101: ...Horizontal print control T5023 5023 Programming Guide 91 Example The character spacing is increased step by step Result BEGIN SET N 1 REPEAT SET N N 2 PRINT char 27 char N PRINTLF Spacing for n equal...

Page 102: ...ters are printed with a horizontal density of 60 print dots per inch LQ print quality Letter Quality The LQ print quality is suited for printing the corrected final versi on of a document The characte...

Page 103: ...ter i in proportional spacing is smaller than that of the character w Irregular spaces between the individual characters of a word are thus removed The character width in proportional spacing varies b...

Page 104: ...t to LQ print quality This results in a lower print rate and a higher print density 180 print dots per inch in a horizontal direc tion ESC 27 1B x 120 78 n n n ASCII character Decimal Hexadecimal Swit...

Page 105: ...lity and character size T5023 5023 Programming Guide 95 Example The character spacing is increased step by step Result BEGIN PRINT char 27 x char 0 PRINTLF print quality Draft PRINT char 27 x char 1 P...

Page 106: ...t quality mode switch with ESC x 1 The selection of further fonts not corresponding to the allocation of the IBM 2 cha racter set is via a separate command see Selection of type fonts character sets i...

Page 107: ...w In normal print all the characters have the same width whereby irregular spaces arise between the individual characters of a word Switching off proportional spacing ESC p 0 switches proportional spa...

Page 108: ...nitializing the printer if it has been selected in the emulation menu Example Result ESC 27 1B P 80 50 ASCII character Decimal Hexadecimal The character size 10 cpi can be combined with condensed and...

Page 109: ...C 27 1B M 77 4D ASCII character Decimal Hexadecimal After switching on or initializing the printer the character size is set to the value which has been set in the emulation menu The character size 12...

Page 110: ...3 67 ASCII character Decimal Hexadecimal After switching on or initializing the printer the character size is set to the value which has been set in the emulation menu The character size 15 cpi can be...

Page 111: ...J ESC E Switch on bold print J ESC F Switch off bold print J ESC G Switch on double impact print J ESC H Switch off double impact print J ESC n Switch underlining on off J ESC S n Switch on superscri...

Page 112: ...al Hexadecimal The command SI has the same effect as the command ESC SI Condensed print is switched off again using DC2 Condensed and elongated print can be combined 10 cpi and 12 cpi characters can b...

Page 113: ...Standard commands Print modes T5023 5023 Programming Guide 103 Switching on condensed print Function ESC SI has the same effect as the command SI ESC 27 1B SI 15 0F ASCII character Decimal Hexadecimal...

Page 114: ...witching off condensed print Function DC2 switches the condensed print off which was set using SI ESC SI or ESC n or in the emulation menu Example Result DC2 18 12 ASCII character Decimal Hexadecimal...

Page 115: ...ore beginning the next print line elongated print is switched off again In elongated print the width of the characters is doubled SO 14 0E ASCII character Decimal Hexadecimal The command SO has the sa...

Page 116: ...odes Standard commands 106 T5023 5023 Programming Guide Switching on elongated print for one line Function ESC SO has the same effect as the command SO ESC 27 1B SO 14 0E ASCII character Decimal Hexad...

Page 117: ...107 Switching off elongated print Function DC4 switches off the elongated print set using SO or ESC SO within the current print line DC4 20 14 ASCII character Decimal Hexadecimal Elongated print switc...

Page 118: ...is doubled Switching off elongated print ESC W 0 switches elongated print off Example Result ESC 27 1B W 87 57 n n n ASCII character Decimal Hexadecimal Elongated print can be combined with condensed...

Page 119: ...ide 109 Enable Disable Double Character Height Function All characters following this command are printed with double the normal height Parameters n 0 deactivates the mode n 1 activates the mode ESC 2...

Page 120: ...Hexadecimal Bold print is switched off again using ESC F or ESC n Bold print and double impact print can be combined Bold print can be used with draft and LQ print quality The print rate is slower wit...

Page 121: ...gramming Guide 111 Switching off bold print Function ESC F switches off the bold print set using ESC E or ESC n Example Result ESC 27 1B F 70 46 ASCII character Decimal Hexadecimal BEGIN PRINT normal...

Page 122: ...r Decimal Hexadecimal Double impact print is switched off again using ESC H or ESC n Double impact print and bold print can be combined Double impact print can be used with draft and LQ print quality...

Page 123: ...e 113 Switching off double impact print Function ESC H switches off the double impact print set using ESC G or ESC n Example Result ESC 27 1B H 72 48 ASCII character Decimal Hexadecimal BEGIN PRINT no...

Page 124: ...1 all subsequent print characters even the spaces are underlined continuously Switching off underlining ESC 0 switches off the underlining of the print characters Example Result ESC 27 1B 45 2D n n n...

Page 125: ...d reduced to half the size and displaced downwards for example in mathematical or chemical formulas Example Result ESC 27 1B S 83 53 n n n ASCII character Decimal Hexadecimal Superscript or subscript...

Page 126: ...ndard commands 116 T5023 5023 Programming Guide Switching off superscript subscript Function ESC T switches off superscript or subscript of the print characters ESC 27 1B T 84 54 ASCII character Decim...

Page 127: ...spacing Condensed and elongated print Bold and double impact print Italic print Underlining Switching on several print modes or character sizes The following list shows which values must be specified...

Page 128: ...xamples Proportional spacing bold print underlining n 2 8 128 138 12 cpi condensed print double impact print n 1 4 16 21 ESC 0 switches off all print mode combinations and sets the cha racter size to...

Page 129: ...har 27 char 0 PRINTLF 10 pitch normal PRINT char 27 char 1 PRINTLF 12 pitch normal PRINT char 27 char 2 proportional PRINT char 27 char 130 PRINTLF and underlined PRINT char 27 char 0 normal PRINT cha...

Page 130: ...t printer because of specific requirements Such commands are ignored therefore they do not cause an error Signal tone Function BEL normally activates the acoustic signal of a printer The document prin...

Page 131: ...command is not relevant for the document printer Selecting the print colour Function With a suitable printer by means of ESC r n a print colour can be selected de pending on the n value for example 0...

Page 132: ...Non executable commands Standard commands 122 T5023 5023 Programming Guide...

Page 133: ...character set ESC NUL n NUL Copying the character set into the RAM ESC R n Selecting the national character set ESC t n Selecting the character set By means of CSI sequences further character sets wi...

Page 134: ...hex 20 to hex 7F decimal 32 to 127 upper control code table for the code range from hex 80 to hex 9F decimal 128 to 159 upper character table for the code range from hex A0 to hex FF decimal 160 to 25...

Page 135: ...character table hex 20 to hex 7F or decimal 32 to 127 It contains large and small letters figures punctuation marks and special characters in the print quality selected in each case draft or LQ or the...

Page 136: ...SC 64 Selection of combined print modes all the basic character symbols of the currently selected print quality or LQ type font are printed in italics The lower control code table is occupied by contr...

Page 137: ...character sets A total of twelve character codes of the basic character set hex 23 24 40 5B 60 and 7B 7E can be occupied with national special characters using the com mand ESC R n Thirteen country ve...

Page 138: ...ere are graphics characters in the upper cha racter table For the extended graphics character set there are special charac ters and graphics characters in the complete upper character table special ch...

Page 139: ...Character set commands Character set selection T5023 5023 Programming Guide 129 Graphics character table Here the upper control code table hex 80 to 9F is not occupied by printable characters...

Page 140: ...gramming Guide Extended graphics character table The upper control code table is occupied by printable special characters After the control command ESC t 1 has been entered the extended graphics char...

Page 141: ...ce of numbers and trans ferred to the memory of the printer by means of the control code ESC A char acter code between hex 00 and hex 7F decimal 0 to 127 is assigned to a character defined by the user...

Page 142: ...haracters defined by the user can be used During definition the characters defined by the user are assigned codes from 0 to 127 If the character set defined by the user is switched on in the upper cha...

Page 143: ...on of characters For the definition of a new character the following steps are necessary 1 Design of a character 2 Transferring the design to a dot grid 3 Encryption of the dot pattern into a number s...

Page 144: ...ng points type image i e form of the character relative height and width of the character in comparison to the other charac ters of the character set position of the character in relation to the base...

Page 145: ...zontal direction the number of dots and the densitiy depend on the print quality 9 dots spacing 1 120 inch in draft print quality 29 dots spacing 1 360 inch in LQ print quality 37 dots spacing 1 360 i...

Page 146: ...Definition of characters Character set commands 136 T5023 5023 Programming Guide Dot grid for LQ print quality...

Page 147: ...t mode The following table contains the number of dots columns in a horizontal and vertical direction for the various character types Print quality print mode Charac ter width Complete width of left a...

Page 148: ...see the next section Encryption of the dot pattern The maximum complete width of a proportional character is 42 dots The complete width of the space i e the distance to the next or previous character...

Page 149: ...grid is divided into columns each of eight dot positions lying one be neath the other squares The encryption of such a dot column takes place ac cording to the following system Each square of the dot...

Page 150: ...140 T5023 5023 Programming Guide The number of the totals to be calculated data bytes depends on the size of the dot grid For example with a 24 by 29 dot grid three data bytes per column must be calcu...

Page 151: ...eight 24 or 16 dots of the dot grid used Number of data bytes per character to be transferred with normal character height 24 dots 3 bytes Number of bytes d1 3 with superscript subscript characters 16...

Page 152: ...e data bytes of one or more characters defined by the user can be transferred ESC n1 n2 n3 d0 d1 d2 data 1 d0 d1 d2 data 2 The meaning of the individual parameters is explained in the command descrip...

Page 153: ...one dot column Printing of the newly defined character in normal elongated and italic print Result BEGIN New definition of PRINT char 27 char 0 AA character A PRINT char 2 9 1 Character width PRINT ta...

Page 154: ...normal and elongated print Result BEGIN PRINT char 27 p char 1 New definition A PRINT char 27 char 1 AB and B proport PRINT char 3 10 1 Different PRINT table 1 character PRINT char 3 18 1 widths PRINT...

Page 155: ...oad the characters The control command ESC does not delete the character set defined by the user Characters defined by the user in various print qualities By means of the control command ESC the chara...

Page 156: ...12 15 cpi Transfer of the resident character set Download If only a few characters within a resident character set for example LQ type font or the standard type in draft quality are to be newly defin...

Page 157: ...set i e draft standard type LQ type or characters defined by the user will sub sequently be printed in italics Example ESC 27 1B 4 52 34 ASCII character Decimal Hexadecimal The italic characters can b...

Page 158: ...Guide Result Switching off italic print Function Italic print activated using ESC 4 is switched off again using ESC 5 ESC 27 1B 5 53 35 ASCII character Decimal Hexadecimal In the upper character table...

Page 159: ...te upper character table contains graphics characters and inter national special characters Character set defined by the user n 2 The upper character table contains the characters defined by the user...

Page 160: ...ding to the following list ESC 27 1B R 82 52 n n n ASCII character Decimal Hexadecimal n 0 USA n 1 France n 2 Germany n 3 Great Britain n 4 Denmark n 5 Sweden n 6 Italy n 7 Spain 1 n 8 Japan n 9 Norwa...

Page 161: ...user will only be printed if the currently selected print quality draft or LQ and the current print mode proportional or superscript subscript correspond to the character definition n 0 user defined c...

Page 162: ...y the user can also be used When defining the charac ters the codes from hex 00 to hex 1F must be assigned to these characters The upper character table contains graphics characters The upper control...

Page 163: ...defined by the user ESC 7 cancels the effect of the command ESC 6 The upper and lower control code tables are identical The upper character table contains graphics characters After ESC 7 is en tered...

Page 164: ...ESC The desired resident character set for example the draft standard character set or an LQ type font is activated for this using the appropriate control command for example using ESC x 1 LQ characte...

Page 165: ...r is defined n and m are identical d0 indicates the number of vertical dot columns for the left space of a cha racter d1 indicates the number of vertical dot columns for the width of a character draft...

Page 166: ...Switching on italic print Character set commands 156 T5023 5023 Programming Guide...

Page 167: ...ot graphics In other words the individual pi xels from which the graphics are composed are transferred to the printer encrypted as number sequences With a maximum density of 180 x 360 dots per inch th...

Page 168: ...inch The graphics commands switch on one of the graphics modes ex ception ESC A defined set of the subsequently transferred data is interpreted as a dot pattern similar to the definition of a charac...

Page 169: ...can be printed vertically Five dif ferent horizontal dot spacings are available All graphics modes can be switched on using the command ESC m n1 n2 by means of the selection of the parameter s The fo...

Page 170: ...document printer is switched on The number of dots printed vertically in a dot column is now fixed 8 dot or 24 dot mode The parameters n and m determine the number of dot columns to be printed number...

Page 171: ...Graphics commands Mode of operation of the graphics T5023 5023 Programming Guide 161 Example...

Page 172: ...also the case for the 24 dot graphics mode sextuple density For extensive graphics the dot data of several lines must normally be connected With the normal line spacing of 1 6 inch the picture is inte...

Page 173: ...ecimal Hexadecimal s graphics mode needles used horiz density vert density horizontal adjacent dots 0 single density 8 60 60 possible 1 double density 8 120 60 possible 2 double density double rate 8...

Page 174: ...termine the number of dot columns to be printed Number of dot columns m 256 n In 8 dot graphics mode one data byte per dot column must be specified in 24 dot graphics mode three data bytes per dot col...

Page 175: ...mmand ESC the number of dot columns 100 each time and the data bytes encryption of the shading decimal 170 followed by decimal 85 are given BEGIN PRINTLF 8 dot graphics modes SET m 0 CALL EIGHT DOT SE...

Page 176: ...INTLF Parameter S S PRINT char 27 char S PRINT char 100 0 SET N 0 REPEAT SET N N 1 PRINT char 170 char 85 UNTIL N 50 PRINTLF END EIGHT DOT BEGIN TWENTY FOUR PRINTLF Parameter S S PRINT char 27 char S...

Page 177: ...Graphics commands Syntax of the graphics commands T5023 5023 Programming Guide 167 Result...

Page 178: ...eters n and m determine the number of dot columns to be printed Number of dot columns m 256 n One data byte must be specified per dot column ESC 27 1B K 75 4B n n n m m m Data Data Data ASCII characte...

Page 179: ...eters n and m determine the number of dot columns to be printed Number of dot columns m 256 n One data byte must be specified per dot column ESC 27 1B L 76 4C n n n m m m Data Data Data ASCII characte...

Page 180: ...Y n m The parameters n and m determine the number of dot columns to be printed Number of dot columns m 256 n One data byte must be specified per dot column ESC 27 1B Y 89 59 n n n m m m Data Data Dat...

Page 181: ...rameters n and m determine the number of dot columns to be printed Number of dot columns m 256 n One data byte must be specified per dot column ESC 27 1B Z 90 5A n n n m m m Data Data Data ASCII chara...

Page 182: ...K ESC L ESC Y and ESC Z with ESC m s For m the identifier of the graphics command must be given as a character code K L Y or Z The parameter s identifies the graphics mode as in the command ESC Examp...

Page 183: ...ocument printer to the computer is in the form of responses which have the same structure as the additional commands CSI sequences Certain restrictions apply when printing documents for example non pr...

Page 184: ...ral Additional commands for controlling document and passbook processing and responses have in general the following syntactic structure CSI P1 Pn I F Description Meaning Value Value range Remarks CSI...

Page 185: ...ed to the docu ment printer in binary form Leading zeros need not be sent Parameters are separated from each other by semicolon The assign ment of a value to a parameter results only from its position...

Page 186: ...ers exceeding the specified value range are transferred This also applies if the set format height is infringed by the vertical positioning Exceptions to these rules are given with the description of...

Page 187: ...sages The data of the global printer status GPS describes a status change within the printer control which has been caused by an exceptional circumstance These exceptional circumstances can be errors...

Page 188: ...3 5023 Programming Guide Notes on the command description In the individual descriptions of the CSI commands the Pi parameters are repre sented as follows n one parameter n1 n2 n3 n1 n5 parameters in...

Page 189: ...st print or positioning command for a document is recognized this will be trans ported on to the correct processing position If the printer receives data and no sheet is available at the document prin...

Page 190: ...acter box definition The character box represents a rectangle the width of which is specified by me ans of the selected character spacing 10 characters inch width 1 10 inch 2 54 mm 12 characters inch...

Page 191: ...er this is normally needle 20 for standard character fonts with 10 and 12 characters inch line spacing needle 1 appears at the top needle 24 at the bottom on the typeface Reference lines of the charac...

Page 192: ...orizontal bar hex 2D or block graphics characters Capital letters are recommended for measuring the base line Horizontal positioning When positioning the print head horizontally a logical distinction...

Page 193: ...g edge on the left the left edge of the document is iden tical to print position 0 for all character spacings unless a left margin was set using the standard command ESC l n see the next subsection Po...

Page 194: ...on 89 of the 90th character lies 1 10 inch to the left of the right edge of the document method of counting print position 0 for the 1st character print position 1 for the 2nd character etc With chara...

Page 195: ...cal print position is the distance from the top or bottom edge of the do cument to the base line of the character Positioning of the first printing line The vertical first print position can be set in...

Page 196: ...tom reference Two additional commands CSI n p ab solute vertical positioning from the upper edge of the form and CSI n p abso lute vertical positioning from the lower edge of the form are available fo...

Page 197: ...ext lines are processed from top to bottom when processing documents on which the lines relate to the top of the document top reference With top reference the preferred direction of the printer is the...

Page 198: ...ng in order to avoid damaging the document or the print head With passbook processing the physical position of the scanning roller on the print head must also be taken into consideration Also waves in...

Page 199: ...lection of type fonts character sets ESC n p Absolute vertical positioning in relation to the top form edge ESC n p Absolute vertical positioning in relation to the bottom form edge ESC n p Relative v...

Page 200: ...paper feed of the document positioning on the base line of the logical first line see definition of default po sitioning for insertion or using the command Absolute vertical positioning CSI ESC 27 1B...

Page 201: ...d without coming into conflict with the current and future definitions of the standard Epson protocol CSI ESC 27 1B 91 5B n n n n 35 23 q q 113 71 Name ASCII character Decimal Hexadecimal If a charact...

Page 202: ...he necessary character set and font numbers Country versions for the ISO 8859 character set are selected using the com mand Select national character set ESC R n The character tables for OCR A OCR B a...

Page 203: ...ter must be switched to LQ print quality ESC x n Otherwise the character fonts selected via this command are treated as normal LQ type fonts this means that all standard commands print quality and cha...

Page 204: ...ding edge lower edge of form Parameter n positioning in a vertical direction by n 180 inch n 1 to 9999 The permitted upper limit of the parameter value is specified by the set docu ment height CSI ESC...

Page 205: ...rinting point The following differences are to be noted for the two commands for absolute ver tical positioning With the absolute vertical positioning in relation to the upper edge of the form CSI n p...

Page 206: ...permitted upper limit of the parameter value is specified by the set docu ment height and the current line position Function Via the command CSI n p a positioning of n 180 inch backwards relative to...

Page 207: ...suring operation is carried out to determine the document width The response CSI n t has the same structure as the requesting command sup plemented by the parameter n which identifies the determined d...

Page 208: ...processing Additional commands Printer 198 T5023 5023 Programming Guide Document edge detection Function The document printer ignores this function CSI ESC 27 1B 91 5B 35 23 t t 116 74 Name ASCII cha...

Page 209: ...commands for document processing T5023 5023 Programming Guide 199 Activating passbook processing Function The document printer ignores this function CSI ESC 27 1B 91 5B n n n n 36 24 t t 116 74 Name A...

Page 210: ...CSI ESC 27 1B 91 5B n n n n 37 25 t t 116 74 Name ASCII character Decimal Hexadecimal n 0 flush left default value n 1 flush right l After receiving the command CSI n t all the characters are printed...

Page 211: ...Additional commands Printer Basic commands for document processing T5023 5023 Programming Guide 201...

Page 212: ...of the printing unit on the document printing point can be influenced in the case of the following errors fatal errors CSI ESC 27 1B 91 5B n n n n 40 28 t t 116 74 Name ASCII character Decimal Hexade...

Page 213: ...ith n 2 ERROR Response Special printer message in the coding CSI n m z with n 2 NO PAPER Paper ejection deletion of all print buffers setting of default para meters Response Global printer status in t...

Page 214: ...ror the lines not yet printed are deleted in the printer and in the system driver Using the control points reported back the program can now determine the rerun point after the end of the paper Thus t...

Page 215: ...t a form In order to receive a response from the respective operator the use of the USER 1 or USER 2 key can be re quested via the Special printer messages request via CSI z see section Sta tus and er...

Page 216: ...copies is too weak the copying power can be increased with the help of this parameter 3 to 4 copies can be printed afterwards Normally this function should be switched off as the noise level and the...

Page 217: ...The control of the MICR reader is implemented as an MSR component This me ans that the same control sequences are used for reading the magnetic ink and the magnetic stripe The execution of MSR functio...

Page 218: ...ipes The print areas for passbooks with MSR processing correspond to the specifica tions in the appendix Paper specification The position of a magnetic stripe on a passbook and the measurements of the...

Page 219: ...Additional commands Printer Controlling the MSR MICR functions T5023 5023 Programming Guide 209 Horizontal fold book...

Page 220: ...agnetic stripe the reading or writing attempt will not be repeated Write read format magnetic stripe position The parameter n3 specifies the format of the data on the magnetic stripe The position of t...

Page 221: ...ameters If incorrect parameters are used these are reset to their default values with the exception of n3 The use of an incorrect n3 parameter format leads to an error message of the printer Format n3...

Page 222: ...ter found 7 magnetic track interruption CSI ESC 27 1B 91 5B 34 22 r r 114 72 Name ASCII character Decimal Hexadecimal CSI ESC 27 1B 91 5B n1 n4 n1 n4 n1 n4 n1 n4 34 22 r r 114 72 STX ETX STX ETX 2 3 0...

Page 223: ...ing attempts and error messages Depending on the recording format the start and end characters are he xadecimal encrypted as follows The command CSI r triggers the output of characters still in the pr...

Page 224: ...ide Depending on the recording format the following user data can be read Format n3 Max number information characters Information character range hex DIN 0 45 30 to 39 3E IBM 1 1 36 30to 39 3A 3 D 3E...

Page 225: ...I r The character string must contain the start and end cha racters appropriate to the selected recording format CSI ESC 27 1B 91 5B 35 23 r r 114 72 STX ETX STX ETX 2 3 02 03 Name ASCII character Dec...

Page 226: ...e program The acknowledgement contains the num ber of writing attempts and a message if an error has occured during control rea ding In the MSR unit of the document printer the characters are limited...

Page 227: ...tical position on the magnetic stripe fixed at the transfer of the MSR pa rameters CSI r is overwritten with ZERO characters the MSR track is de leted CSI ESC 27 1B 91 5B 37 25 r r 114 72 Name ASCII c...

Page 228: ...r for the MICR read function The default value is 102mm The parameter n4 is used by the application to transfer the max admissible jour nal width cheque width in normal view If the parameter n4 contai...

Page 229: ...document width is checked before the read process is started 3 Response from the printer OK with data The document is 90 mm wide or less The document is drawn in further for reading the magnetic ink c...

Page 230: ...3 Not OK The document is wider than 90mm The document remains in its position it is not moved An MSR acknowledgement is generated without read data between start and end character and contains the err...

Page 231: ...r 114 72 Name ASCII character Decimal Hexadecimal n1 0 no function parameter is ignored n2 Number of reading repetitions parameter is ignored n3 Identifier for reading format with 10 CMC7 11 E13B n4 m...

Page 232: ...tic ink character reading the corresponding parameter has to be handed over immediately before Response Parameter for MICR CSI ESC 27 1B 91 5B 34 22 r r 114 72 Name ASCII character Decimal Hexadecimal...

Page 233: ...ontrol cycle Program ESC n t Setting control point II Program ESC n z Global printer status Document printer ESC z Requesting special printer messages Program ESC n m z Special printer messages Docume...

Page 234: ...ing causes lead to this operation interruption Pressing the STOP key in the ONLINE status Opening the printing unit in the ONLINE status Document request i e a job which requires the insertion of a ne...

Page 235: ...ated by him Such a case occurs for example if there is an attempt to print or read a document outside its physical limits The cause of all errors is shown on the LCD of the document printer see the Li...

Page 236: ...initiating the control cycle Command Response control point Parameter CSI ESC 27 1B 91 5B n n n n 33 21 t t 116 74 Name ASCII character Decimal Hexadecimal CSI ESC 27 1B 91 5B n n n n 33 21 t t 116 7...

Page 237: ...per formance of applications When using CSI n t the following notes are important The request for acknowledgements via CSI n t should only occur at the end of a line or during a function switch over...

Page 238: ...prin ting unit and no error has occurred at this point in time For a definite assigning of the acknowledgement signals also CSI n t to the transferred requests the acknowledgement message contains the...

Page 239: ...For example a print task is acknowledged when all the conditions for correct execution of the print line are fulfilled this means Data is transferred Document edges are measured Feeds are executed Pap...

Page 240: ...esponse in the coding CSI n z is produced spontaneously after initializing the printer after each status change ONLINE STOP ERROR and after a break on the printer interface The global printer status c...

Page 241: ...mand requesting special printer messages Response requesting special printer messages Parameter CSI ESC 27 1B 91 5B 34 22 z z 122 7A Name ASCII character Decimal Hexadecimal CSI ESC 27 1B 91 5B n m n...

Page 242: ...lowing n m combinations for the encryption of a special printer message are possible PAPER n 1 m 4 The paper sensor on the document printing point is covered with paper again NO PAPER n 2 m 4 The pape...

Page 243: ...without parameter n8 printer type n 1 Response with parameter n8 printer type CSI ESC 27 1B 91 5B n1 n9 n1 n9 n1 n9 n1 n9 35 23 z z 122 7A Name ASCII character Decimal Hexadecimal n1 Printing station...

Page 244: ...sponse to a Break at the printer interface as response to the command Requesting printing unit parameters n 9 Memory Extension 0 No Memory Extension 1 El Journal 2 2 CG 3 Asien GB 2312 4 Asien GB 5007...

Page 245: ...urnal memory have no influ ence to the printout off the document station This function is available only in the device variant with memory extension The selection Memory Extension EL Journal must be e...

Page 246: ...or a print error occurs the data is not lost but the complete print process must be repeated When the memory is filled by approx 95 the status message End of paper journal is generated When the journ...

Page 247: ...rinting on a blank form using different print attributes Document processing printing a specimen cheque Passbook processing with MSR reading and modifying a MSR stripe and passbook printing Normally e...

Page 248: ...e text standard com mands for print attributes horizontal and vertical tabulation will be used All the print data relates logically to the left leading edge so that a conversion of the print positions...

Page 249: ...es Processing of a blank form T5023 5023 Programming Guide 239 Type area Selection of standard print functions is demonstrated in the letter below All the print functions can also be used on the journ...

Page 250: ...eft margin logical position 12 10 cpi 3 Last print position right margin logical position 72 10 cpi 4 Position of processor ab breviation 35 horizontal tab 5 Position of date 40 horizontal tab 6 First...

Page 251: ...Application examples Processing of a blank form T5023 5023 Programming Guide 241 Print effects...

Page 252: ...in italics and additional line spacing of 12 180 inch 2 Part of text connector for the RS 232 interface highlighted with bold print 3 Type font for sketch Sans Serif text centred 4 For the illustrati...

Page 253: ...3 Setting line spacing Command ESC 2 1 6 inch Remarks This command is not actually necessary for the example as 1 6 inch line spacing is the de fault value 4 Determining the document length Command ES...

Page 254: ...ext n4 42 greetings line n5 46 name of sender Remarks Here the vertical tabs in a line spacing of 1 6 inch are automatically determined in channel 0 For channel 1 to channel 7 the command ESC c n1 NUL...

Page 255: ...address Remarks Last address line place without line feed 12 Horizontal tabulation to the processor abbreviation Command HT 13 Printing processor abbreviation Remarks Printing without line feed 14 Hor...

Page 256: ...LQ mode an ad ditional character spacing of 12 180 inch is determined In draft mode this would be 12 120 inch 19 Printing reference line 20 Deleting additional spacing between the characters Command E...

Page 257: ...ype Command ESC k n Parameter n 1 Sans Serif 29 Setting centred print format adjustmentext Command ESC a n Parameter n 1 30 Printing 05 01 31 Switching off proportional spacing Command ESC p n Paramet...

Page 258: ...6 Setting character size to 10 cpi again Command ESC P 37 Switching proportional spacing on again Command ESC p n Parameter n 1 38 Printing from 09 06 to Pin numbering plan view 39 Setting print forma...

Page 259: ...Application examples Processing of a blank form T5023 5023 Programming Guide 249 43 Vertical tabulation to the name of sender Command VT 44 Printing name of sender 45 Document ejection Command FF...

Page 260: ...INTRODUCTION CALL SKETCH CALL SENDER PRINT char 12 END BEGIN PROGRAM START ROUTINE PRINT char 27 x char 1 PRINT char 27 p char 1 PRINT char 27 2 PRINT char 27 C char 72 PRINT char 27 l char 12 PRINT...

Page 261: ...d PRINTLF PRINT London W 5 PRINT char 9 PRINT js PRINT char 9 PRINTLF 14 06 99 END LETTER HEAD BEGIN REFERENCE PRINT char 11 PRINT char 27 4 PRINT char 27 char 12 PRINT RS 232 interface PRINT char 27...

Page 262: ...r Specimen PRINTLF PRINT herewith we should like to answer your query about the type of PRINT char 27 E PRINT connector for the RS 232 interface PRINT char 27 F PRINTLF of the printer PRINTLF PRINTLF...

Page 263: ...PRINTLF oooo PRINT char 27 char 0 PRINT char 27 P PRINT char 27 p char 1 PRINTLF 09 06 PRINTLF PRINTLF Pin numbering plan view PRINT char 27 a char 0 PRINT char 27 k char 0 END SKETCH BEGIN SENDER PRI...

Page 264: ...op reference The following pre conditions are assumed The document printing point is activated Passbook processing is deactivated Character set OCR A is set Specification of the horizontal leading edg...

Page 265: ...mm 60 180 inch DIN 66008 2 Distance left edge of document left edge of first OCR A character 3 10 inch DIN 66008 print position 3 with 1 10 inch character 3 Distance top edge of document bottom edge o...

Page 266: ...hereby the position x 60 inch distance from left leading edge is determined The print position 0 is identical with the left edge of the do cument 1 OCR print in coding line for cheque amount Vertical...

Page 267: ...170 180 inch Absolute dot position x 60 inch with x 1 256 2 First print character on print position 43 4 Name Vertical position from top edge via line feed of 53 180 inch Absolute dot position as 2 T...

Page 268: ...e also the command description CSI t Requesting the document width in the Additional commands chapter 2a Requesting document width optional Command CSI t Remarks The document width can be used as a di...

Page 269: ...m absolute dot position Parameters n 180 m 0 Remarks First print character on position 30 180 60 inch 5 OCR print in amount field Print data e g 00000045000 6 Setting absolute vertical position referr...

Page 270: ...t position for currency abbreviation amount 24 mm Command ESC n m Parameters n 2 m 1 Remarks First print character on position 43 258 60 inch 10 Printing currency abbreviation amount Print data 450 00...

Page 271: ...n for place name Command ESC n m Parameters n 2 m 1 see also step 11 15 Printing place name Print data for example LONDON 16 Line feed Command ESC J n Parameter n 53 see also step 13 17 Reaching horiz...

Page 272: ...Document processing Application examples 262 T5023 5023 Programming Guide Program pseudo code The corresponding numbering refers to the annotated program steps in the pre vious section...

Page 273: ...045000 END OCR LINE BEGIN TEXT PRINTING PRINT char 27 170 p PRINT char 27 char 60 0 PRINT char 27 k char 0 PRINT FOUR HUNDRED AND FIFTY PRINT char 27 char 2 1 PRINT 450 00 PRINT char 27 J char 53 PRIN...

Page 274: ...Document processing Application examples 264 T5023 5023 Programming Guide Result 1 Result from OCR LINE 2 Result from TEXT PRINTING...

Page 275: ...tic stripe is read via the MSR device and the data here line account balance is transferred to the computer After evaluation of the read data the magnetic stripe is to be written with new MSR data and...

Page 276: ...stance bottom edge of posting line 1 top edge of passbook 34 mm 241 180 inch 3 Line spacing between the posting lines 1 5 inch 4 Number of posting lines 20 5 Five posting lines present 6 Printable are...

Page 277: ...rameter combination corresponds to the default setting of the document printer for MSR processing Therefore this program step could be omitted if previously another parameter setting was not selected...

Page 278: ...or the next free posting line 6 see step 7 Note The boundary characters STX hex 02 and ETX hex 03 are also transferred 5 Updating the magnetic stripe MSR data Command CSI r STX write data ETX Paramete...

Page 279: ...1 241 180 421 Absolute vertical position 421 180 inch from top passbook edge 7 Reaching horizontal print position for beginning of posting line Command ESC n m Parameter n 150 m 0 Remarks The positio...

Page 280: ...ROUTINE CALL MSR CALL POSTING PRINT char 12 END BEGIN PROGRAM START ROUTINE PRINT char 27 PRINT 0 0 0 99 1 r PRINT char 27 1 t END PROGRAM START ROUTINE BEGIN MSR PRINT char 27 r GET char 27 GET char...

Page 281: ...with MSR T5023 5023 Programming Guide 271 Result BEGIN POSTING PRINT char 27 421 p PRINT char 27 char 150 0 Internal processing and editing of the print data PRINT Data in posting line END POSTING 6 C...

Page 282: ...Passbook processing with MSR Application examples 272 T5023 5023 Programming Guide...

Page 283: ...emulations or by simultaneously pressing the key combination USER 2 and STOP when the printer is switched on The printer cannot be operated when the load mode is running The menu settings are not avai...

Page 284: ...nctions are stopped immediately The load software is started and generates the acknowledgment ESC BEL L after 500ms min for synchronization Special features of the RS 232 interface The data transfer r...

Page 285: ...he passbook and document printer using the interface Reasons for a transfer can be Initial operation production Installation of new electronics i g for service Loading a firmware update Loading a nati...

Page 286: ...Stop mechanic delete remaining data receipt Switch to load function Host Document printer Hand over module identifier Request module identifier delete corresponding flash memory area send a receipt C...

Page 287: ...n the appropriate module can be transferred After the completion of the load process the complete file ID is transferred as an acknowledgment This indicates whether the new module has been transferred...

Page 288: ...e of the relevant data module is identified by the file extension The following table provided a description of the extensions and their meanings Extension Meaning FNT Font MOD Firmware FRM Bootstrap...

Page 289: ...is deleted from the input buffer The mechanical functions are stopped immediately The load software is started and generates the acknowledgment ESC BEL L after 500ms min for synchronization Parameters...

Page 290: ...e bootstrap loader to test the electronics and to start the loaded firmware Note The bootstrap loader is not exited unless a valid firmware and one of the character generators has been loaded The firm...

Page 291: ...ESCAPE Sequences Bootstrap T5023 5023 Programming Guide 281 Request Module ID Data ID Function This command is used to request the data ID All data modules loaded are reported ESC 27 1B I 73 49 D 68 4...

Page 292: ...pt for the last entry which ends with a semicolon The following table shows the structure of an entry Length Contents Meaning 1 ESC ESCAPE 1 I Information 1 D Data ID Length Contents Meaning 5 xxx Ide...

Page 293: ...d the recorded data is deleted from the journal memory if the secondary character generator location is selected when loading ESC ID MOD yymmdd rrvv BOOTPROM FRM ESC ID MOD yymmdd rrvv BOOTPROM FRM MO...

Page 294: ...e following formula is used to calculate the number of bytes to be loaded Number n1 256 n2 65536 n3 Parameter d target The passbook and document printer with the model variants Medium or Comfort accom...

Page 295: ...sferred after the character sequence MOD It is not allowed to load other data than data with the file extension FNT A checksum is placed at the end of the file After the load process this checksum can...

Page 296: ...5536 n3 Ready to load is indicated by sending the sequence ESC M O D to the host Loading the Firmware Function MOD is a part of the file and may not be transferred again before the data Data is transf...

Page 297: ...of the data to be transferred is stored in the file after the file header A 48 byte header is stored at the beginning of the file This ID record has the following structure Offset Length Contents Mea...

Page 298: ...edgment if the firmware is available During the reboot phase the interface cannot be addressed for 10s max Problems during the load process If the loaded data is determined as not valid the appropriat...

Page 299: ...journal function should be copied from the memory module to the electronics This function is reserved for service calls when it is no longer possible to print data The response has the following struc...

Page 300: ...Length of the Transfer Loadable Firmware Character Genera 290 T5023 5023 Programming Guide...

Page 301: ...rvice menu on the printer s operating panel The Asian character sets will not be available if these requirements are not fulfilled Settings on the printer operating panel The control of the Asian char...

Page 302: ...sequences will be executed where possible When character codes from the 1 byte range of characters are transferred the LQ font currently set and the corresponding character set will be printed GB 231...

Page 303: ...r pitch currently set 10 12 or 15 CPI will be used when character codes are transferred from the 1 byte character range The character pitch will be doubled accordingly for Chinese characters 6 6 or 7...

Page 304: ...SON ESC P n 1 GB 2312 80 2 byte mode GB2312 n 2 GB 5007 2 byte mode GB5007 n 3 GB 5199 2 byte mode GB5199 n 4 9 GB xxxx 2 byte mode GB reserved for additional font tables n 10 FANG SONG GB2312 80 GB50...

Page 305: ...NT 2000 XP If the document printer is to be connected to a computer with the operating system Windows NT 2000 XP using a serial interface the following special feature must be observed If one of these...

Page 306: ...Windows NT Drivers Specific Operating System Dependencies 296 T5023 5023 Programming Guide...

Page 307: ...nt for one line SI 0F Switching on condensed print DC 1 11 Printer online DC 2 12 Switching off condensed print DC 3 13 Printer offline DC 4 14 Switching off elongated print CAN 18 Deleting a characte...

Page 308: ...1B 34 Switching on italic print ESC 5 1B 35 Switching off italic print ESC 6 1B 36 Switching on the character set extension ESC 7 1B 37 Switching off the character set extension ESC NUL n NUL 1B 3A 00...

Page 309: ...gin ESC P 1B 50 Selecting the character size 10 cpi Pica ESC Q n 1B 51 n Determining the right margin ESC R n 1B 52 n Selecting a national character set ESC S n 1B 53 n Switching on superscript subscr...

Page 310: ...passbook processing ESC n t 1B 5B n 25 74 Specification of the horizontal leading edge ESC n t 1B 5B n 28 74 Mode switch over for handling end of paper ESC n t 1B 5B n 29 74 Setting control point II E...

Page 311: ...e ignored Command ASCII hex Function ESC k n 1B 6B n Selecting the LQ type font ESC l n 1B 6C n Determining the left margin ESC p n 1B 70 n Switching proportional spacing on off ESC r n 1B 72 n Select...

Page 312: ...ry parameter is 1 to 4 digit For example 5 can be send as 5 05 005 or 0005 and has allways the same value Barcode type The parameter m defines the following barcode types m Barcode type 5 CODE39 lower...

Page 313: ...byte enables or disables plain language prin ting of the barcode Human Readable Line H R L in the lower part n Human Readable Line 0 Disabled 1 Enabled Human readable characters are printed with the...

Page 314: ...BEL E 1B 07 45 Leaving the load function ESC I D 1B 49 44 Requesting data characteristic ESC F N T n1 n2 n3 d 1B 46 4E 54 n1 n2 n3 d Ready to load character generator M O D Daten 24 4D 4F 44 24 Chara...

Page 315: ...robanking limited DQ LQ Roman LQ Sans Serif OCR A B 10 12 15 cpi 10 cpi CP15_850 FNT Code Page 850 Latin 1 Includes PC Code Page 850 Latin 1 Western Northern Europe Eurobanking limited DQ LQ Roman LQ...

Page 316: ...ted DQ LQ Roman LQ Sans Serif OCR A B 10 12 15 cpi 10 cpi CP151252 FNT Windows Code Page 1252 Latin 1 Eurobanking limited DQ LQ Roman LQ Sans Serif OCR A B 10 12 15 cpi 10 cpi CP151253 FNT Windows Cod...

Page 317: ...Appendix Character Sets T5023 5023 Programming Guide 307 Code Page 437...

Page 318: ...Character Sets Appendix 308 T5023 5023 Programming Guide ISO 8859 2 Latin No 2...

Page 319: ...Appendix Character Sets T5023 5023 Programming Guide 309 ISO 8859 5 Cyrillic...

Page 320: ...Character Sets Appendix 310 T5023 5023 Programming Guide ISO 8859 7 Greek...

Page 321: ...Appendix Character Sets T5023 5023 Programming Guide 311 ISO 8859 8 Hebrew...

Page 322: ...Character Sets Appendix 312 T5023 5023 Programming Guide ISO 8859 9 Latin No 5...

Page 323: ...Appendix Character Sets T5023 5023 Programming Guide 313 ISO 8859 15...

Page 324: ...Character Sets Appendix 314 T5023 5023 Programming Guide OCR A...

Page 325: ...Appendix Character Sets T5023 5023 Programming Guide 315 OCR B...

Page 326: ...Character Sets Appendix 316 T5023 5023 Programming Guide Code Page ISO 2...

Page 327: ...Appendix Character Sets T5023 5023 Programming Guide 317 Code Page 775 Latin Baltic...

Page 328: ...Character Sets Appendix 318 T5023 5023 Programming Guide Code Page 850 Latin 1...

Page 329: ...Appendix Character Sets T5023 5023 Programming Guide 319 Code Page 852 Latin 2...

Page 330: ...Character Sets Appendix 320 T5023 5023 Programming Guide Code Page 855...

Page 331: ...Appendix Character Sets T5023 5023 Programming Guide 321 Code Page 857 Latin 5...

Page 332: ...Character Sets Appendix 322 T5023 5023 Programming Guide PC Code Page 858...

Page 333: ...Appendix Character Sets T5023 5023 Programming Guide 323 Code Page 860 Portugal For addresses 00h to 7Fh see Code Page 437...

Page 334: ...Character Sets Appendix 324 T5023 5023 Programming Guide Code Page 866 Latin Cyrillic...

Page 335: ...Appendix Character Sets T5023 5023 Programming Guide 325 Code Page 869 Latin Greek...

Page 336: ...acter Set customer specific 550 ThaiRoman 553 ThaiDQ 560 ThaiScript The customer specific character set can only be controled with the font number and the respective ESC sequence see the section Selec...

Page 337: ...Appendix Character Sets T5023 5023 Programming Guide 327 1250 Windows Latin 2...

Page 338: ...Character Sets Appendix 328 T5023 5023 Programming Guide 1251 Windows Cyrillic...

Page 339: ...Appendix Character Sets T5023 5023 Programming Guide 329 1252 Windows Latin 1...

Page 340: ...Character Sets Appendix 330 T5023 5023 Programming Guide 1253 Windows Greek...

Page 341: ...Appendix Character Sets T5023 5023 Programming Guide 331 1254 Windows Latin 5...

Page 342: ...Character Sets Appendix 332 T5023 5023 Programming Guide 1255 Windows Hebrew...

Page 343: ...Appendix Character Sets T5023 5023 Programming Guide 333 1256 Windows Arabic...

Page 344: ...Character Sets Appendix 334 T5023 5023 Programming Guide 1257 Windows Baltic Rim...

Page 345: ...Appendix Chinese Characters in the Passbook T5023 5023 Programming Guide 335 Chinese Characters in the Passbook Document Printer Printer One byte mode ESC 0 q...

Page 346: ...Chinese Characters in the Passbook Document Printer Appendix 336 T5023 5023 Programming Guide Printer Two byte mode GB xxxx encoding ESC n q n 1 100...

Page 347: ...ng Guide 337 BIG 5 encoding ESC n q n 101 200 A140 A24E Symbols A24F A258 Various special characters A259 A261 Chinese characters A262 A2AE Graphic characters A2AF A2B8 Arabian digits A2B9 A2C2 Roman...

Page 348: ...letters A344 A35B Greek capital letters A35C A373 Greek small letters A374 A3BA Zhuyin characters A3BB A3BF Zhuyin diacritic characters A440 C67E Hanzi 5401 characters frequently used C6A1 C8D4 Charac...

Page 349: ...1 0022 0023 0024 002F MOD blank yymmdd blank rrvv blank a a TBF blank a a xxxx blank Identifier Separator Date Separator Release version Separator File name Separator Extension Separator Length Defaul...

Page 350: ...rinter control parameter 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 002a 002b 002c 003f ASCII int long long long int int int int int int Font name Font number1 Pointer to start address First co...

Page 351: ...0 10 02 00 3f ff 80 10 00 00 00 00 00 7f ff ff 3f ff fe 20 c0 80 3f 31 c0 78 1f 80 20 00 00 11 ff 80 10 82 00 10 82 08 11 ff 08 10 80 0c 10 00 0e 1f ff fc 3f ff f8 00 00 00 00 00 00 x x x x x x x x x...

Page 352: ...ex to A9 FEhex than the character set GB2312 80 The character pool and the addressing of the Chinese characters are however identical Font type The font type FANG SONG is used to represent the Chinese...

Page 353: ...able Character Generators for the document printer Description CP15ASIA TBF Rev date 1001 28 06 00 Default font can be set on the operating panel Contents Font Font No GB2312 symbols 1 GB5007 symbols...

Page 354: ...Chinese Characters in the Passbook Document Printer Appendix 344 T5023 5023 Programming Guide...

Page 355: ...RC check and a check of the transmit and status sequence bits are not carried out message type byte The interface parameters are set to fixed values except for the baud rate 8 bits no parity 2 stop bi...

Page 356: ...inter Exception If an error occurs the printer need not be switched of see IBM4722 The STOP key can be used to initiate a reset which automatically activates the ONLINE status When the USER 2 key is p...

Page 357: ...r Set Character set 2 IBM4722 Switch 6 Automatic CR Emulation menu CR CR CR IBM4722 Switch 7 Reserved Character set 2 IBM4722 Switch interface card SW 1 3 Baud rate Interface menu 9600 4800 2400 1200...

Page 358: ...Emulation The function of loadable characters is not supported due to different print head resolutions The print attributes overscore and double height are not supported Operation The operation and t...

Page 359: ...B Vertical tabulation X X FF 12 0C Sheet ejection page feed X X 2 6 from upper sheet margin adjustable with XL24 CR 13 0D Carriage Return X X CR adjustable with LF SO 14 0E Switching on elongated prin...

Page 360: ...t line spacing X X ESC B NUL 27 66 0 1B 42 00 Define delete vertical tabulators X X None ESC C NUL n 27 67 0 n 1B 43 00 n Define page length in inch document journal X X 11 3 12 1 ESC C n 27 67 n 1B 4...

Page 361: ...nting X X Off ESC X n m Setting left and right margin X X 1 ESC Y n m 27 89 n m 1B 59 n m Switching On graphics mode double density and double speed 1 72 vert X X ESC Z n m 27 90 n m 1B 5A n m Switchi...

Page 362: ...l Hex Function 4722 XL24 Default 3 ESC SO 27 14 1B 0E Switching on elongated printing for one line X Switched off ESC SI 27 15 1B 0F Switching on condensed printing X Switched off ESC n 27 45 n 1B 2D...

Page 363: ...on during the initialisation Range of Commands for the OLIVETTI PR50 ASC II Hex Function Remark LF 0A Line feed forward FF 0C Form Feed CR 0D Carriage return ESC n 1B 23 Assign reference for ESC L nnn...

Page 364: ...primary ID ESC 1B 5B Select character set ESC 1B 5C Record and check magnetic stripe ESC 1B 5D Magnetic read ESC 0 1B 5E 30 Change emulation ESC _ 1B 5F Select manual operator booking mode ESC 1B 60 S...

Page 365: ...only be set at the operating panel only be set at the operating panel The character set required from the Olivetti emulation are marked with a OL ending e g CP1250OL FNT or CP_437OL FNT nnn National V...

Page 366: ...assembly and at the front of the document stop Transmitted light barriers are located at these positions Another transmitted light barrier located inside the document feeder allows printing with foote...

Page 367: ...fications T5023 5023 Programming Guide 357 b width of the character pitch e g 1 10 for 10 CPI All dimensions shown in the illustration are in millimeter For detailed information see the Paper specific...

Page 368: ...Paper Specifications Appendix 358 T5023 5023 Programming Guide...

Page 369: ...aper inserted ONLINE PAPER Online status paper drawn in DATA NO_PAPER STOP status data in input buffer no paper inserted DATA PAPER STOP status data in input buffer paper inserted STOP NO_PAPER STOP s...

Page 370: ...ted NO PROGRAM Bootstrap loader activated firmware missing NO_CHARCTER_ GENERATOR Bootstrap loader activated character generator miss sing PROGRAMMING Memory area is programmed PROGRAMMING TIMEOUT Tim...

Page 371: ...short Use a longer document PAPER JAM Paper jam paper blocked paper can not be ejected Check paper transport paths remove remainder of paper 00 10 PAPER WIDENESS Print job extends over right hand pa...

Page 372: ...board is instal led check whether the optional interface board is correctly in serted WRONG ORDER Incorrect control sequence or character which cannot be printed Check the system driver load different...

Page 373: ...or Check firmware release if ne cessary install new 16 IMT syntax error 32 Internal ET syntax error 33 ET AEQ MSG syntax error 34 ET Timeout mechanic 35 ET Timeout interface 36 ET Timeout CPPT 64 CPPT...

Page 374: ...fect Electronic defect 01 Wrong needle frequen cy 02 Print command without print blocks 03 Overflow of the proceed profile table 04 Print outside print area 05 Error at scanning basic setting 06 Error...

Page 375: ...TRANSP ERROR TRANSPORT ER ROR Document feed error Control motor blocked platen guidance hook MSR pressure MICR pressure Control motor not plugged electronic defect 00 Motor control 01 Motor transport...

Page 376: ...re error Change unit 01 General hardware error 02 Head position MSR cle aning function 10 Too many writing repe titions 11 Control reading error 12 Too many reading re petitions 13 Read block 1 14 LRC...

Page 377: ...dary serial interface a Centronics card a Ethernet card or a B Loop card can be installed in the document printer Parameters for the active interface are defined in more detail in a menu Handshaking p...

Page 378: ...ware handshake with X ON X OFF 2 protocol The difference between the X On X OFF 2 protocol and the X On X OFF proto col is that the printer transmitt data to the connected device without CTS check 1 W...

Page 379: ...ta serial interface Signal level Data format Parameter selection is performed via the operating panel Type of connector The interface of the document printer is equipped with a 9 pin Cannon plug RS 23...

Page 380: ...no more data is accepted and the interface is disabled Only when there are more than 1024 bytes available in memory the printer is ready to receive data again Depending on the interface the line is co...

Page 381: ...o Send Entry In the DTR Busy and XON XOFF protocol the ON status signals to the connected device signal receiver printer that it is ready to receive data Not used in the XON XOFF 2 protocol Pin 04 DTR...

Page 382: ...TR RTS active Online DTR RTS inactive STOP STOP key and operating interruption or ERROR Pin 01 Printer switched on Exit The ON status informs the host system that the printer has been switched on The...

Page 383: ...smitted Data 3 TD Transmitted Data Serial data exit printer 2 RD Received Data 4 DTR Data Terminal Ready exit In the DTR Busy protocol the ON status signals the connected device signal receiver the re...

Page 384: ...e Pin No Document printer 9 pin plug Cable Pin No PC 9 pin plug 8 CTS Clear to Send Entry The ON status signals the connected device signal receiver the readiness to receive data to Not interpreted by...

Page 385: ...only be work in the compatibility mode The parameter centronics also controls how to set the signal PError from the printer see section Cable connection and Signal description printer side in the comp...

Page 386: ...Data 2 4 4 Data 3 5 5 Data 4 6 6 Data 5 7 7 Data 6 8 8 Data 7 9 9 Data 8 10 10 nAck 11 11 Busy 12 12 PError 13 13 Select 14 14 nAutoFd 15 32 nFault 16 31 nInit 17 36 nSelectIn 18 19 Signal Ground nSt...

Page 387: ...023 Programming Guide 377 Pin No Host 1284 A 25 pin D SUB plug Pin No Printer 1284 B 36 pin Centronics plug Signal description 25 30 Signal Ground nAutoFd nSelectIn nInit 16 Logic Ground 17 Chassis Gr...

Page 388: ...7 Bidirectional Data 6 Data 6 8 Bidirectional Data 7 Data 7 9 Bidirectional Data 8 MSB Data 8 MSB 10 Printer PeriphClk nAck 11 Printer PeriphAck Busy 12 Printer nAckReverse PError 13 Printer Xflag Se...

Page 389: ...l Ground Data 7 27 Signal Ground Data 8 Signal Ground Data 8 28 Signal Ground PError Select nAck Signal Ground PError Select nAck 29 Signal Ground Busy nFault Signal Ground Busy nFault 30 Signal Groun...

Page 390: ...on from the host to the printer Data 1 Data 8 Compatibility Mode Forward channel data ECP Mode Host to the printer or printer to host address or data PeriphClk nAck Printer driven Compatibility Mode P...

Page 391: ...us Error or printer not ready nAckReverse PError Printer driven Compatibility Mode Driven high to indicate that the printer has encountered an error in its paper path ECP Mode The printer drives this...

Page 392: ...s into auto line feed mode ECP Mode The host drives this signal for flow control in the reverse direction It is used in an interlocked handshake with PeriphClk HostAck also provides a ninth data bit u...

Page 393: ...low to request communications with the host The request is merely a hint to the host the host has ultimate control over the transfer direction Epson ANSI nFault 0 ERROR status nFault 1 ONLINE and STOP...

Page 394: ...Description of the physical interface Appendix 384 T5023 5023 Programming Guide...

Page 395: ...s can be written alphabet in upper and lower case letters figures special and control characters Baud Measuring unit for the specification of the transfer rate of data expressed in bits per second for...

Page 396: ...s In antiqua type fonts small horizontal lines on the top and bottom of some letters When classifying fonts a distinction is made between fonts with and without se rifs Examples of fonts with serifs B...

Page 397: ...character 143 Definition of characters 133 Definition of LQ characters 144 DEL 54 Delete 54 Deleting a character 54 Deleting the bottom margin 70 Deleting the MSB specification 48 Design of a charact...

Page 398: ...D n1 n2 NUL 84 ESC E 110 ESC F 111 ESC G 112 ESC g 100 ESC H 113 ESC J n 57 ESC k n 96 ESC L n m Data 169 ESC M 99 ESC P 98 ESC p n 97 ESC Q n 80 ESC r n 120 ESC S n 115 ESC s n 120 121 ESC SI 103 ESC...

Page 399: ...mode quadruple density 171 Graphics mode single density 168 Graphics modes 159 H Horizontal positioning absolute 86 Horizontal positioning relative 88 Horizontal print control 75 Horizontal tabulatio...

Page 400: ...S Select print quality 94 Selecting a vertical tab channel 73 Selecting the character size 10 cpi 98 Selecting the character size 12 cpi 99 Selecting the character size 15 cpi 100 Selecting the graphi...

Page 401: ...or messages 223 Superscript 22 Superscript subscript OFF 116 Superscript subscript ON 115 Switching on condensed print 102 Syntax of the character set commands 147 U Underlining 21 Underlining ON OFF...

Page 402: ...Index 392 T5023 5023 Programming Guide...

Page 403: ......

Page 404: ......

Reviews: