background image

Character Sets

Appendix

312

T5023/5023+ - Programming Guide

ISO 8859-9 Latin No. 5

Содержание T5023+

Страница 1: ...T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 16: ...Contents of the manual Preface 6 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 22: ...Application areas Short description of the document printer 12 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 34: ...Print effects Programming interface General 24 T5023 5023 Programming Guide Example Text adjustment Example line spacing...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 42: ...Document printer specifications Programming interface General 32 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 62: ...Special character codes Standard commands 52 T5023 5023 Programming Guide Result CR without line feed CR with line feed...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 72: ...Line feed commands Standard commands 62 T5023 5023 Programming Guide Result...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 89: ...Standard commands Horizontal print control T5023 5023 Programming Guide 79 Result reduced in size Result original size...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 97: ...Standard commands Horizontal print control T5023 5023 Programming Guide 87 Result reduced in size Result Original size...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 132: ...Non executable commands Standard commands 122 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 146: ...Definition of characters Character set commands 136 T5023 5023 Programming Guide Dot grid for LQ print quality...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 166: ...Switching on italic print Character set commands 156 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 171: ...Graphics commands Mode of operation of the graphics T5023 5023 Programming Guide 161 Example...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 177: ...Graphics commands Syntax of the graphics commands T5023 5023 Programming Guide 167 Result...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 211: ...Additional commands Printer Basic commands for document processing T5023 5023 Programming Guide 201...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 219: ...Additional commands Printer Controlling the MSR MICR functions T5023 5023 Programming Guide 209 Horizontal fold book...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 251: ...Application examples Processing of a blank form T5023 5023 Programming Guide 241 Print effects...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 274: ...Document processing Application examples 264 T5023 5023 Programming Guide Result 1 Result from OCR LINE 2 Result from TEXT PRINTING...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 282: ...Passbook processing with MSR Application examples 272 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 300: ...Length of the Transfer Loadable Firmware Character Genera 290 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 306: ...Windows NT Drivers Specific Operating System Dependencies 296 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 317: ...Appendix Character Sets T5023 5023 Programming Guide 307 Code Page 437...

Страница 318: ...Character Sets Appendix 308 T5023 5023 Programming Guide ISO 8859 2 Latin No 2...

Страница 319: ...Appendix Character Sets T5023 5023 Programming Guide 309 ISO 8859 5 Cyrillic...

Страница 320: ...Character Sets Appendix 310 T5023 5023 Programming Guide ISO 8859 7 Greek...

Страница 321: ...Appendix Character Sets T5023 5023 Programming Guide 311 ISO 8859 8 Hebrew...

Страница 322: ...Character Sets Appendix 312 T5023 5023 Programming Guide ISO 8859 9 Latin No 5...

Страница 323: ...Appendix Character Sets T5023 5023 Programming Guide 313 ISO 8859 15...

Страница 324: ...Character Sets Appendix 314 T5023 5023 Programming Guide OCR A...

Страница 325: ...Appendix Character Sets T5023 5023 Programming Guide 315 OCR B...

Страница 326: ...Character Sets Appendix 316 T5023 5023 Programming Guide Code Page ISO 2...

Страница 327: ...Appendix Character Sets T5023 5023 Programming Guide 317 Code Page 775 Latin Baltic...

Страница 328: ...Character Sets Appendix 318 T5023 5023 Programming Guide Code Page 850 Latin 1...

Страница 329: ...Appendix Character Sets T5023 5023 Programming Guide 319 Code Page 852 Latin 2...

Страница 330: ...Character Sets Appendix 320 T5023 5023 Programming Guide Code Page 855...

Страница 331: ...Appendix Character Sets T5023 5023 Programming Guide 321 Code Page 857 Latin 5...

Страница 332: ...Character Sets Appendix 322 T5023 5023 Programming Guide PC Code Page 858...

Страница 333: ...Appendix Character Sets T5023 5023 Programming Guide 323 Code Page 860 Portugal For addresses 00h to 7Fh see Code Page 437...

Страница 334: ...Character Sets Appendix 324 T5023 5023 Programming Guide Code Page 866 Latin Cyrillic...

Страница 335: ...Appendix Character Sets T5023 5023 Programming Guide 325 Code Page 869 Latin Greek...

Страница 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...

Страница 337: ...Appendix Character Sets T5023 5023 Programming Guide 327 1250 Windows Latin 2...

Страница 338: ...Character Sets Appendix 328 T5023 5023 Programming Guide 1251 Windows Cyrillic...

Страница 339: ...Appendix Character Sets T5023 5023 Programming Guide 329 1252 Windows Latin 1...

Страница 340: ...Character Sets Appendix 330 T5023 5023 Programming Guide 1253 Windows Greek...

Страница 341: ...Appendix Character Sets T5023 5023 Programming Guide 331 1254 Windows Latin 5...

Страница 342: ...Character Sets Appendix 332 T5023 5023 Programming Guide 1255 Windows Hebrew...

Страница 343: ...Appendix Character Sets T5023 5023 Programming Guide 333 1256 Windows Arabic...

Страница 344: ...Character Sets Appendix 334 T5023 5023 Programming Guide 1257 Windows Baltic Rim...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 354: ...Chinese Characters in the Passbook Document Printer Appendix 344 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 368: ...Paper Specifications Appendix 358 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 394: ...Description of the physical interface Appendix 384 T5023 5023 Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 402: ...Index 392 T5023 5023 Programming Guide...

Страница 403: ......

Страница 404: ......

Отзывы: