Home
Tally Genicom T5023+ Printer User Manual
Contents
1. The country versions of the ISO 8859 character set also are selec ted via the command ESC R n see Selection of type fonts cha racter sets in the chapter Additional commands 150 T5023 5023 Programming Guide Character set commands Switching on italic print Switching on off the character set defined by the user ESC n ASCII character 27 37 n Decimal 1B 25 n Hexadecimal Function Using ESC n the character set defined by the user is switched on Charac ters defined by the 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 character set off n 1 user defined character set on The sections Character set selection and Character definition con i tain further notes and program examples for the command ESC n T5023 5023 Programming Guide 151 Switching on italic print Character set commands Switching on extended character set ESC 6 ASCII character 27 54 Decimal 1B 36 Hexadecimal Function The command ESC 6 influences the complete upper character table The effect of the command depends on the character set activated using ESC t n The upper character table contains characters defined by the user In this case after entry of the command ESC 6 the upper control code table for characters defined by th
2. i Superscript or subscript is switched off again using ESC T Example BEGIN PRINT Water H eee SUbSCrI PE On S 7orr T 7 3 PRINT char 2 7 5 S char LL 2 PRINTLF char 27 T O PRINT Einstein E mc cee SUpeKrSCripe Of S 7Orre 1 77 PRINT char 27 S char 0 2 PRINTLF char 27 T Result Water H20 Einstein E T5023 5023 Programming Guide 115 Print modes Standard commands Switching off superscript subscript ESC T ASCII character 27 84 Decimal 1B 54 Hexadecimal Function ESC T switches off superscript or subscript of the print characters 116 T5023 5023 Programming Guide Standard commands Print modes Selection of combined print mode ESC n ASCII character 27 33 n Decimal 1B 21 n Hexadecimal Function Using ESC n the following character sizes and print modes in any valid com bination can be switched on or off by specifying a value n between 0 and 255 10 cpi character size Pica 12 cpi character size Elite Proportional 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 for n in order to switch on certain character sizes or print modes 10 cpi standard 12 cpi Proportional spacing 10 cpi Condensed print Bold print Dou
3. ESC gt Setting the most significant bit ESC Deleting the MSB specification T5023 5023 Programming Guide 47 Controlling the configuration of the printer Standard commands Deleting the MSB specification ESC ASCII character 27 35 Decimal 1B 23 Hexadecimal Function ESC cancels the MSB specification deleting or setting the most significant bit resulting from ESC or ESC gt An MSB specification resulting from ESC or ESC gt is also cancelled i when the printer is initialized with software see ESC 48 T5023 5023 Programming Guide Standard commands Controlling the configuration of the printer Printer offline DC3 ASCII character 19 Decimal 13 Hexadecimal Function DC3 device control 3 switches the printer offline printer inactive until a DC1 code printer online is received In no way can the printer be reactivated via the STOP key Printer online ASCII character Decimal Hexadecimal Function DC1 device control 1 switches the printer back online after it has previously been switched offline by a DC3 code If the printer was switched off via the STOP key it cannot be switched online again using this command T5023 5023 Programming Guide 49 Controlling the configuration of the printer Standard commands Automatic single sheet feeder on off 0 30 Switches single sheet feeder off 31 Selects feeder compartment 1 only if 2 feeder compartments
4. i After switching on the document printer the following character sets are set Extended graphics character set This correspond to the settings using the maximum number of characters Country version set in the emulation menu 124 T5023 5023 Programming Guide Character set commands Character set selection Area with basic characters or italic characters Character codes decimal 0 31 Control codes Control codes Current Current italic character set character set This area lies in the lower 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 LQ type font Roman Sans Serif The characters in the lower character table can be printed by specifying the character code according to the following table T5023 5023 Programming Guide 125 Character set selection Character set commands Basic character set 01234567 After entry of the control commands ESC 4 Switching on italic printing and ESC 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 or decimal 0 to 31 It contains no printable characters An exception is the character hex 15 decimal 21 by which the lower control code table is extended i The lower c
5. Centered text This text is printed with margin justification 1 e flush left and flush rignt Example line spacing spacing spacing spacing Spacing spacing spacing 24 T5023 5023 Programming Guide Programming interface General Character tables 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 AO 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 AO to hex FF In the extended graphics set the upper character table additionally contains characters in the area hex 80 to hex OF It is possible to switch over the various character sets at any time via a program by means of appropriate ESC
6. IBM 2 11 mm 78 180 ISO 7811 14 mm 99 180 Default values If no parameters are set the respective MSR transactions are carried out on the basis of the following default values ni 0O unsuccessful writing attempts are not repeated n2 0 unsuccessful reading attempts are not repeated n3 0 writing of the magnetic stripe in the DIN format reading of the magnetic stripe in the DIN IBM format n4 99 180 inch vertical distance from the leading edge nd 1 bottom leading edge Incorrect parameters 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 T5023 5023 Programming Guide 211 Controlling the MSR MICR functions Additional commands Printer Reading a MSR track Command Name ASCII character Decimal Hexadecimal Response STX ETX Name r STX ETX ASCII character 34 114 2 3 Decimal 22 72 02 03 Hexadecimal ni number of required reading attempts n2 reading threshold always 2 n3 horizontal reading block number n4 reading error 0 without error gt 0 error STX 02h start of the read data area Read data in the range of 30h 3Fh ASCII ETX 03h end of the read data area Meaning of parameter n4 reading error 0 no error 1 LRC error 2 parity error 3 no data found 4 no start character found
7. One of the graphics modes of the document printer can be assigned to the gra phics commands ESC 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 Example The example demonstrates the assigning of the 24 dot graphics mode double density identifier 33 to the command ESC K BEGIN PRINT char 27 2K char 33 END 172 T5023 5023 Programming Guide Additional commands Printer The document printer can process single documents multiple documents form sets and passbooks This chapter explains special control commands additional commands for processing documents and for processing MSR MICR data which are not a component of the Epson range of commands The description is divided into the following main sections Notes on the syntax of the additional commands General notes on document processing Basic commands for document processing Specific commands for MSR MICR Certain additional commands allow the exchange of internal status information error messages or user data between the printing units and the computer Data transfer from the document printer to the computer is in the form of responses which have the same structure as the additional commands CSI sequences Examples for the programming of the additional command
8. Programming interface General Character tables where each dot is to be printed Characters defined by the user are copied by means of ESC sequences into the me mory of the document printer It is possible to switch over at will between the normal character set and that defined by the user Graphics Via the document printer simple pictures and or diagrams can first be presented on the basis of standard or graphics characters or symbols defined by the user on the one hand and the formatting possibilities for example line spacing tabs highlighting on the other hand The structure of such semi graphics can be con trolled by programs with corresponding ESC sequences The production of se mi graphics on the basis of character sets is in principle the connecting of individual characters over several lines Example a here Rt techy A BRA a SANA Hale AA NP NOR aS NC Ala ODN Neelam Beppo med Article Designation By switching over to a graphics mode special graphics commands become available through which drawings diagrams or pictures can be printed as dot graphics Each picture dot is encrypted as a number sequence and transferred to the printer The appearance of dot graphics can be influenced by setting the dot density whereby a maximum density of 180 x 360 dots per inch is possible The document printer works in various graphics modes A graphics mode is identified by the number of needles addressed during printing 8
9. Result corresponds to unequal T5023 5023 Programming Guide 53 Special character codes Standard commands Deleting a character DEL ASCII character 127 Decimal 7F Hexadecimal Function DEL Delete deletes the previous text character in the buffer as long as it has not yet been printed The control codes remain unchanged Cancelling a line ASCII character Decimal Hexadecimal Function CAN Cancel cancels in the printing buffer the whole text of one print line prior to this code but not the control codes 54 T5023 5023 Programming Guide Standard commands Line feed commands Line feed commands The standard line spacing amounts to six lines per inch i e the line spacing is 1 6 inch The line spacing can be changed using the following commands 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 Funeton Line feed Carrying out an n 180 inch line feed Determining 1 8 inch line spacing Determining 1 6 inch line spacing Determining 1 180 inch line spacing Determining 1 60 inch line spacing Determining 1 360 inch line spacing OOQOOOO T5023 5023 Programming Guide 55 Line feed commands Standard commands Line feed LF ASCII character 10 Decimal 0A Hexadecimal Function On receipt of the command LF line feed the data contained in the buffer is printed and the paper
10. This chapter contains general information on how the functions of the document printer can be activated by a user program e how the document printer can be programmed This chapter also explains the functions which can be activated by 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 representing characters and commands are transmitted from the computer to the printer The individual codes stand for prin table characters letters numbers punctuation marks mathematical symbols or control codes which cause certain actions for example document ejection deletion of characters carriage return T5023 5023 Programming Guide 13 Encryptions Codes Programming interface General ASCII code A code table specifies how the printable characters and control commands for example for document ejection and carriage return are encrypted binarily in the computer or printer The encryption is expressed by a corresponding hexadeci mal or decimal number A certain character then lies in hexadecimal notation or in the decimal representation for example in the range hex 00 to hex FF or de cimal 0 to decimal 255 8 bit encryption Examples Character Letter big A Letter small a Number 4 Line Feed Escape With the document printer and with most computers the basis for the encryptions
11. 106 T5023 5023 Programming Guide Standard commands Print modes Switching off elongated print ASCII character Decimal Hexadecimal Function DC4 switches off the elongated print set using SO or ESC SO within the current print line Elongated print switched on using ESC W n or ESC n is not swit i ched off by DC4 T5023 5023 Programming Guide 107 Print modes Standard commands Switching elongated print on off ESC W n ASCII character 27 87 n Decimal 1B 57 n Hexadecimal Function Switching on elongated print ESC W 1 switches elongated print on In elongated print the width of the characters is doubled Switching off elongated print ESC W 0 switches elongated print off Elongated print can be combined with condensed print and all the cha i racter sizes 10 12 15 cpi Example BEGIN PRINTLF Standard print PRINT char 27 W char 1 lt Elongated print on PRINTLF elongated print PRINT char 27 W char 0 lt Elongated print off PRINTLF Standard print END Result Standard print mor ree Standard print 108 T5023 5023 Programming Guide Standard commands Print modes Enable Disable Double Character Height ESC Ww n ASCII character 27 119 n Decimal 1B 77 n Hexadecimal Function All characters following this command are printed with double the normal height Parameters n 0 deactivates the mode n 1 activates
12. Check if new data has to be transferred give corresponding loading commands and Transfer corresponding module 2 6 Document printer Stop mechanic delete remaining data receipt Hand over module identifier delete corresponding flash memory area send a receipt Check correctness receipt the command with module identifier T5023 5023 Programming Guide Loadable Firmware Character Generators Load Functions General The load process is identical for all data to be loaded A process begins with the request for the data ID using the escape sequence ESC I D This indicates whether modules are loaded and which version is available If the relevant module has not been loaded or if the versions do not match the appropriate pre command will be transferred in the second step Then 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 correctly Module Identification Every loadable data file can be identified by an ID The file ID has the following structure Length Contents Meaning Identifier MOD Separator Release date in the format YYMMDD 941101 for 1 11 94 Separator Version ID of the release 0105 for V01 05 Separator Module name e g 5023 STD CP15_ 437 Separator point Extension MOD FRM FNT Separator or end character
13. Line N after title UNTIL N 6 END LINE PRINT Explanation of the pseudo code instructions Instruction block BEGIN END Loop REPEAT UNTIL abort criterion Alternative IF THEN ELSE Initializing SET variable value Changing variable value SET variable variable value Subprogram call CALL subprogram name Printing without line feed PRINT arguments Printing with line feed PRINTLF arguments Control characters char x or char a N Evaluation of printer response GET arguments read data 1 2 3 4 5 6 T T T 8 Further explanations on 1 2 8 see next pages 36 T5023 5023 Programming Guide NOOA Standard commands Notes about command description When defining subprograms after BEGIN and END the subprogram name is specified for example BEGIN LINE PRINT END LINE PRINT The instruction within REPEAT UNTIL loop body are executed until the abort criterion specified after UNTIL is fulfilled for example REPEAT UNTIL N 6 This pseudo code instruction is defined here in such a way that the loop body is not executed if the abort criterion is already fulfilled before the first loop run for example IF N 50 THEN BEGIN END or IF n 50 THEN CALL NEW PAGE ELSE N N 1 for example SET N 0 for example SET N N 1 for example CALL LINE PRINT The data transmission from the program to the document printer is to be symbolized by means of the procedures P
14. PRINT char 27 1 t END PROGRAM START ROUTINE BEGIN MSR ee ee GET char 27 ee ee 59 n2 59 n3 59 n4 GET yr 9 GET char 2 MSR data char 3 Updating processing MSR data PRINT char 27 r PRINT char 2 new MSR data char 3 END MSR 11 FF 1 CSI n1 n5 r t 2 CSIn t 3 CSI Fr 4 CS r STX ETX 4 4 4 5 CSI r STX ETX 5 2 0 T5023 5023 Programming Guide Application examples Passbook processing with MSR BEGIN POSTING PRINT char 27 7214211 o 6 CSI n p PRINT char 27 S char 150 0 7 ESC n m Internal processing and editing 8 of the print data PRINT sn Data in posting anas E 9 END POSTING Result M ame Address Account Number John Smith 123 High Street 01 2346500471 London EC2P 24H Date Description _ Serial No Withdrawals A ecalpts Balance 1 07 01 99 Balance S00 00 VOD 07 01 99 Cash l 1 300 00 4 800 00 07 03 99 Payment 200 00 a 600 00 07 04 99 Payment 100 00 4 500 00 5 07 10 99 Payment 150 00 41 350 00 OE 07 1299 Cash 0 00 1 550 00 fee sal Leese pio Cd 1 1 1 1 1 1 1 1 18 19 20 0 3 5 G T 1 New passbook entry T5023 5023 Programming Guide 2 1 Passbook processing with MSR Application examples 2 2 T5023 5023 Programming Guide Loadable Firmware Character Generators The firmware and character generators of the passbook
15. Response Global printer status in the coding CSI n z with n 0 ONLINE Release of the interface for the transfer of new data The operator no longer needs to clear the error status on the printing unit However after a short pause ejection of the document the printing unit is in the ONLINE status again for the system driver and can thus be addressed on the printer Other control commands initializations or error i The default value n 0 manual error handling is valid after switching statuses do not change this parameter T5023 5023 Programming Guide 203 Basic commands for document processing Additional commands Printer Use Control when printing lists on documents where the document length is unknown For each print line the program generates a control point with a uniquely marked parameter for example line number In the case of an error 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 the data for the next document can be formatted and transferred to the printer As the printing unit automatically returns to the ONLINE status the operator can continue work by inserting a new document The error message via the operating panel of the printer and the use of the STOP key by the operator are unnecessary 204 T5023 5023 Programming Guide Addition
16. T5023 5023 Programming Guide 21 1 Load Functions General Loadable Firmware Character Genera Version ID X XXX ih Update Error handling Update Compatible modifications or updates Update Release First release Basis Release First release Extension The passbook and document printer contains various data modules The type 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 loader resident not loadable TBF Two byte font China 2 8 T5023 5023 Programming Guide Loadable Firmware Character Generators ESCAPE Sequences Bootstrap ESCAPE Sequences Bootstrap Loader Switch over to the Load Function ESC BEL L n ASCII characters 27 7 76 48 55 Decimal 1B 07 4C 30 37 Hexadecimal Function This command is used to exit the currently running emulation software All data 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 n 0 _ Transfer rate not changed n 1 Baud rate 2 400 n 2 Baud rate 4 800 n 3 Baud rate 9 600 n 4 Baud rate 19 200 n 5 Baud rate 38 400 n 6 Baud rate 57 600 n 7 Baud rate 115 200 T5023 5023 Programming Guide 279 ESCAPE Sequences Bootstrap Loader Loadable Firmwa
17. Tally 15023 5023 Programming Guide All rights including rights of translation by printing copying or similar methods even of parts are reserved All rights including 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 hardware and software products mentioned in this manual are trade names and or trademarks of their respective manufactores Contents BT Soret cy tees orem E E E EE 1 CONVENON S e e E A EE 1 ADDE AU OMS aeee E A 2 Use oline Manudl sieniniai Eaa Aee 2 Contents of the manual cccccsseececceeeeeeeeceeeeeceeeseeeeseuaseesesaneeessaaseees 3 Short description of the document printer cccssseeeseesseeeeeeeeees 7 Document printing point cece eeececceeeeeeeeeeeeeeeeeeseeeeeeeseeeeeseeeeeseeeeesseeeeens 7 FON oe aa eTa Seine cae ce ge E EEEE E O 8 Magnetic stripe reader MSR cccsscceceecssseeeeseeeeeeesaeeseeeseeaeeeeesaaes 8 POG m AEE E IE EE E S A E er seees ee 8 FOGO aeree E E 8 Memory EXtONSION cccceccccseseeeceececeeseecceueeeceuseessseeeseeeessuseesseneeess 8 System interface 00 cee cc cc seeececcceeeeceeceeeeeeecseeeeeesaeaeeeesseaeeeessueuseesssaseeessaageees 9 Pi SIC AU ACW ACC cae sateen secant 9 Logical PrOtOCO cccccseeeecceeeeeceeeesseeeeseeeeseeueeeseeeeeseeeeeseeeeeeseeeeeas 9 A
18. n9 Memory Extension 1 El Journal Function In the following cases the response of the printing unit parameters will be trans ferred from the printing unit to the system after switching on the printing unit as response to a Break at the printer interface as response to the command Requesting printing unit parameters 234 T5023 5023 Programming Guide Additional commands Printer Electronic Journal Functions Electronic Journal Functions Change between Document and Journal Printing Name ASCII character Decimal Hexadecimal Parameter n 0 Document print Default n 1 Electronic journal memory The parameter Journal memory is used to redirect all following print characters to a resident memory All control sequences are ignored except for line feeds This command initializes the printout of all characters still located in the internal print buffer Command sequences which are written into the journal 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 gt EL Journal must be enabled from the Service menu If the selection is not enabled the command will be ignored table characters is stored Any attributes tabs character set com i When the electronic journal memory is enabled only the net data prin mands are filtered from the data stre
19. normal bold normal T5023 5023 Programming Guide 111 Print modes Standard commands Switching on double impact print ESC G ASCII character 27 71 Decimal 1B 47 Hexadecimal Function ESC G switches double impact print on With double impact print each line is printed twice the second time slightly displaced horizontally Double impact print is switched off again using ESC H or ESC n i Double impact print and bold print can be combined Double impact print can be used with draft and LQ print quality Example BEGIN PRINILE standard print PRINT char 27 G lt Double impact print on PRINTLF double impact print on LQ print quality PRINT char 27 x char 1 lt ESC x n PRINTLF double impact print in LQ print quality PRINT chariz7 Eh lt Bold print on PRINT bold print and double impact print ESC E PRINTLY in LO print quality Result reduced in size standard print double impact print double impact print in LQ print quality bold print and double impact print in LQ print quality 112 T5023 5023 Programming Guide Standard commands Print modes Switching off double impact print ESC H ASCII character 27 72 Decimal 1B 48 Hexadecimal Function ESC H switches off the double impact print set using ESC G or ESC n Example BEGIN PRINT normal char 27 G double impact PRINTLF char 27 H n
20. 0016 0019 001a 001d 001e 001f Printer control parameter 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 002a 002b 002c 003f 1 see section Font number 340 Data type ASCII int long long long Name Font name Font number Pointer to start address First code Last code Empty boxh boxw vert_res hor_res baseline printmode Reserved Appendix z B FANG SONG z B FANG SONG 0 No of vertical pixels char width No of horizontal pixel char width in dots inch in dots inch T5023 5023 Programming Guide Appendix Chinese Characters in the Passbook Structure of the character generator The font file contains information about the individual characters in sequential order 72 bytes are available to represent one character Example GBxxxx FANGSONG character BO A1 hex Column information 00 00 00 00 00 00 3f ff e0 10 02 00 10 02 00 3f ff 80 10 00 00 00 00 OD 7f ff ff 3f ff fe 20 cO 80 3f 31 cO 78 1f 80 20 00 00 11 ff 80 10 82 00 10 82 08 11 ff 08 10 80 Oc 10 00 Oe 1f ff fc 3f ff f8 OO 00 00 00 00 00 T5023 5023 Programming Guide 341 Chinese Characters in the Passbook Document Printer Appendix GB 2312 80 GB 5007 GB 5199 The character set Guo Biao GB 2312 80 is a static 2 byte code for the People s Republic of China it contains a total of 6763 characters and forms the basis set for the simplified Chinese
21. ESC tabs are set at a spacing of eight 8 characters Setting the horizontal tabs Command ESC D n1 n2 NUL Parameters n1 35 position of processor abbreviation n2 40 position of date Remarks In proportional printing the characters are set in pica spacing 10 cpi T5023 5023 Programming Guide Application examples Processing of a blank form 10 11 12 13 14 19 16 17 Vertical tabulation to the first address line Command VT Printing address Remarks Last address line place without line feed Horizontal tabulation to the processor abbreviation Command HT Printing processor abbreviation Remarks Printing without line feed Horizontal tabulation to the date Command HT Printing date Vertical tabulation to the reference line Command VT Setting italic print Command ESC 4 T5023 5023 Programming Guide 245 Processing of a blank form Application examples 18 20 21 22 23 24 29 246 Determining additional spacing between characters Command ESC SP n Parameter n 12 Remarks SP space stands for the blank space ASCII hex 20 or decimal 32 and EBCDIC hex 40 or decimal 64 Via n 12 in LQ mode an ad ditional character spacing of 12 180 inch is determined In draft mode this would be 12 120 inch Printing reference line Deleting additional spacing between the characters Command ESC SP n Parameter n 0 Default val
22. PRINT char 27 g 32 ESC g PRINT Char 27 yechar 24 33 ESC SP n PRINTLF 00000 34 PRINTLF oooo PRINT char 27 zehar o 35 ESC SP n PRINT char 2 7 Pp 36 ESC P PRINT Ghar 27 p yechar Ly 37 ESC p n PRINTLF 09 06 38 PRINTLF PRINTLF Pin numbering plan view PRINT char 27 a char 0 39 ESC a n PRINT char 27 k char 0 40 ESC k n END SKETCH BEGIN SENDER PRINT char 11 41 VT line 42 PRINTLF Yours sincerely 42 PRINTLF char 11 43 line 46 PRINTLF John Smith 44 END SENDER T5023 5023 Programming Guide 253 Document processing Application examples Document processing This example is to illustrate document processing with the following features Coding the coding line Printing a text on the document This example is based on producing a specimen cheque The coding line on the cheque is to be processed with bottom reference the text on the cheque with top 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 edge on the left default The restrictions for document width detection with regard to the cur i n this example document width detection is requested explicitly rent vertical position must be taken into account for this
23. Programming Guide 289 Length of the Transfer Loadable Firmware Character Genera 290 T5023 5023 Programming Guide Control of Asian Character Sets For passbook and document printers the Asian character set is loaded via the system interface This function is available only in device variants with a memory extension In addition the optional memory extension should be selected in the Service 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 Memory extension Memory extension Specification of the memory off extension Memory extension E Journal Memory extension 2 CG Memory extension Asian encoding GB2312 Memory extension GB5007 Memory extension GB5199 Memory extension BIG5 The control of the Asian characters is based on the number of characters using the 2 byte encoding T5023 5023 Programming Guide 291 Control of Asian Character Sets The following intending formats are currently implemented GB 2312 80 VR China GB 5007 GB 5199 BIGS VR China VR China Traditional Chinese Hongkong and Taiwan For character assignment see Appendix section Chinese Characters in the Pass book Document Printer For character assignment see Appendix section Chinese Characters in the Pass book Document Printer For character assignment see Appendix section Chinese Charact
24. Programming Guide 343 Chinese Characters in the Passbook Document Printer Appendix 344 T5023 5023 Programming Guide Appendix IBM Emulations IBM Emulations IBM 4722 Emulation The passbook and document printer emulates the IBM 4722 printers model 1 2 and 3 The functions of the printer model 3 are accessible only if a special protocol is used on the RS232 interface The other modules can be operated without protocol and or via the external interface The control sequences for the IBM printer 4712 are ignored General The selection of the model 3 emulation is done by setting the emulation type IBM 4722 This setting automatically enables the RS232 interface with the 4722 protocol Interface 4722 protocol A CRC 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 bits The setting SW 7 with without acknowledgment handshake is made in the menu Interface Handshake DTR XON OFF Emulation The acknowledgment of the print jobs is supplied n lines before their execution to achieve a higher system performance The data stream associated with the common error messages EJECTED and or NO_PAPER is however acknowledged correctly The command MSG parameter load patches is ignored Only the indicators Programmable Indicator 1u2 are supported The function
25. STOP status and printer ready Busy 1 STOPstatus Error or printer not ready Printer driven Driven high to indicate that the printer has encountered an error in its paper path The printer drives this signal low to acknowledge nReverseRequest The host relies upon nAckReverse to determine when it is permitted to drive the data signals The signal nFault is not activ at PError but in the global printer status ERROR it is activ PError is set to status that means PError is activ if the special printer message NO_PAPER is send to the system PError is set to error that means PError only set activ if data is send to the printer without paper inside T5023 5023 Programming Guide 381 Description of the physical interface Appendix XFlag Select Compatibility Mode ECP Mode HostAck nAutoFd Compatibility Mode ECP Mode Peripherial Logic High nReverseRequest ninit Compatibility Mode ECP Mode Printer driven Set high to indicate that the printer is on line Used by the printer to reply to the requested extensibility byte sent by the host during the negotiation phase Host driven The interpretation of this signal varies from printer to printer Set low by host to put some printers into auto line feed 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 dat
26. 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 defined the desired resident character set can be copied into the RAM using the command ESC before de fining the characters The character set is then considered to be defined by the user and can subsequently be modified character by character via ESC amp see description of the control command ESC in the following section Syntax of the character set commands 146 T5023 5023 Programming Guide Character set commands Syntax of the character set com Syntax of the character set commands This section extensively describes the syntax of the control commands for the character set selection and the character definition Exact notes and program examples are contained in the previous sections Switching on italic print ASCII character Decimal Hexadecimal Function Italic print is switched on using ESC 4 The characters of each current character set i e draft standard type LQ type or characters defined by the user will sub sequently be printed in italics The italic characters can be addressed in the lower character ta i ble after entering ESC 4 Italic print is switched off again using ESC 5 In the upper charac ter table italic characters can still be addressed see ESC t n ESC 4can also be used
27. data 1 dO d1 d2 data 2 The parameters have the following meaning S is the number of the desired LQ type font see control command ESC k n If a character is to be defined in draft print quality 0 must be en tered nis the character code of the first character to be defined mis the character code of the last character to be defined If only one cha racter 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 9 columns LQ 29 columns proportional 1 37 columns see previous sections d2 indicates the number of vertical dot columns for the right space of a cha racter Following the parameters dO to d2 the data bytes of the character definition number sequence are specified When defining several characters the parameters dO to d2 and the data bytes of the character definition are specified for each character in alphabetical order The section Character definition in this chapter contains further notes i and application examples for the command ESC amp T5023 5023 Programming Guide 155 Switching on italic print Character set commands 156 T5023 5023 Programming Guide Graphics commands The instruction set of the document printer contains commands for printing gra phics for example drawings diagrams or
28. deleting horizontal tabs ccccceeeececsseeeeeeseeeeeeeseeeeeeeeas 84 FIOrIZON al tabula O sever eect eerie watson ie aboot eek 85 Horizontal positioning absolute cece ceeccseeceeeeeeeeeeeeeeeeeeeeseaeeeees 86 Horizontal positioning relative cccccccsseeeceseeeeceeseesaeeeeeseeeeeseaees 88 Determining the Character spacing ccseccecseeeeceeeeessaeeeeeneeeeeseees 90 Print quality and Character SIZE cccccccccsseeccecseeeeeeeseeeeeesueneeeesaaeees 92 Switching print quality Draft LQ oo ceeeeeeeeeeeeseeeeeeeeeeeeeeeees 94 selecting the LQ type font amis 96 Switching proportional spacing on off ce eeceeeseeeeeeeeeeeeeeeeeeeeeeeeees 97 Selecting the character size 10 cpi PICA ceeecesseeeeeeeeeeeeeeeeeens 98 Selecting the character size 12 cpi Elite ee eccceeeeeeeeeeeeees 99 Selecting the character size 15 Cpi ccceeeececeseeceeeeeeeeeeeeeeeeeeeees 100 FUMIO Siac acces so sie a ease 101 Switching ON condensed print c cseeeeecceseceeecaeeeeeeeeeeeeeeeaaaeeess 102 Switching on condensed print cccseeeececeeeeeeeecaeeeeeeeeeeeeeeseaaaeees 103 Switching off condensed print ssesnnnsnnennnesennnnsennnesrnnnessnnreereennne 104 Switching on elongated print for one line ou eee eeeeeeeeeeeeeeeeeeeees 105 Switching on elongated print for one line ee eeeeeeeeeeeeeeeeeeeeees 106 Switching off elongated print ssnonnne
29. fer It immediately causes a mechanical vertical movement which can be secured via a control cycle Because a mechanical optimization of movement is avoided by means of the insertion command this control command should only be used when the insertion procedure must be secured separately via control cycles i This control command triggers printing of characters still in the print buf 190 T5023 5023 Programming Guide Additional commands Printer Basic commands for document processing Selection of type fonts character sets Name ASCII character Decimal Hexadecimal Parameter n type font or character set or font number 0 to 9999 The font number is fixed when developing a specific character set Function Using this command by means of a type font or character set number n special character sets fonts can be selected which do not belong to the standard cha racter sets of the Epson protocol Extensions can thus be implemented without coming into conflict with the current and future definitions of the standard Epson protocol the character sets range in the printing unit the standard character sets are switched over to automatically This also applies if the cha racter set under the specified number does not contain the pre viously set character spacing i Ifa character set under the specified number is not a component of The character sets selected via CSI n q do not offer the possibility of
30. 27 1S char 2 1 17 ESC n m PRINT 05 11 1999 18 END TEXT PRINTING T5023 5023 Programming Guide 263 Document processing Application examples Result FOUR HUNDRED AND FIFTY a MR SPECIMEN 05 11 1999 cl Scheck Nr x Konlo Nr Betrag x Bankleitzahl zjiexiE 00000001285107 00000303534 000000450007 472500337 amp 0d 1 Result from OCR LINE 2 Result from TEXT PRINTING 264 T5023 5023 Programming Guide Application examples Passbook processing with MSR Passbook processing with MSR This example illustrates programming for passbook processing with MSR The passbook is to be positioned on the magnetic stripe with bottom reference Then the magnetic 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 the passbook positioned on the next free posting line After evaluation of the result writing MSR the posting line is edited and printed The following pre conditions are assumed Character font with LQ quality is set Specification of the horizontal leading edge on the right T5023 5023 Programming Guide 265 Passbook processing with MSR Application examples Passbook data Mame Address Account Number John Smith 123 High Street 01 23450047 4 Londen EC2P 24H Line Signature Date Description H SerialNo
31. 27 91 92 1b 5b 5C Set graphical line X distance ESC eeur nin2 279164 1b5b40 Double heightwidth x ESC ESC ign nen nin2m 279195 1b5b67 Graphis x ESC d n 27 100nm 1B64nm Horizontal positioning X relative T5023 5023 Programming Guide 351 IBM Emulations Appendix ASCII Decimal Hex Function 4722 XL24 Default ESC SO 27 14 1B 0E Switching on elongated X Switched printing for one line off ESC Sl 2715 1B OF Switching on X Switched condensed printing off 2 ESC s n m 27 42snm 1iB2Asnm Select graphic mode ESC c1 c2 n n 2792nn 1B5Cnn Print all continous ESC BELL 2707 76 1b 07 4c Switch over to load function 1 Printers with IBM 4722 emulation do not support this control code 2 Is ignored 3 Original printing units do not support the control code for special function extensions ESC n 27 45n 1B 2D n Switching on off X Switched underlining off 352 T5023 5023 Programming Guide Appendix Olivetti PR50 Emulation Olivetti PR50 Emulation General The selection of the emulation is done using the menu type Olivetti This emulation can be used with all interfaces Emulation The function of loadable characters is not supported due to different print head resolutions The print attribute overscore is not supported Initialization parameter All parameters that can be set in the relevant emulation menu are taken into con sideration during the init
32. 5 incorrect flux change distance 6 no end character found 7 magnetic track interruption 212 T5023 5023 Programming Guide Additional commands Printer Controlling the MSR MICR functions Function The MSR track is read using the command CSI r The desired options are pre set if necessary via the command MSR parameter block CSI r number of reading attempts recording mode position of the magnetic stripe etc Irre spective of whether the reading attempt could be completed successfully data for the program is transferred In addition to the actual user data contents of the magnetic stripe this can also contain statistic specifications for example num ber of reading attempts and error messages The command CSI r triggers the output of characters still in the i print buffer to the document printing point The read data block contains all the information characters including the start and end characters for the respective recording format The LRC character error detection character for block protection is internally produced and checked and is therefore not a compo nent of the read data block With an incorrect reading attempt the correctly recognized data up to the first incorrect character is transferred Depending on the recording format the start and end characters are he xadecimal encrypted as follows A Start character End character DIN IBM 1 IBM
33. 5023 Programming Guide Additional commands Printer Status and error messages Special printer messages Command requesting special printer messages Name ASCII character 34 Decimal 22 Hexadecimal Response requesting special printer messages Name ASCII character Decimal Hexadecimal Parameter n Global Code 0 to 999 m Special Code 0 to 999 T5023 5023 Programming Guide 231 Status and error messages Additional commands Printer Function Special printer messages are produced in the following cases and transferred to the system when changing the appropriate statuses when using the keys USER 2 or USER 1 via the operator only if the function Dual station control was activated using the command CSI n t Further the current status can be requested using the command CSI z The following 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 paper sensor on the document printing point is no longer covered with paper USER 1key n 20 m1 The USER 1 key on the operating panel was pressed This printer message can only occur if the function Dual station control was activated using the command CSI n t USER 2 key n 20 m 2 The USER 2 key on the operating panel was pressed This printer message can only occur of
34. 8 9 compatible with HPR4905 Eurobanking limited Code Page 775 Includes PC Code Page 775 with baltic characters Eurobanking limited Code Page 850 Latin 1 Includes PC Code Page 850 Latin 1 Western Northern Europe Eurobanking limited Code Page 852 Latin 2 Includes PC Code Page 852 Latin 2 Eastern Europe Eurobanking limited Code Page 855 Includes PC Code Page 855 Macedonia Eurobanking limited Code Page 857 Latin 5 Includes PC Code Page 857 Latin 5 Turkey Eurobanking limited PC Code Page 858 Code Page 858 CP 850 with Euro characters on D5 Eurobanking limited Code Page 860 Portugal Eurobanking limited T5023 5023 Programming Guide Font Type DQ LQ Roman LQ Sans Serif DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B Character Sets Font Sizes 10 12 15 CPI proportional 10 12 15 CPI 10 12 15 CPI proportional 10 12 15 CPI 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 c
35. Determining 1 6 inch line spacing 59 Determining 1 8 inch line spacing 58 Determining n 180 inch line spacing 60 Determining n 360 inch line spacing 63 Determining n 60 inch line spacing 61 Determining the character spacing 90 Determining deleting vertical tabs for Carrying out an n 180 inch line feed 57 any channel 72 Character box 180 Character set commands 123 Character set selection 124 Character size 92 Characters defined by the user 26 131 145 Charcter density 19 Combine print modes 117 Condensed print OFF 104 Condensed print ON 103 Country versions 127 CPI 79 CR 51 CSI sequences 35 173 D DC2 104 DC4 107 T5023 5023 Programming Guide Document processing 179 189 Double impact print OFF 113 Double impact print ON 112 E Elongated print for one line ON 105 106 Elongated print off 107 Elongated print on off 108 ESC 44 ESC n 114 ESC n 117 121 ESC n1 n2 88 ESC 48 ESC n1 n2 86 ESC n 151 ESC m n1 n2 163 ESC n 63 387 ESC n 73 ESC 47 ESC gt 46 ESC n1 m 172 ESC 0 58 ESC 2 59 ESC 3 n 60 ESC 4 147 ESC 5 148 ESC A n 67 ESC a n 82 ESC b n n1 n2 NUL 72 ESC B NUL 70 71 ESC D n1 n2 NUL 84 ESC E 110 ESC F 111 ESC G 112 ESC g 100 ESC H 173 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 S
36. ESC N n can be set and the actual area to be printed on a document can be determined 64 T5023 5023 Programming Guide Standard commands Sheet ejection commands Sheet ejection FF ASCII character 12 Decimal oC Hexadecimal Function After FF all the data still contained in the printing buffer is printed and subse quently the current document ejected After the ejection the current logical position of the print line distance between the upper edge of the document and the base line of 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 document will not be requested until print jobs are available The insertion position can be set in the document printer menu by selecting the menu item TOF POS see the Operating Manual The default value is 3 6 Inch Manual If a further FF or a series of FFs immediately follow an FF these will not i be executed T5023 5023 Programming Guide 65 Sheet ejection commands Standard commands Determining the document length at n lines ESC C n ASCII character 27 67 n Decimal 1B 43 n Hexadecimal Function ESC C n sets the document length at n lines in the selected line spacing A va lue between 1 and 127 must be given for n The actual physical document length is then determined by the respective current line spacing It
37. H used in the rele vant illustrations of printable areas only serves as an example for all print characters i When printable areas are defined in this section reference is always to On the document printer the position of the print character within the character box is not generally determined horizontally and vertically Epson compatibility It is therefore wise to refer to the vertical edges of the character box left or right character box limit for horizontal safety distances For vertical safety distances selection of the base line of the print character as a reference line is recommen ded The base line is the line drawn for capital letters by printing the lowest need le used On the document printer 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 character box Definition 1 The reference line for horizontal positioning on the document printer is the left character box limit The distances to reference lines to the left of the print cha racter specified in the following also refer to the left character box limit Distances to reference lines to the right of the print character specified in the following refer to the right character box limit T5023 5023 Programming Guide 181 Important notes on document processing Additional commands Printer Definition 2 The referen
38. Inthis example no horizontal tabs are set but the respective print position is determined in a horizontal direction by means of an ab solute dot position ESC n m 254 T5023 5023 Programming Guide Application examples Document processing Document structure Pe Sehece Me ME Konto Ne MBX Getrag MES Benkicitzant Bom DO0CO000 1265L0F 0000030395344 GPAS00S3F 40d 1 Distance bottom edge of document bottom edge of coding line 8 47 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 a Distance top edge of document bottom edge of first text line 24 mm 170 180 inch Distance between the text lines 7 5 mm 53 180 inch Distance left edge of document left edge of first print character 10 10 inch print position 10 with 1 10 inch character 6 Document width 59 10 inch The character density in a text line is to be 10 characters inch default value T5023 5023 Programming Guide 255 Document processing Application examples Print positions The following illustration shows the different print positions for text and OCR printing Pe Seneck Nre loo onto MX erag Sanklentzani Ee 000000012485107 00000303534 4230033 amp 0d An absolute dot position on the respective current vertical position is reached via the command ESC n m The position is calculated with the
39. K n m Data ASCII character 27 75 n m Data Decimal 1B 4B n m Data Hexadecimal Function The 8 dot graphics mode single density is switched on with ESC K 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 The section Mode of operation of the graphics commands con i tains further notes on the command ESC K n m Using ESC any graphics mode of the document printer can be assigned to the command ESC K 168 T5023 5023 Programming Guide Graphics commands Syntax of the graphics commands Switching on the double density graphics mode ESC L n m Data ASCII character 27 76 n m Data Decimal 1B 4C n m Data Hexadecimal Function The 8 dot graphics mode double density is switched on with ESC L 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 The section Mode of operation of the graphics commands con i tains further notes on the command ESC L n m Using ESC any graphics mode of the document printer can be assigned to the command ESC L T5023 5023 Programming Guide 169 Syntax of the graphics commands Graphics commands Switching on the double density and double rate graphics mode ASCII chara
40. Motor error at measu ring drive over light rail 09 Measuring error light rail over 5 mm 10 Motor error at Search left paper edge DETECT Carrier Error at paper edge ERROR measuring HEAD HOT The print head is too hot Rests between printing of the lines When the print head is cold print head or cable defect 364 T5023 5023 Programming Guide Appendix Error messages Cause Possible action Service information No Meaning POWERSUPPLY The power supply is too hot oe Rests between printing of the lines TRANSP Document feed error 00 Sea Control motor blocked platen Motor control TRANSPORT ER guidance hook MSR pressure 01 ROR MICR pressure Motor transport Control motor not plugged electronic defect FEEDER Feeder hardware error ERROR MICR Magnetic ink character reader ERROR MSR WRONG Magnetic stripe reader ORDER ae sequence 02 Wrong parameter Wrong character 04 Wrong character length T5023 5023 Programming Guide 365 Error messages Appendix Cause Possible action Service information No Meaning Magnetic stripe reader hard 01 ware error 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 error 15 Parity error 16 No data found 17 No start character found 18 Wrong flux change di stance 19 No end character
41. PRINT char 27 M PRINILF character size 12 cpl PRINT Char 27 7 G PRINTLF character size 15 cpi Result character width 10 cpi character width 12 col character width 15 cpi 98 T5023 5023 Programming Guide Standard commands Print quality and character size Selecting the character size 12 cpi Elite ESC M ASCII character 27 77 Decimal 1B 4D Hexadecimal Function ESC M sets the character size to 12 cpi 12 characters per inch Set character sizes in 10 cpi or 15 cpi are cancelled After switching on or initializing the printer the character size is set i to the value which has been set in the emulation menu The character size 12 cpi can be combined with condensed and elongated print With proportional spacing the character size is set to 10 cpi Example BEGIN PRINT Char 27 p P PRINTLF character size 10 cpi PRINT char 27 M PRINTLF character size 12 cpi PRINT char Z 7 o PRINTLF character size 15 cpi Result character width 10 cpi character width 12 col character width 15 cpi T5023 5023 Programming Guide 99 Print quality and character size Standard commands Selecting the character size 15 cpi ESC g ASCII character 27 103 Decimal 1B 67 Hexadecimal Function ESC g sets the character size to 15 cpi 15 characters per inch Set character sizes in 10 cpi or 12 cpi are cancelled After switchin
42. Signal description printer side Centronics plug in the compatibility mode and ECP mode sowo E0Pade Compe Mode Data 2 4 Bidirectional Datas Daas 7 Data 8 MSB Data 8 MSB 10 11 PeriphAck 12 13 a5 Notdefined Notdefined ae logeGa Logic Grd ChassisGrd_ Chassis Grd J J Signal Ground nStobe Signal Ground Data 1 Signal Ground Data 2 Signal Ground Data 3 7 Peripheral Logic High Peripheral Logic High 9 Signal Ground nStobe Signal Ground Data 1 Signal Ground Data 2 Signal Ground Data 3 23 378 T5023 5023 Programming Guide Signal Ground Data 4 Signal Ground Data 4 Appendix Description of the physical interface ECP Mode Compatible Mode Signal Ground Signal Ground Data 5 Data 5 Signal Ground Signal Ground Data 6 Data 6 Signal Ground Signal Ground Data 7 Data 7 Signal Ground Signal Ground Data 8 Data 8 Signal Ground PError Signal Ground PError Select nAck Select nAck Signal Ground Busy Signal Ground Busy nFault nFault Signal Ground Signal Ground nAutoFd nSelectin nAutoFd nSelectin ninit ninit 31__ Host_____ nReverseRequest_ nint 33 Notdefined Notdefined 34 Notdefined Notdefined 35 Notdetined Not defined 36 Host 1284 Active nSelectn T5023 5023 Programming Guide 379 Description of the physical interface Appendix Description of
43. Standard commands Result SRE AN HHH p Tim O IRARAAN COo UWHED PENA HHH a a e a e m e FS naa SENNO t anG MD HHHH aa a oO MPNA fed PAU lt SS HEHH n n n n N n 4 3 Oo0000 MIM 0 gt 33223 Up F Eo HPHHP HHH p gt Meee spacing par 9 a spacing spacing spacing spacing spacing 62 T5023 5023 Programming Guide Standard commands Line feed commands Determining n 360 inch line spacing ESC n ASCII character 27 43 n Decimal 1B 2B n Hexadecimal Function ESC n sets the line 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 1 180 inch an uneven value for n 1 3 5 leads to a rounding off i As the document printer can only execute line feeds in a matrix of min error of 1 860 inch T5023 5023 Programming Guide 63 Sheet ejection commands Standard commands Sheet ejection commands The length of a document can be set directly or indirectly and the document ejec ted using the following commands Command Function o 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 size of the document to be processed is set for the document On the basis of the document length thus set the bottom margin see
44. Withdrawals Recalts Balance 07 01 99 Balance A 021 500 00 500 00 2 _ 07 01 99 Cash l 022 7 200 00 4 go ea Ole me Sonat aymer Payment yi 025 50 00 bajo j gt a o fo spo janj os a ta Passbook width 209 mm Distance bottom edge of posting line 1 top edge of passbook 34 mm 241 180 inch Line spacing between the posting lines 1 5 inch Number of posting lines 20 Five posting lines present Oo oo A O Printable area in a posting line positions 25 to 86 print positions of the printing unit for 10 cpi print position 90 is identical with the right edge of the passbook MSR processing is as per DIN 266 T5023 5023 Programming Guide Application examples Passbook processing with MSR Program steps annotated 1 Setting MSR parameters Command Parameters Remarks CSI n1 n2 n3 n4 n5 r n1 0 no write repetitions default value n2 0 no read repetitions default value n3 0 write read format DIN n4 99 vertical distance from leading edge 99 180 inch 14 mm n5 1 bottom leading edge This parameter 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 2 Specifying the horizontal leading edge logical Command Parameter Remarks CSiIn t n 1 form guidance on right This program s
45. and the corresponding parameter s Graphics mode needles horizontal vertical used dot density dot density single density double density double rate double density quadruple density screen graphics screen graphics 2 single density double density screen graphics 2 triple density sextuple density T5023 5023 Programming Guide 159 Mode of operation of the graphics commands Graphics commands Mode of operation of the graphics commands This section describes the mode of operation of the graphics commands The graphics commands are structured as follows ESC command identifier n m data Command identifiers are the letters K L Y Z or s Via entry of the identifier with ESC by means of entry of the parameter s one of the graphics modes of the 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 of dot columns m 256 n The subsequent data contains the information encrypted in numbers between 0 and 255 bytes about the dots from which the graphics are to be composed The encryption takes place as described in the section Character definition of the Character set commands chapter The total number of data bytes is calculated from the parameters n and m Number of data bytes m 256 n 8 dot mode Number of data bytes 3 m 256
46. are available 32 Selects feeder compartment 2 only if 2 feeder compartments are available 34 Switches single sheet feeder on 52 Ejects one sheet without pulling in a new one 48 1 49 50 52 82 Since the automatic single sheet feeder is not available for the document printer all other parameters n R are ignored except for one Instead of ESC EM R sheet ejection use the FF Form Feed com i mand to do without the ESC EM command altogether in an application 50 T5023 5023 Programming Guide Standard commands Special character codes Special character codes In this chapter the following commands are described Command Function CR Carriage Return BS Backspace of one character DEL Deleting a character CAN Canceling a line Carriage return ASCII character Decimal Hexadecimal Function After CR carriage return the data contained in the buffer is printed and the print head is returned logically to the left edge If CR according to the setting for example on the operating panel is only inter preted as CR the print head is returned 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 interpreted as CR LF a line feed is added after execution of the carriage return Example A demonstration of the effect of CR commands depen
47. character codes T5023 5023 Programming Guide 141 Definition of characters Character set commands Using the control command ESC amp the data bytes of one or more characters defined by the user can be transferred ESC amp n1 n2 n3 d0 d1 d2 data 1 dO d1 d2 data 2 The meaning of the individual parameters is explained in the command descrip tion of ESC amp see section Transferring the character definition in this chap ter Meaning of the parameters dO d1 d2 142 T5023 5023 Programming Guide Character set commands Definition of characters Example of the definition of a draft character The example shows the following steps Definition of a draft character under the character code of the letter A left space two dot columns character width nine dot columns right space one dot column Printing of the newly defined character in normal elongated and italic print BEGIN New definition of PRINT char 27 amp char 0 AA lt character A PRINT char 2 9 1 lt Character width PRINT table 9 dot columns PRINTLF AAAABCDEFG PRINT char 27 char 1 PRINTLF AAAABCDEFG lt B to G not newly PRINT char 14 defined PRINTLF AAAABCDEFG PRINT ehartZ 7 4 PRINTLF AAAABCDEFG END BEGIN table Ghar 6 Oy 07 6305 07332 7 Oy GO char 64 0 0 255 255 255 64 0 0 lt Charcter width 9 char 32 0 0 16 0 0 8 0 0 i e 27 data byt
48. ee ee R 356 Error message Sanini a a a weant leh ine 359 Status MESSAGES a e a eai 359 Status messages Bootstrap loader activated eeeeee 360 Man nCioN Sesiinae esd cies neta 361 Description of the physical interface ccccsseccecsseeeeeaeeeeeseeeeesaeeeeens 367 GONG Al seescticdcv sa cto tic ana dee uated ciaee a E N 367 Flanid Shaking DFOLOGOIS vz cocatwcencil a a a a 367 Interface data Serial interface cccceccccccsseeceeeceeeeeeeeaeeeeeesaeeeeeeeeas 369 Interface data external Centronics interface ccceeeeeeeeeeeeees 375 GOSS ANY ar R A A 385 Saro E E E E E E EE E E E E E E E E E E 387 T5023 5023 Programming Guide Preface This programming manual describes in the main the instruction set of the multi functional flat bed printer The document printer is a workstation printer with one printing point and is used to process documents and passbooks The printer can be fitted with a magnetic stripe reader MSR as an option This manual is intended for all users who wish to create their own programs for example for document or passbook processing Detailed technical data ope rating information for example 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 Following conventions are made in this manual Courier System outputs
49. form edge 0 to 9999 in the measuring unit 1 180 inch thus n4 180 inch n5 leading edge for the vertical distance 0 top 1 bottom Function CSI n1 n5 r is used to define under what conditions subsequent MSR tran sactions e g reading or writing the magnetic stripe are to be controlled by the MSR unit Repetitions The parameters n1 and n2 are set in case the writing or reading attempts cannot be carried out without error the first time These actions will then be automatically repeated n1 or n2 times If they do not deliver a correct result after repetition the operation will be interrupted If no data is found on the magnetic 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 the magnetic stripe on the passbook is defined by the two parameters n4 and n5 whereby n4 fixes the distance of the stripe in 1 180 inch steps from the edge defined by n5 0 top leading edge 1 bottom leading edge 210 T5023 5023 Programming Guide Additional commands Printer Controlling the MSR MICR functions Table for recording formats Depending on the recording formats the user must transfer the following va lues via CSI r in order to be able to process the following recording mo des 14 mm 99 180 IBM 1 11 mm 78 180 105 characters 14 mm 99 180
50. functions block print centering and right justified cannot be used in conjunction with 2 byte characters Character pitch HMI Epson ANSI emulation The character 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 5 CPI When the attributes elongated print or condensed print are used the character pitch is multiplied with the factor of 0 5 or 2 The character set enabled by the operating panel selection will be active after power on This presetting can be superseded by the control command shown in the following table T5023 5023 Programming Guide 293 Control of Asian Character Sets Pre setting of the Character Set ESC n q Name ASCII chars Decimal Hexadecimal Parameter n Encoding Epson fonts 1 byte mode EPSON ESC P GB 2312 80 2 byte mode GB2312 GB 5007 2 byte mode GB5007 GB 5199 2 byte mode GB5199 GB Xxxxx 2 byte mode GB reserved for additional font tables FANG SONG GB2312 2 byte mode simplified Chinese 80 GB5007 GB5199 and GB xxxx Fonts GB 2 byte mode simplified Chinese reserved for additional font tables n 101 BIG 5 2 byte mode BIG5 n 102 200 BIG5 2 byte mode BIG5 font currently reserved for additional font tables 294 T5023 5023 Programming Guide Specific Operating System Dependencies W
51. further notes on the command ESC 7 T5023 5023 Programming Guide 153 Switching on italic print Character set commands Copying the character set into the RAM ESC NUL n NUL ASCII character 27 58 NUL n NUL Decimal 1B 3A NUL n NUL Hexadecimal Function It is advisable to use this command when only a few characters of a resident cha racter set are to be modified Before the definition of a new character using ESC amp any resident character set can be copied into the RAM of the printer using 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 character set or ESC S n Superscript sub script Subsequently the current character set is copied into the RAM using ESC NUL n NUL n is the number of the LQ type font specified in the standard command ESC k n for example see Standard commands chapter section Selecting the LQ type font ESC k n 154 T5023 5023 Programming Guide Character set commands Switching on italic print Transferring the character definition ESC amp S n m Data ASCII character 27 38 S n m Data Decimal 1B 26 S n m Data Hexadecimal Function Using the control command ESC amp the encryption number sequence of one or more characters defined by the user can be transferred ESC amp s n m d0 d1 d2
52. if the graphics character set was activat ed using ESC t 1 However the graphics characters are not printed in italics Example BEGIN PRINTLF Draft normal PRINT char 27 4 PRINTLE Draft italic PRINT char 27 x char 1 PRINTLF LQ italic END T5023 5023 Programming Guide 147 Switching on italic print Character set commands Result Dratt normal Oral 2talic L italic Switching off italic print ESC 5 ASCII character 27 53 Decimal 1B 35 Hexadecimal Function Italic print activated using ESC 4 is switched off again using ESC 5 In the upper character table italic characters can be addressed even i after entering ESC 5 see ESC t n 148 T5023 5023 Programming Guide Character set commands Switching on italic print Selecting the character set ESC t n ASCII character 27 116 n Decimal 1B 74 n Hexadecimal Function Using ESC t n one of the following character sets of the complete upper cha racter table is selected talic character set n 0 The upper character table contains the italic characters of the current cha racter set draft LQ or defined by the user The upper control code table contains control codes identical to those of the lower control code table Graphics character set n 1 The complete upper character table contains graphics characters and inter national special characters Character set defined by the user
53. length equal to the distance between left and right margins T5023 5023 Programming Guide 81 Horizontal print control Standard commands Setting the text alignment ESC a n ASCII character 27 97 n Decimal 1B 61 n Hexadecimal Function ESC a n sets the following text alignments depending on n 0 3 flush left n O default value centered n 1 flush right n 2 margin justification n 3 The adjustment takes place after the output of the following control commands CR Carriage return is output implicitly for example by the print command 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 aligned flush left and flush right Thereby the word spacing and the character spacing are increased if necessary The divisi on of a text into print lines takes place automatically Therefore LF or CR com mands for example via the print command PRINTLF should only be used within a margin justification text in order to set a paragraph in the text 82 T5023 5023 Programming Guide Standard commands Horizontal print control After switching on or initializing the printer ESC the text align i ment is flush left n 0 In most programming languages there are print commands which after the output of
54. 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 ter The exact quantity depends on the selected graphics mode and the parameters specified in the command In many cases graphics can also be displayed with a commercially available program on the screen of the computer and then printed as a so called Screen Dump As long as the program uses the ap propriate graphics commands the screen image and the printout will match All the graphics modes of the document printer can be switched on using the command ESC T5023 5023 Programming Guide Graphics commands Graphics modes Graphics modes The graphics modes of the document printer are identified by the number of ver tically arranged dots which the print head prints in a graphics line i e by the number of print head needles addressed during the printing operation 8 dot mode In one graphics line 8 dots spaced at 1 60 inch can be printed vertically In this mode six different horizontal dot spacings are available 24 dot mode In this mode 24 dots spaced at 1 180 inch 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 following table shows the dot densities in dots per inch of the various graphics modes
55. neath the other Squares The encryption of such a dot column takes place ac cording to the following system Each square of the dot column from the top to the bottom in descending order is assigned a value of a power of two The encryption of the dot column is the total of the powers of two of all squares which contain a dot for example 32 16 lt 2 Total 50 The total of a column which contains no dots is 0 the total of a column in which all the dots are set is 255 T5023 5023 Programming Guide 139 Definition of characters Character set commands 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 calculated i e altogether 3 29 87 data bytes Example lt Capital letters 2nd dot column De A A 32 16 32 31 32 16 32 0 0 Totalof 1stdotcolumn 0 0 0255 0 0 0 QO Total of 2nd dot column 32 64 32 192 32 64 32 0O 0 Totalof 3rd dot column 140 T5023 5023 Programming Guide Character set commands Definition of characters Transferring the number sequence to the printer When the complete dot pattern of a character is encrypted as a number se quence this number sequence is transferred to the printer RAM using the con trol command ESC amp Subsequently the character can be printed as a character defined by the user If several characters are to be d
56. pictures There are two different approaches to printing graphics Graphics printing in text mode The graphics are composed from individual graphics characters upper cha racter table see chapter Character set commands Graphics printing in graphics mode dot graphics The graphics are printed as dot 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 the printing of more complicated pictures is also possible This chapter describes the commands for printing in graphics mode commie Futon E50 6 at ESC Y n m data Switching on graphics mode double density and double rate ESC Z n m data Switching on graphics mode quadruple density ESC m s Reassign graphics commands T5023 5023 Programming Guide 157 158 Graphics commands General notes on the command description can be found in the chapter Standard commands in the sections Description com ponents Coding of decimal command parameters and Program examples The document printer works in different graphics modes A gra phics mode is labelled by the number of print head needles addres sed when printing 8 needles or 24 needles and by the horizontal dot spacing 60 360 characters per inch The graphics commands switch on one of the graphics
57. printer can be delivered with a magnetic stripe rea der MSR device 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 program MICR Magnetic ink character reader for the fonts CMC7 and E13B Feeder Single sheet feeder for 500 sheets A4 Memory extension The memory extension is necessary e g for journal data or asiatic fonts 8 T5023 5023 Programming Guide Short description of the document printer System interface System interface Data which activates the functions of the printer is transferred through the sy stem interface The interfaces has the following characteristics the physical connection the logic protocol command sequences The 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 respondent additonal logic Logical protocol Several protocols emulations are available Dependent on the loaded firmware configuration the following selection is possible Firmware configuration 5023 STD Epson ANSI IBM 4722 Proprinter XL24 Firmware configuration 5023 OLLI Epson ANSI Olivetti Proprinter XL24 T5023 5023 Programming Guide 9 System interface
58. producing characters defined by the user After initializing the printer there is also a switch over to the stan dard Epson character sets T5023 5023 Programming Guide 191 Basic commands for document processing Additional commands Printer The character fonts for the document printer have the following standard op tions DQ area DQ LQ area 1 Roman 2 Sans Serif 3 OCR A OCR A1 Eurobanking 4 OCR B OCR B1 Eurobanking The fonts DQ Roman and Sans Serif can be selected using the standard commands Switch over print quality ESC x n and Select LQ type font ESC k n In contrast the fonts OCR A OCR B and ISO 8859 can only be selected by means of the additional command Selection of type fonts cha racter sets CSI n q The following table contains the necessary character set and font numbers OCR A n 900 OCR B n 901 Roman ISO 8859 n 600 only with font CP15_437 Sans Serif ISO 8859 n 601 only with font CP15_437 DQ ISO 8859 n 602 only with font CP15_437 Country versions for the ISO 8859 character set are selected using the com mand Select national character set ESC R n Fot Country specific character sets ISO 8859 2 East Europa ISO 8859 5 Cyrillic ISO 8859 7 Greece ISO 8859 8 Hebrew ISO 8859 9 Turkey ISO 8859 15 Euro The character tables for OCR A OCR B and ISO 8859 are listed in the appen dix Character set tables 192 T5
59. selected The values 0 to 7 chan nel O to channel 7 are permitted for c For all subsequently entered VT commands Vertical tabulation the paper feed will then be controlled by the valid tabs in the current channel Vertical tabulation ASCII character Decimal Hexadecimal Function After VT all the data contained in the buffer is printed and the paper transported to the next tab in the current channel If no channel has been selected the vertical tabs are accepted in i A channel can be selected via ESC channel number channel 0 Ifno vertical tabs are set in the standard channel 0 nor in a selected channel 1 to 7 the paper is only transported one line on after VT Line feed T5023 5023 Programming Guide 13 Vertical print control Standard commands Paper control ESC EM n ASCII character 27 25 n Decimal 1B 19 n Hexadecimal Parameter n 0 Deactivates the mode n 1 Selects the feeder compartment 1 n 2 Selects the feeder compartment 1 n 4 Selects the feeder compartment 1 n R_ Ejection the feeder is activated and no document has be fed by the operator a document will be fed from the paper supply automatically when a print or line feed command is received i This command is only to be used if a single sheet feeder is installed If 14 T5023 5023 Programming Guide Standard commands Horizontal print control Horizontal print control This section describes the commands for
60. setting horizontally arranged docu ment positions left or right margin and horizontal tabs The following functions are possible automatic end of line i e automatic carriage return with line feed when a certain column position is reached feeding at certain column positions without the corresponding printing of blank spaces feeding to any dot positions of a line Command ESC n Determining the left margin ESC Q n Determining the right margin ESC a n Determining the text adjustment ESC D n1 n2 NUL Determining deleting horizontal tabs HT Horizontal tabulation ESC n1 n2 Horizontal positioning absolute ESC n1 n2 Horizontal positioning relative ESC SP n Determining the character spacing When positioning the print head horizontally a distinction must be made bet ween the horizontal leading edge on the left and on the right For example with horizontal leading edge on the left print position 0 can be the same as the left edge of the document or after ESC n displaced to the right by the value n Dependences 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 column position is calculated on the basis of the currently set character size 10 12 15 cpi elongated or condensed print Even if the character size is altered at interva
61. should be noted that the respective document length n lines line spacing must not exceed the length 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 see the corresponding command description in the Ver tical print control section le for a document length of 12 inches the printer issues an error mes sage PAPER LENGTH If a bottom margin is set logically on the paper via ESC N n for example at 9 inches and this margin is exceeded a form feed FF is executed i If the print head is positioned beyond the edge of the paper for examp 66 T5023 5023 Programming Guide Standard commands Sheet ejection commands Determining the document length at n inches ESC C NUL n ASCII character 27 67 0 n Decimal 1B 43 00 n Hexadecimal Function ESC C NUL n sets the document length at n inches absolute document length independent of the line spacing The value of n must lie between 1 inch and 50 inches inclusive The value n inches must be selected so that the length of the paper format is not exceeded If the format is exceeded by a corresponding n the printer auto matically 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 pos
62. some computers the MSB value Most Significant Bit is always constant 1 In practice that would mean that in the character table only characters from the range of 80h to FFh could be addressed and then only italic or gra phics characters or characters defined by the user could be printed The 8th bit can be deleted using the command 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 the 8th bit can be set to 1 by ESC gt Then it is also possible to address italic or graphics characters or cha racters defined by the user T5023 5023 Programming Guide 41 Controlling the configuration of the printer Standard commands Initializing the printer ESC ASCII character 27 64 Decimal 1B 40 Hexadecimal Function Via ESC the printer can be reset by the program to certain operating conditi ons initializing of software ESC resets the printer to the default values and deletes all the print data of the current line out of the print buffer which were transmitted prior to the command The following actions will be executed set line spacing to 6 lines per inch set the document format and the right and bottom margins 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 emul
63. stored in the ROM Read Only Memory of the printer lf the printer receives a character code from the computer it prints the corre sponding character according to the stored pattern Two areas are differentiated with the printable character codes area with the basic characters or italic characters area with the italic characters or graphics and special characters To differentiate the character code areas the following labels are used in this chapter lower control code table for the code range from hex 00 to hex 1F decimal 0 to 31 lower character table for the code range from 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 AO to hex FF decimal 160 to 255 complete upper character table for the code range from hex 80 to hex FF decimal 128 to 255 The following character set definitions result from this The italic character set contains basic characters in the lower character ta ble and italic characters in the upper character table The graphics character set contains basic characters in the lower character table and graphics characters in the upper character table The extended graphics set contains a basic character set in the lower cha racter table and graphics characters in the complete upper character table
64. such as error messages informati on notes file extracts Courier Bold Example of user inputs Indicates a list Indicates a specific sequence must be followed Refers to other chapters or sections Marks functions which have to be preferred All functions without this sign are only mentioned for compatibility reasons they should only be used by exception General informations notes and tips Warning notes which have absolutely to be followed gt l T5023 5023 Programming Guide 1 Preface Abbreviations Abbreviations APA graphics APR CS DQ IF LQ MSR MICR CSI LSB MSB OCR All Points Addressable graphics Automatic Passbook Reader Character Set Draft Qualitiy Interface Letter Quality Magnetic Stripe Reader Magnetic Ink Character Recognition Control Sequence Introducer Least Significant Bit Most Significant Bit Optical Character Recognition printer fonts Use of the manual This manual describes printer programming for various document processing applications All program examples in this manual are independent of programming langua ges pseudo code Particulars for the conversion of pseudo code instructions into a programming language 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 account T5023 5023 Programming Guide Pref
65. the function Dual station control was activated using the command CSI n t 232 T5023 5023 Programming Guide Additional commands Printer Status and error messages Printing unit parameters Command requesting printing unit parameters Name ASCII character Decimal Hexadecimal n 0 Response without parameter n8 printer type n 1 Response with parameter n8 printer type Response printing unit parameters n1 n9 Name n1 n9 ASCII character n1 n9 Decimal n1 n9 Hexadecimal Parameter ni Printing station number 0 document station 1 journal station n2 4 document n3 maximum width of form in 1 10 inch n4 number of feed channels 2 feeder option n5 Number of eject channels n6 0 OCR reader option not available 1 MICR reader option n7 MSR option 0 option not available 1 option available n8 printer type T5023 5023 Programming Guide 233 Status and error messages Additional commands Printer n 9 Memory Extension No Memory Extension El Journal 2 CG Asien GB 2312 Asien GB 5007 Asien GB 5199 Asien GB BIG 5 OoOoRWN O Parameter message with el journal ni Printer station number 0 document station 1 journal station n2 3 journal n3 maximum width of form 1 10 inch n4 Number of feed channels n5 Number of eject channels n6 OCR reader option not available n7 MSR option n8 printer type
66. the mode T5023 5023 Programming Guide 109 Print modes Standard commands Switching on bold print ESC E ASCII character 27 69 Decimal 1B 45 Hexadecimal Function ESC E switches bold print on With bold print each dot of a print character is prin ted twice The second dot is printed slightly displaced to the right Bold print is switched off again using ESC F or ESC n i 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 with bold print than with normal print Example BEGIN PRINTLE standard print PRINT char 27 E lt Bold print on PRINTLF bold print LO print quality PRINT char 27 x char 1 lt ESC x n PRINTLF bold print in LQ print quality PRINT char 27 G lt Double impact print on PRINT bold print and double impact print ESC G PRINTLF in LQ print quality END Result reduced in size standard print bold print bold print in LQ print quality bold print and double impact print in LQ print quality 110 T5023 5023 Programming Guide Standard commands Print modes Switching off bold print ESC F ASCII character 27 70 Decimal 1B 46 Hexadecimal Function ESC F switches off the bold print set using ESC E or ESC n Example BEGIN PRINT normal char 27 E bold PRINTLF char 27 F normal END Result
67. user defined Characters cc csceseeeceeeeeeeeeeeeeees 145 Syntax of the character Set COMMANAS cccsecccceeeeceeeeseeeeeeeeeeeees 147 SWIHCHINIG OM ANG DINE wiactea inte cect ieeend cet a ie sae eit 147 SWITCHING OI Walle OFA ssid eters cake Rate a aaa 148 Selecting the Character Set cccccccccsseceeecsseeeeeseseeeeeseenseeesaaeeeess 149 Selecting a national Character Set ccccccceeeeeeeeeeeeeeeeeeeeeeeeeeaes 150 Switching on off the character set defined by the user 151 Switching on extended character set ccceecccseeeeeeeeeeeeeeeeeeaees 152 Switching off extended character Set ccccccceeeeeeeeeeeeeeeeeeeeeeeaes 153 Copying the character set into the RAM cscceeseeeeeeeeeeeeees 154 Transferring the Character definition ccccccecseeeeeeeesaeeeeeeenaeeeees 155 Graphics COMMANGS ainiaan aaa aaa aa aa aaaea eaa 157 Graphics Modes eiris a a a 159 Mode of operation of the graphics commandS ceceeeeeeeeeeeeeeeees 160 Syntax of the graphics COMMANAS cccsecccecceeeeeeeeeeeeeeseeeeseeesaeeeeees 163 Selecting the graphics mode cccccccseseeeesesececceeeseeseeaeeeeeeeeaeees 163 Switching on the single density graphics mode ecceeeeeeeees 168 Switching on the double density graphics mode ceeeeeees 169 Switching on the double density and double rate graphics mode 1
68. using the least number of commands possible T5023 5023 Programming Guide 179 Important notes on document processing Additional commands Printer Character box The printable areas on documents refer on the one hand to the outer edges of the documents and passbooks as well as to staggered edges and folds on the other hand to the character box of the print character also see appendix Paper specification Character 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 width 1 12 inch 2 12 mm 15 characters inch width 1 15 inch 1 69 mm Width of the character box for proportional spacing from 1 27 mm to 2 96 mm The height of the character box is defined by means of the vertical distance bet ween the highest and lowest needles for the document printer 3 5 mm Within this character box each dot can be printed blacked via a needle Character box Ascender Height of capital letters Base line Descender 180 T5023 5023 Programming Guide Additional commands Printer Important notes on document processing lt Upper character box limit Base line of the print character lt Lower character box limit Right character box limit Left character box limit the character box defined here The capital letter
69. 023 5023 Programming Guide Additional commands Printer Basic commands for document processing Before using the command CSI n q the printer 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 character size types of print also work on the se fonts in the manner described in the chapter Standard commands No special handling takes place T5023 5023 Programming Guide 193 Basic commands for document processing Additional commands Printer Absolute vertical positioning Leading edge upper edge of form Name ASCII character Decimal Hexadecimal Name ASCII character Decimal Hexadecimal 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 194 T5023 5023 Programming Guide Additional commands Printer Basic commands for document processing Function For document processing two commands are available for the absolute vertical positioning y co ordinates of the write head on a form Generally both com mands after transfer to the printer are valid for effecting the output of the cha racters still situated in the print buffer The requested vertical movement is then carried out mechanically when new write operations are exec
70. 2 105 characters ISO 7811 T5023 5023 Programming Guide 213 Controlling the MSR MICR functions 214 Additional commands Printer Depending on the recording format the following user data can be read DIN IBM 1 IBM 2 105 characters ISO 7811 Max number information characters T5023 5023 Programming Guide Information character range hex 30 to 39 3E 30to 39 3A3D3E 30 to 39 3A3D3E 30 to 39 3E 30 to 39 3A 3E Additional commands Printer Controlling the MSR MICR functions Writing a MSR track CSI STX ETX Name ESC r STX ETX ASCII character 27 91 35 114 2 3 Decimal 1B 5B 23 72 02 03 Hexadecimal Response acknowledgement of the write command CSI n1 n2 r Name ESC n1 n2 r ASCII character 27 91 n1 n2 35 114 Decimal 1B 5B n1 n2 23 72 Hexadecimal ni number of required writing attempts n2 error in the read after write check 0 no error 1 error Function The block of characters specified via CSI r between STX and ETX is recorded on the magnetic stripe under the conditions set using the command MSR para meter block CSI r The character string must contain the start and end cha racters appropriate to the selected recording format DIN 0 3D SF IBM 1 1 3B 3C IBM 2 3B SF 105 characters 3D SF ISO 7811 3B SF T5023 5023 Programming Guide 215 Controlling the MSR MICR functions Additional commands Print
71. 2 T5023 5023 Programming Guide Standard commands Print modes Switching on condensed print ESC Sl ASCII character 27 15 Decimal 1B OF Hexadecimal Function ESC SI has the same effect as the command SI T5023 5023 Programming Guide 103 Print modes Standard commands Switching off condensed print DC2 ASCII character 18 Decimal 12 Hexadecimal Function DC2 switches the condensed print off which was set using SI ESC SI or ESC n or in the emulation menu Example BEGIN PRINT normal char 15 condensed PRINILF char 18 normal END Result normal condensed normal 104 T5023 5023 Programming Guide Standard commands Print modes Switching on elongated print for one line SO ASCII character 14 Decimal OE Hexadecimal Function SO switches on elongated print for the current print line Before beginning the next print line elongated print is switched off again In elongated print the width of the characters is doubled Thecommand SO has the same effect as the command ESC SO i Elongated print is switched off again using DC4 Elongated print can be combined with condensed print and all the character sizes 10 12 15 cpi T5023 5023 Programming Guide 105 Print modes Standard commands Switching on elongated print for one line ESC SO ASCII character 27 14 Decimal 1B OE Hexadecimal Function ESC SO has the same effect as the command SO
72. 232 Data format 2400 4800 9600 19200 Baud Rate Data word length 7 8 Bit Stop bits 1 2 Parity even odd none 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 369 T5023 5023 Programming Guide Description of the physical interface Appendix Buffer control RS 232 The document printer has a 8192 byte print buffer whose size cannot be chan ged If there are less than 512 bytes of buffer free 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 controlled by the DITR CTS hardware handshaking or by the XON XOFF software protocol Buffer disabled enabled 1024 512 free buffer bytes Error handling Errors when receiving data Error status message Reaction BREAK Warning FRAMING ERROR Warning PARITY ERROR Warning OVERRUN ERROR Error 370 T5023 5023 Programming Guide Appendix Description of the physical interface Signal description and connector assignment RS 232 interface Pin05 SG Signal Ground Data lines Pin 03 TD Transmitted Data Serial data output printer gt Host Pin02 RD Received Data Serial data input printer lt Host Control lines Pin08 CTS Clear To Send Entry In the DTR Busy and XON XOFF protocol the ON stat
73. 3 Programming Guide 315 Character Sets Appendix Code Page ISO 2 0123456 789ARCDEF 316 T5023 5023 Programming Guide Appendix Character Sets Code Page 775 Latin Baltic 0123456789 ABCDEF T5023 5023 Programming Guide 317 Character Sets Appendix Code Page 850 Latin 1 0123456789ABCDEF 318 T5023 5023 Programming Guide Appendix Character Sets Code Page 852 Latin 2 0123456789ABCDEF T5023 5023 Programming Guide 319 Appendix Character Sets Code Page 855 T5023 5023 Programming Guide 320 Appendix Character Sets Code Page 857 Latin 5 0123456789ABCDEF T5023 5023 Programming Guide 321 Character Sets PC Code Page 858 322 0123456 789ARCDEF O P P1TAQA Z2Z BRD wo w i 7 oe x lt r wa ts sn lt mi T5023 5023 Programming Guide py cy hy Cc MM gt bs all ame mer amp wO PR ir oe amp O GS m Tt U E i gt wi 0GF C iah mans Appendix Appendix Character Sets Code Page 860 Portugal 0123456789ABCDEF For addresses 00 to 7Fp see Code Page 437 T5023 5023 Programming Guide 323 Character Sets Appendix Code Page 866 Latin Cyrillic 0123456789 ABCDEF 324 T5023 5023 Programming Guide Appendix Character Sets Code Page 869 Latin Greek 0123456789ABCDEF T5023 5023 Programmin
74. 70 Switching on the quadruple density graphics mode 0008 171 ReasSigning graphics COMMANAS cccseeeceeecaeeeeeeeeeeeeesaeeeeeeeeas 172 Additional commands Printer cccccssseccsssseeeseeeseeeseesseeseensensees 173 Structure of the additional COMMANAS ccccseeeceeeseseeeeeeaeeeeeeeaaeeees 174 OMEN All fence eects sacs a a esaesassandnseeraeeages ade N 174 Transier Of USEr Cala rerea a lsd eee eee 176 Reaction to incorrect parameters ccccecececeeeeeceeeeeeeeeeeeeaeeeeeeaeees 176 RESPONSES iaren i unin tat vats ncaa E aaa toatl 176 Notes on the command CESCTIPTION cccceeeeeeeeeeeeeeeeeeeeeeeeesaeees 178 Important notes ON document processing cccceeeeeeeeeeeeeeeeeeeeeeeeeees 179 Character OX hac sec tees ess hiss tae Seaan atin ca cek vce dae aemenaaa tae cuas 180 FIOIZON tal POSITIONING i nea a tuwtates 182 Verica DOS IN OMING erae a A 185 Basic commands for document processing ss sssssssresesrrrresrrrreerrrreee 189 Paper feed of the COCUMEND cccceeeeeccseeeeeeeeeeeeeeeaeeeeeesaaeeeeeeeas 190 Selection of type fonts character Sets cccccssseeeeeeeeeeeeeesaeeeees 191 T5023 5023 Programming Guide Contents Absolute vertical positioning cccccccssseeeeeceeeeeeseeeseeessaeeeeeseaees 194 Relative vertical positioning backwards cccccesseeeeeeeeeeeeneeeeees 196 Requesting the document WICKN cc
75. 93 Print quality and character size Standard commands Switching print quality Draft LQ ESC x n ASCII character 27 120 n Decimal 1B 78 n Hexadecimal Function Switching to draft print quality ESC x 0 switches from LQ to draft print quality This results in a higher print rate and a lower print density 60 print dots per inch in a horizontal direction Switching to LQ print quality ESC x 1 switches from draft 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 After switching to LQ print quality printing takes place in the last i Switching from draft to LQ is also possible within a print line print type selected using ESC k n After switching on or initializing ESC the printer prints in the print quality which has been set in the emulation menu When switching on the proportional spacing the print quality is au tomatically set to LQ 94 T5023 5023 Programming Guide Standard commands Print quality and character size Example The character spacing is increased step by step BEGIN PRINT char 27 x char 0 PRINILE princ quality Drart PRINT char 27 x char 1 PRINTLE print quality iO END Result print quality Draft print quality LQ T5023 5023 Programming Guide 95 Print quality and character size Standard commands Selecting the LQ type
76. C 3 n ASCII character 27 51 n Decimal 1B 33 n Hexadecimal Function ESC 3 n sets the line spacing to n 180 inch for the subsequent line feed com mands A 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 unit of n 180 inch line spacing BEGIN SET N REPEAT SET N N 4 1 PRINT char 27 3 char N PRINTLF N 180 inch line spacing UNTIL N 20 END Result i f 20 60 T5023 5023 Programming Guide Standard commands Line feed commands Determining n 60 inch line spacing ESC A n ASCII character 27 65 n Decimal 1B 41 n Hexadecimal Function ESC A n sets the line spacing to n 60 inch for the subsequent line feed commands A value between 0 and 127 inclusive must be given for n 0 no feed 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 BEGIN SET loop REPEAT SET loop loop 1 SET N 0 N 3 N 5 N 18 CASE OF loop PRINT Char 27 A Char N lt N Spacing SET line 0 REPEAT SEL Jane line J PRINTLF N 60 inch line spacing UNTIL line 6 UNTIL loop 4 PRINT char 27 lt Initializing the printer PRINTLF END T5023 5023 Programming Guide 61 Line feed commands
77. CI 5 Left margin Print position 0 via ESC I 5 vian 5 See I Print position 0 left edge of document T5023 5023 Programming Guide T Horizontal print control Standard commands size 10 12 or 15 cpi and the print mode condensed elongated i The absolute margin position is dependent on the set character normal With proportional spacing the left margin is determined ac cording to the character size 10 cpi Subsequent alterations to the character size have no influence on the set margin The distance between the left and right margins must be at least 10 cpi ESC I n should be entered at the beginning of a print line as ESC I n deletes all the previously entered characters and tabs in the same print line Example First of all the left document margin will be set using ESC I n for several values of n Subsequently the effect of the current character size on the left margin will be de monstrated BEGIN 78 SET N REPEAT SET N Nea 1 PRINT char 27 1 char N lt Setting left margin PRINTLE beft margin N Ly eolumis UNTIL N 10 PRINTLF 12 Cpa Character PRINT char 27 M lt ESC M PRINT char 27 1 char 10 lt Setting left margin PRINTLE lett margin 9 coriumas 12 epi PRINT char 27 W char 1 lt Switching on elongated PRINTLF Left margin unchanged print ESC SO PRINT char 27 1 char 10 l
78. CII End value 174 T5023 5023 Programming Guide Additional commands Printer Structure of the additional commands CSI starts the control sequence of an additional command and the sequence of responses and stands for the sequence ESC The parameters Pi regarding number and use depend on the respective control command Numeric parameter values are specified as ASCII charac ters in contrast to the ESC sequences of the standard character set and graphics commands for which numeric values are transmitted 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 within the para meter sequence parameter position lf parameter positions are not occupied the appropriate default values or the value 0 will be set implicitly Even if parameter positions in a CSI command are not to be occupied the separator must be set at the respective parameter position Example CSI P1 P2 P3 IF complete command CSI P2 I F P1 P3 are default values CSI P1 P3 IF P2 ist a default value Intermediate I and final F characters end the control sequence or a re sponse T5023 5023 Programming Guide 175 Structure of the additional commands Additional commands Printer Transfer of user data The transfer of MSR data is archived by adding an STX ETX se
79. ESC n m 1B24nm Horizontal positioning absolute T5023 5023 Programming Guide 297 Command table Command ESC n ESC amp s n m ESC s n m ESC n ESC n ESC c ESC 0 ESC 2 ESC 3 n ESC 4 ESC 5 ESC 6 ESC 7 ESC NUL n NUL ESC lt ESC ESC gt ESC m s ESC ESC A n ESC B NUL ESC C n ESC C NUL n ESC D NUL 298 ASCII hex 1B 25 n 1B 26 snm 1B2Asnm 1B 2B n 1B 2D n 1B2Fc 1B 30 1B 32 1B 33 n 1B 34 1B 35 1B 36 1B 37 1B 3A 00 n 00 1B 3C 1B 3D 1B 3E 1B3Fms 1B 40 1B41n 1B 42 00 1B 43 n 1B 43 00 n 1B 44 00 Appendix Function Switching on off the character set defined by the user Transferring the character definitions Selecting graphics mode Selecting n 360 inch line spacing Switching underlining on off Selecting a vertical tab channel Selecting 1 8 inch line spacing Selecting 1 6 inch line spacing Selecting 1 180 inch line spacing Switching on italic print Switching off italic print Switching on the character set extension Switching off the character set extension Copying the character set into the RAM Selecting unidirectional printing for one line Setting the MSB to 0 Setting the MSB to 1 Reassigning graphics commands Initializing the printer Selecting n 60 inch line spacing Determining deleting vertical tabs channel 0 Determining the document length at n l
80. Extension MOD FRM FNT Separator or end character 282 T5023 5023 Programming Guide Loadable Firmware Character Generators ESCAPE Sequences Bootstrap Examples Response if only the bootstrap loader is available ESG LD SMOD yymmdd rrvv BOOTPROM FRM Response if the bootstrap loader and the character generator have been loaded ESC ID SMODS yymmdd rrvv BOOTPROM FRM SMOD yymmdd rrvv CP15_437 FNT Response if all data have been loaded ESC ID SMODS yymmdd rrvv BOOTPROM FRM Boot PROM SMODS yymmdd rrvv CP15_437 FNT Font PC table 437 SMODS yymmdd rrvv 5023 _STD MOD Firmware standard Special feature Electronic journal function ESC ID SMODS yymmdd rrvv BOOTPROM FRM Boot PROM SMODS yymmdd rryv CP 1L5 4372FNT Font PC table 437 SMODS yymmdd rrvv 5023_STD MOD Firmware standard SMODS ELJ Electronic jour nal function enabled With the journal function enabled the recorded data is deleted from the journal memory if the secondary character generator location is selected when loading T5023 5023 Programming Guide 283 Loading character generators Loadable Firmware Character Genera Loading character generators Indicate Ready to load character generator ESC F N T n1 n2 n3 d ASCII chars 27 70 78 84 n1 n2 n3 00 01 Decimal 1B 46 4E 54 n1 n2 n3 00 01 Hexadecimal Function Description This command is used to inform the printer that a new character gener
81. Function xscesctectcct sneetsn Sesces hin Plncced bc dweatajaeueehncdass 274 Load FUNCTIONS General sscan a Laced vances ccceeece 275 Sequence of a Load PLOCESS ccccccsseseeeeceeeeeeeeeeeeeeesseaeeeeeseaees 276 Module IGEMIIIGAT ON cesis 277 ESCAPE Sequences Bootstrap LOader c ccccccseeeeeeeeeeeseeeeeseaees 279 Switch over to the Load FUNCTION cccccceeeeeceeseceteeeeeeseeeeeeeees 279 Exiting NE LOAA FUNGUO net ciccjeect ciate adehaet ae Art 280 Request Module ID Data ID cc ceccccceeeeeeesaeeeeeeeeeeeeeeeaaeeeeeeeeas 281 Loading character generators cccccccccseeecceeeeecceseeeceseecseneesneneeeneess 284 Indicate Ready to load character generator cccccsseeeeeseeeeees 284 Loading the Character Generator cccccccsseeeeeeeeeeeeeeeeeeeeeeseeees 285 OAOING the FIRNMIW ALC soeter ERT 286 lidicate Ready to lOAG steers inn tad deeneactee 286 LOAGING th Firmware reisens i 286 Length ortha Transonic a a S 287 Reading E Journal DAL iisucint cident ticrenttrdincumoarivatombinimaninddeainidautkst 289 Control of Asian Character Sets ccccsssseeessssseeeesesseeeseeneeeseenneees 291 Pre setting of the Character Set ESC n Q ceecceceeceeeeeeeeeees 294 Specific Operating System Dependencies ccsccceeeseeeeeeeeneeeees 295 WNGOwWS NT DIVE S hash cscccc wert uaststicteceentehaelnct sutnedtoran Mandeve a 295 Appe ndiK suiii aa its cak
82. I 103 ESC SO 106 ESC SP n 90 ESC T 176 ESC U n 44 ESC W n 108 109 ESC x n 94 ESC Y n m Data 170 ESC Z n m Data 171 ESC_K n m _Data 168 Extended character set 152 Extended character set off 153 388 T5023 5023 Programming Guide Index Index Extended graphics character table 130 F FF 65 G Graphics 27 Graphics characters 25 Graphics mode double density 169 Graphics 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 tabulation 85 HT 85 Initializing the printer 42 Italic character 25 Italic characters 128 Italic print 147 Italic print OFF 148 L LF 56 Line feed 56 Line feed commands 55 T5023 5023 Programming Guide 389 Index M Mikrodruck 100 N National character set 127 National character sets 26 Non executable commands 120 P Print modes 101 Print quality 92 Printable areas 181 Proportional spacing on off 97 R Reassigning graphics commands 172 Responses 176 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 graphics mode 163 Selecting the LQ type font 96 Selecting the print colour 121 Setting the left margin 77 Setting the MSB to 0 47 Setting t
83. In addition to the Chinese Characters the character set Guo Biao includes the Latin Greek and Russian alphabet Japanese and Korean characters and symbols and line elements The character sets GB 5007 and GB 5199 use partially different characters in the address area A1 A1phex to A9 FEpex than the character set GB2312 80 The character pool and the addressing of the Chinese characters are however identical A1A1 AQFE Latin Greek Russian Japanese and Korean characters symbols graphics AAA1 AFFE Empty BOA1 F FE Chinese characters F8A1 FEFE Empty Font type The font type FANG SONG is used to represent the Chinese characters on the address area BO A1 pex to FE FE pex Font number The font numbers ranging from 0 to 100 are provided for the fonts with the character addresses A1A1 pex to FEFE pe GB XXXX The font numbers 101 to 200 should be used for character sets with an extensive addressing which may not be sequential BIG5 GB2312 symbols GB5007 symbols GB5199 symbols GB Simplified Chinese FANGSONG BIG5 Traditional Chinese 342 T5023 5023 Programming Guide Appendix Chinese Characters in the Passbook Available 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 GB2312 symbols GB5007 symbols GB5199 symbols GB Simplified Chinese FANGSONG BIG5 Traditional Chinese T5023 5023
84. MOD S yymmdd rrvv BOOTPROM FRM SMODS yymmdd rrvv CP15__437 FNT SMOD yymmdd rrvv 5023_STD PAR The passbook and document printer will be booted again after this acknowledgment if the firmware is available During the reboot phase the interface cannot be addressed for 10s max Problems during the load process lf the loaded data is determined as not valid the appropriate file header is missing in the acknowledgment lf the data transfer is interrupted for 60 seconds min during the load process the file header is returned The bootstrap loader resets to the home position Any data transferred is invalid and the load process must be re started Before any load command can be transferred the system must switch the Centronics interface card to the ECP mode bi directional No data will be processed in the compatible mode 288 T5023 5023 Programming Guide Loadable Firmware Character Generators Length of the Transfer Reading E Journal Data J ASCII chars 75 Decimal 4A Hexadecimal Function This command is used to inform the bootstrap loader that the data of the electronic 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 structure Offset Length Contents Meaning Identifier Journal contents code range 20 FE CR LF 0 128 KB EOF 1A hex T5023 5023
85. Part n 1 Switching on Multi Part for curent page Function If the printout of 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 print head attrition will increase 206 T5023 5023 Programming Guide Additional commands Printer Controlling the MSR MICR functions Controlling the MSR MICR functions The magnetic stripe reader MSR is a device which can optionally be integrated into the document printing point of the document printer MSR processing is used for passbook processing whereby relevant data is encrypted on the ma gnetic stripe The MICR Magnetic Ink Character Recognition reader is a device that can be installed as an option at the journal print station of the document printer MICR processing will be used for printing cheque forms 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 Command ESC 1n1 n5 r Activating parameter command MSR MICR ESC r Reading command MSR MICR ESC rSTX ETX Writing a MSR track ESC r Deleting a track The execution of MSR functions does not influence the current logical print po sition The necessary vertical movements for the correct positioning of the passbook for MSR are controlled inte
86. Q Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B Font Sizes 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 12 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi 10 12 15 cpi 10 cpi Appendix National Variants Appendix Character Sets Code Page 437 0123456789ABCDEF T5023 5023 Programming Guide 307 Character Sets Appendix ISO 8859 2 Latin No 2 0123456789ABCDEF 308 T5023 5023 Programming Guide Appendix Character Sets ISO 8859 5 Cyrillic 0128456789ABCDEF T5023 5023 Programming Guide 309 Character Sets Appendix ISO 8859 7 Greek 0123456789 ABCDEF 310 T5023 5023 Programming Guide Appendix Character Sets ISO 8859 8 Hebrew 0123456789ABCDEF T5023 5023 Programming Guide 311 Character Sets Appendix ISO 8859 9 Latin No 5 0123456789ABCDEF D gt A A A A ze 312 T5023 5023 Programming Guide Appendix Character Sets ISO 8859 15 0123456789 ABCDEF gt gt ith Th m 0O PA Ts J IR D T5023 5023 Programming Guide 313 Character Sets Appendix OCR A 0123456789ABCDEF 314 T5023 5023 Programming Guide Appendix Character Sets OCR B T5023 502
87. R read job is a magnetic ink character recognition process When the MICR process is completed the previously deactivated MSR parameter is re enabled Behavior when reading magnetic ink characters and passbooks A mechanism is required to ensure that a passbook is not inserted too far for the magnetic ink character recognition because the reader s permanent magnet may destroy the MSR recording on the passbook Therefore a journal has been defined with a max settable width see parameter job MSR MICR reader for the MICR read function The default value is 102mm For the MICR read process the parameter n4 has a different meaning i than for the other MSR functions MSR n4 vertical distance from the form edge in 1 180 inches MICR n4 max admissible journal width for magnetic ink character reading 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 contains a value be low 496 496 180 inches 70mm or a value above 1490 1490 180 inches DIN A4 width then the max admissible width is automatically set to the de fault value 725 725 180 inches 102mm specification according to ISO 1004 ABA Specification Credit Document and Code Line Dimen sions If the document inserted for reading the magnetic ink characters is wider than specified the read process is not started and the document is not moved The printer remains in
88. RINT and PRINTLF Depending on the arguments these are control commands character or alphanumeric or numeric user data No carriage return CR is executed via the procedure PRINT A line feed LF and also a carriage return CR are defined via the procedure PRINTLF Depending on whether the printer parameter AUTO CR LF CR HANDLING in the document printer menu is activated or not the real conversion of the PRINTLF procedure must be programmed accordingly T5023 5023 Programming Guide 3 Notes about command description Standard commands The following values occur as arguments of PRINT and PRINTLF Code of a printable character x from the sequence ESC E character x X decimal encryption of an ASCII value or x value of a parameter n m etc which is to be coded binarily character a b n char a char b char n text string of text character chain A B C N numeric or alphanumeric variables in the form of or counter page capital letters or speaking names such as counter pass etc page etc On x For example C as printable character can be specified directly by means of C in the sequence ESC C NUL n or by means of char 67 whereby 67 is the decimal ASCII encryption of C Examples on char x char 27 with 27 decimal encryption of ESC char 4 with 4 value of n for example from the sequence ESC C NUL n 8 The pr
89. Short description of the document printer Epson ANSI The manual describes detailed this emulation As all functions of the printer are supported optimal this 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 ND9QO HPR 4904 HPR 4905 IBM 4722 Proprinter XL 24 Olivetti This emulations copy printers of other producers partially with restrictions In this manual only the command table specialities parameter settings and possi ble incompabilities are described 10 T5023 5023 Programming Guide Short description of the document printer Application areas Application areas The processing of single multiple documents and passbooks allows the use of the document 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 Driving licences Banks Insurances and Services Passbooks Cheques Transfers Medical certificates Application forms Magnetic stripe writing and reading equipment is available for use in banks as an option T5023 5023 Programming Guide 11 Application areas Short description of the document printer 12 T5023 5023 Programming Guide Programming interface General
90. When the bottom margin is reached a document ejection is automatically start ed T5023 5023 Programming Guide 69 Vertical print control Standard commands set margin area If necessary after a change in the line spacing the bottom margin setting must be deleted ESC O and then reset using ESC N A set bottom margin is automatically cancelled when the document length is altered using ESC C or ESC C NUL i Subsequent alterations to the line spacing have no influence on the Deleting the bottom margin ASCII character Decimal Hexadecimal Function A bottom margin determined by ESC N or by the setting of the printer is deleted using ESCO 70 T5023 5023 Programming Guide Standard commands Vertical print control Determining deleting vertical tabs channel 0 ESC B n1 n2 ri NUL ASCII character 27 66 n1 n2 na 0 Decimal 1B 42 n1 n2 wes 00 Hexadecimal Function Setting tabs Using ESC B NUL up to 16 vertical tabs can be determined in the relevant line spacing Subsequent alterations in the line spacing do not affect this The tab values are 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 directly after ESC B i Using ESC B NUL the tabs are set in channel 0 f more than one set of tabs is to be defined t
91. a bit used to determine whether command or data information is present on the data signals in the forward direction Printer driven Set high to indicate that all other signals sourced by the printer are in a valid state Pulsed low to reset the interface and force a return to Compatibility Mode idle phase This signal is driven low to place the channel in the reverse direction 382 T5023 5023 Programming Guide Appendix nPeriphRequest nFault Compatibility Mode ECP Mode Epson ANSI 1284 Active nSelectin Compatibility Mode ECP Mode Description of the physical interface Printer driven Set low by the printer to indicate that an error has occoured The printer may drive this pin 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 nFault 0 ERROR status nFault 1 ONLINE and STOP status Host driven Set low by host to select the printer Driven high by the host while in ECP Mode Set low by the host to terminate ECP Mode and return the link to the Compatibility Mode T5023 5023 Programming Guide 383 Description of the physical interface Appendix 384 T5023 5023 Programming Guide Glossary ANSI American National Standards Institute Standards institute in the USA similar to the DIN institute in Germany Antiqua fonts Type
92. ace Contents of the manual Contents of the manual Chapter Short description of the document printer This chapter briefly lists the hardware components of the document printer and outlines the application areas of the printer Chapter Programming interface General This chapter outlines the basic principle of logical communication between an application and the printer via ESC sequences The functions of the multifunctio nal document printer are described using examples Chapter Standard commands All the Epson compatible control commands of the document printer are descri bed here Exceptions are the character set and graphics commands which will be explained in subsequent chapters 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 the print quality and the character size Highlighting parts of the text by setting a suitable print mode e g bold print un derlining superscript subscript etc Chapter Character set commands The emphasis of this chapter is on the setting of characters defined by the user with the description of the relevant commands In addition the commands for switching over between character sets are described for example standard character set gra phics character set national character sets Chap
93. acter fonts lf different character fonts are to be used in one text line care must be taken that the respective fonts have the same matrix density in order to avoid loss of per formance Printable document areas When printing documents it is important not to print on the document edges or other uneven parts of the document for example folds or staggering 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 the paper and bent up corners of documents can lead to malfunctions The restrictions of the printable document areas for single documents and for passbooks or multiple documents are described in the appendix Paper specifi cation All restrictions must be observed by the user when printing documents If the specified safety distances to the horizontal and vertical leading edges are kept to possible tolerances document edge detection lop sided pull can be in tercepted 188 T5023 5023 Programming Guide Additional commands Printer Basic commands for document processing Basic commands for document processing By means of the following control commands the document processing can be controlled Commend rw ESC n p_ Paper feed of the document ESC n q_ Selection of type fonts character sets ESC n p Absolute vertical positioning in relation to the top form e
94. al commands Printer Basic commands for document processing Dual station control Name ASCII character Decimal Hexadecimal Parameter Dual station control USER1 LED USER2 LED n 0 de activated default value n 1 activated off off n 2 activated on off n 3 activated off on n 4 activated on on Function The Dual station control for the document printer can be activated using this commana In this way the control of workstations using a common printer can be synchronized Using the command CSI n t USER1 and USER2 LEDs can be switched over in the application program in order to indicate for example which job is being processed or which operator is to insert 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 error messages in this chapter USER 1 or USER 2 keys the Dual station control must be activa ted using CSI n t n 1 After initializing the printer the Dual station control is de activated i n order to receive a Special printer message on the status of the T5023 5023 Programming Guide 205 Basic commands for document processing Additional commands Printer Switching on off Multi Part Encreasing the copying power Name ASCII character Decimal Hexadecimal Parameter n 0 Switching off Multi
95. al data memory 128 KB usable memory volume 10 years guaranteed data retention without power supply 100 000 guaranteed delete programming cycles Partial deletion of data not possible 236 T5023 5023 Programming Guide Application examples This chapter demonstrates using detailed examples how the document printer is programmed for common application cases In particular the following application cases will be explained in separate sec tions Text processing printing 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 each example consists of the following components Task description target Document description document size text area Assumed pre conditions for example preset parameters Verbal description of the program steps Conversion of the program steps into pseudo code Program result T5023 5023 Programming Guide 23 Processing of a blank form Application examples Processing of a blank form In the following example a DIN A4 document will be printed with defined text To structure the layout and to highlight important parts of the 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 o
96. am Graphic data is not supported In this mode the responses are extended T5023 5023 Programming Guide 235 Electronic Journal Functions Additional commands Printer Journal printing The data in the journal memory can be printed on the print station using the JOURNAL menu single sheet or feeder The DIN A4 format is always used for the printout Font attribute DQ 15 cpi 8 Ipi Font attributes are always ignored An unprintable margin of 2 cm is provided on each side of the journal for filing holes An identifier for the page numbers and a hint on the following pages e g Page 5 of 17 are printed on the bottom of each page Error situation exception handling When the printer is switched off while printing the journal data 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 journal memory is filled completely the error message End of paper journal is generated Any subsequent attempt to print data on the journal will be rejected with the same error message Print jobs can still be carried out on the document station Capacity Because the print data is stored in compressed form it is not possible to provide an exact specification of the memory behavior In typical applications a capacity of 3 000 to 6 000 print lines can be achieved Technic
97. an e a a outa veecenae 328 12592 VVINGOWS Lan Tenise meenen e scam secees 329 1253 Wind OWS Greek asragani e ee 330 1294 VVINGOWS Latin Birsens aaa a ae a cuted 331 1255 WindOws Hebi GW scrissi eee ee ee 332 1256 WING OWS Al all G sis ierct oes d a ie a 333 1257 Windows Baltic RIM 2cccoke teecitecd oeliied ee heed aed 334 Chinese Characters in the Passbook Document Printer 00 335 Printer One Dyte MOCC cccccccsssssseeeeccceeesseeeeeeseessseeeeeeeseaseeeees 335 Printer TWO Dyt MOGC cccccccsssseeeeeeeeceesseeeeeeeeeeaaeeeseeenaasseeeess 336 GB 2312 807 GB 5007 TGB 5199 Anne aie wealas 342 POMME MUMB Cl ie csccscte Si oe satin N R 342 Available Character Generators for the document printer 343 BME MUIA HON S 2 2ec2 conta cesses a a a endian iaiadil 345 BMA 22 EMUIAION aaa a sede 345 IBM Proprinter XL24 Emulation cccccceccseeeeeeeeeeeeeeeeeeeeeeesaaeeees 348 Range of Commands for the ProprinterXL24 and 4722 00 349 Oliveti P RSO EMUO eisa a N 353 General oere a ey A a mee 353 EMUaUON aenema a a a a a 353 initialization parameter scan 353 Range of Commands for the OLIVETTI PR50O ceeeeeeeeeeees 353 Character Sets for the Olivetti Emulation cccccseseeeeeeeeeeeeees 355 T5023 5023 Programming Guide Contents Pap r Specifications sick ccteiietsaecetiete aude a haletie eelatesieieleneSelezeee 356 Rererence HNES erise i is at Cosine E
98. and CSI n p Parameter n 170 Remarks Distance top edge of document bottom edge of line 170 180 inch 24 mm 7 Reaching horizontal print position for amount text Command ESC n m absolute dot position Parameters n 60 m 0 Remarks First print character on position 10 60 60 inch T5023 5023 Programming Guide 259 Document processing Application examples 8a 8b 10 11 12 260 Selecting LQ type font Command ESC k n Parameter n 0 Roman type font Printing amount text Print data FOUR HUNDRED AND FIFTY Reaching horizontal print position for currency abbreviation amount 24mm Command ESC n m Parameters n 2 m 1 Remarks First print character on position 43 258 60 inch Printing currency abbreviation amount Print data 450 00 Line feed Command ESC J n Parameter n 53 Remarks ESC J n executes a line feed of n 180 inch here 53 180 inch 7 5 mm Reaching horizontal print position for name of receiver Command ESC n m Parameters n 60 m 0 see also step 9 T5023 5023 Programming Guide Application examples Document processing 13 14 15 16 17 18 19 Printing name of receiver Print data for example MR SPECIMEN Reaching horizontal print position for place name Command ESC n m Parameters n 2 m 1 see also step 11 Printing place name Print data for example LONDON Lin
99. and document printer are stored in a programmable memory with FLASH technology The function for loading this memory is implemented by a resident program bootstrap loader The load function is activated either by control sequences in one of the printer 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 available The interface functionality is limited to the control functions for the bootstrap loader The loader program can be exited by Switching off the printer Entering a control sequence after the firmware and the character generator have been loaded successtully The functionality is available on the physical interface RS 232 Centronics interface card and on the LAN interface T5023 5023 Programming Guide 2 3 Activating the Load Function Loadable Firmware Character Genera Activating the Load Function The activation of the load function is done via the printer emulation The printer is switched to the load mode by entering a specific control sequence This control sequence is identical for all emulations BEL L n ASCII chars 7 76 48 55 Decimal 07 4C 30 37 Hexadecimal Function This command is used to exit the current emulation software All data is deleted from the input buffers The mechanical functions are stopped immediately The load s
100. asic characters in the currently selected print quality or LQ type font in italics For the graphics character set there 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 characters in the area of the upper control code table hex 80 to 9F All the characters in the upper or complete upper character table can be printed by specifying the character code according to the following tables charater set commands ESC 4 italics on and ESC 5 italics off to se i This function should nt be used Today it is good style to use the lect italic printing 128 T5023 5023 Programming Guide Character set commands Character set selection Graphics character table 8 9ABCDEF Here the upper control code table hex 80 to 9F is not occupied by printable characters T5023 5023 Programming Guide 129 Character set selection Character set commands Extended graphics character table 8 9ABCDEF 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 acter set can be addressed in the complete upper character table 130 T5023 5023 Programming Guide Character set commands Character set selection Characters defined by the user The pattern of the ground character in the used print
101. ation menu adjustable via the operating panel set the character spacingto the value which has been set in the emulation menu adjustable via the operating panel set the print quality and type font to the value which has been set in the emu lation menu adjustable via the operating panel delete vertical tabs and select channel 0 switch off elongated bold double impact and italic print delete MSB specification set additional character spacing to 0 delete superscript or subscript switch off underlining adjust printing flush left 42 T5023 5023 Programming Guide Standard commands Controlling the configuration of the printer When initializing or defining printer parameters for certain applications i the following cases are to be differentiated Parameters which are specified by means of their default value Parameters which are set by corresponding ESC sequences do cument length type font character width etc Parameters which are reset to their default value by means of the command ESC All default values of the document printer are listed in the appendix of this ma nual If the printer is initialized via ESC at any vertical position on a document undesired results can occur during subsequent actions current vertical position is new line 1 For this reason ESC is not recommended for initializing para meters within a document T5023 5023 Progra
102. ator should be loaded All activities in the printer will be stopped and all data will be deleted Then the host is informed that the printer is ready to load The number of bytes to be loaded is also indicated The 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 accommodate additional character generators in the extension memory Thus it is possible to load a second PC table or fonts for the Asian regions up to a maximum size of 2 MB d 00 Primary character generator location 256 KB max d 01 Secondary optional character generator location 2 or 4 MB max Ready to load is indicated by sending the sequence ESC F N T to the host 284 T5023 5023 Programming Guide Loadable Firmware Character Generators Loading character generators Loading the Character Generator M O D ASCII chars 36 77 79 68 36 Decimal 24 4D 4F 44 24 Hexadecimal Function MOD is a part of the file and may not be transferred again before the data Data is transferred 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 be used to verify that the load process was successful If the data was transferred without errors the relevant da
103. bined so that particularly bold characters result Example Standard print double impact print double impact print in LQ print quality bold print and double impact print in LQ print quality Underlining Certain parts of a text can be highlighted by switching the underlining mode on and off Example Certain parts of the text can be haghlight underlining T5023 5023 Programming Guide 21 Print effects Programming interface General Superscript subscript Footnotes equation or special text designs are possible by switching superscript and subscript on and off Example Chemical formula for water H20 Theory of Pythagoras a be c 22 T5023 5023 Programming Guide Programming interface General Print effects Page layout By means of appropriate ESC sequences the page design 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 Setting the line spacing Presenting a text flush left flush right centered or with margin justification Example setting page constants Print area Page length T5023 5023 Programming Guide 23 Print effects Programming interface General Example Text adjustment This text is adjusted flush left The following lines are adjusted flush right 52 456 214 123 456 346
104. ble impact print Elongated print ltalic print Underlining T5023 5023 Programming Guide 117 Print modes Standard commands Combination of several print modes or character sizes In order to combine several print modes or character sizes the values given in the list above must be added together Calculation examples Proportional spacing bold print underlining n 2 8 128 138 12 cpi condensed print double impact print n 1 44 16 21 racter size to 10 cpi i ESC 0 switches off all print mode combinations and sets the cha 118 ESC n can be used in combination with the commands for swit ching the individual print modes or character sizes on and off When switching on proportional spacing the character size is set to 10 cpi Pica and LQ print quality is switched on T5023 5023 Programming Guide Standard commands Example BEGIN PRINT G har 2 7 i ehar PRINTLF 10 pitch norma PRINT char 47 pehar PRINILE 12 pitch norma PRINT chari27 gt 1 char proportional PRINT char 27 char 0 PRINTLF and underline PRINT char 27 char normal PRINT char 27 char italic PRINT char 27 char jy italic bold PRINT char 27 char 192 PRINTLF italic underlined END Result reduced in size 19 cpi normal 12 cpi normal proportional_and underlined normal itadic italic bold italic underlined T5023 5023 Pr
105. cannot ate ato ec aes 230 Special Printer MESSAGES cssscccccsseseecceseececeeeeeeeeeeeeeeeeseeeeeeeeas 231 Printing UNIT parameters iensen a 233 Electronic Journal FUNCUONS isrann a aa 235 Change between Document and Journal Printing eee 235 Application Examples sccccsesssccseseeeeeeseeeeeseeoeseeeoesseeoeaseesenseeeoeas 237 Processing Of a blank form ce eccccceeeececceeeeeeeeeeeeeeeseaeeeeeeaeeeeessaeeeees 238 TEN OS sea Ci cate pitta can ast Rice tire Sata hataea ea tate ace tne imagen ammecmiamnak naataioana haces 239 UI ONC CLS Seectecee teeter eee ee acca eeeeaneere sy apeaeeceauaaees 241 Program Steps annotated cccceeccecceseeeeeeseseeeeseeeeseeeeaeaeeeeeeeaes 243 Program OSCWOO COCO roina innne etina da Rnalts EEEa 250 DOCUMENT DiOCSSSING roris iA A E iam 254 Doc ment Structure senei a 255 DT DO SIONS eie E R 256 Program steps annotated cccseeccecccseeeeeeseseeeeceeeeseeseeeaeeeeesaaes 258 Program OSCUGO COJE yrr aa a a 262 T5023 5023 Programming Guide Contents Passbook processing With MSR orris a 265 PASSDOOK Cale ricsc staccato ess Saas tgs enti teeaer eee 266 Program Steps Annotated cccccseeeeeeceeeeeeeeeeeeeeeeeeeeeeeesaeaeeeeeeas 267 Program pseudo code a222 cecvets2 ievtcesdei ganna dteatgecdeatadendssagetenetebixes 270 Loadable Firmware Character Generators cccccseesseeeseenseeeeeeees 273 Activating the Load
106. cation examples Passbook processing with MSR 6 Setting absolute vertical position with reference to the top passbook edge depending on the next free posting line Command CSI n p Parameter n 421 see remarks Remarks Next free posting line 6 Line spacing 1 5 inch 36 180 inch Distance bottom edge of posting line 1 top edge of passbook 241 180 inch gt n 241 36 6 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 position of the right passbook edge corresponds to position 90 of the printing unit with 10 characters inch Position 25 25 positions 6 60 inch gt n 25 6 150 8 Execution of transaction relevant program steps for example mo difying passbook file Editing the print data 9 Printing posting line Print data for example 07 12 99 Cash 026 x 200 00 1 550 00 10 Document feed passbook ejection Command FF Form Feed T5023 5023 Programming Guide 269 Passbook processing with MSR Program pseudo code Application examples The corresponding numbering refers to the annotated program steps in the pre vious section BEGIN CALL PROGRAM START ROUTINE CALL MSR CALL POSTING PRINT char 12 END BEGIN PROGRAM START ROUTINE PRINT ch r 27n P PRINT 0 0 0 99 1 r
107. cation examples Processing of a blank form BEGIN LETTER HEAD PRINT char 11 10 VT line 8 PRINTLF Mr Specimen 11 PRINTLF 7 Princes Road PRINTLF PRINT London We De PRINT char 9 12 HT position 35 PRINT js 13 PRINT char 9 14 HT position 40 PRINTLF 14 06 99 15 END LETTER HEAD BEGIN REFERENCE PRINT char 11 16 VT line 16 PRINT char 27 4 17 ESC 4 PREINT Char 27 ehar 12 18 ESC SP n PRINT RS 232 interface 19 PRINT char 27 char 0 20 ESC SP n PRINT char 27 4 75 21 ESC 5 END REFERENCE T5023 5023 Programming Guide 251 Processing of a blank form BEGIN INTRODUCTION PRINT char 11 PRINT Dear Mr PRINTLF Specimen PRINT herewith we should like to answer your query about the type of PRINT char 27 F we PRINT connector for the RS 232 interface PRINT char 27 E PRINTLF of the printer PRINTITLE PRINTLF For the RS 232 interface the printer has a A pin Cannon prugr PRINTLF BEND INTRODUCTION 202 T5023 5023 Programming Guide Application examples 22 VT line 20 23 24 ESC E 25 26 ESC F 2T Application examples Processing of a blank form BEGIN SKETCH PRINT char 27 2 R char Lij 28 ESC k n PRINT ehan 2 7 a char 1 29 ESC a n PRINTER 05 cae O01 30 PRINT char 27 p char 0 31 ESC p n
108. cause the bootstrap loader receives binary data an end character cannot be used to inform it when the transfer process is ended For this reason the length of the transferred is included in the call of the bootstrap loader The length specification is used to determine how much memory must be deleted from the FLASH EPROM The length 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 Meaning Identifier Separator Release date with the format YYMMDD 941101 for 1 11 94 Separator Release and release version 1005 for V01 05 Separator Module name e g 5023 STD CP15_ 437 Separator point Extension MOD FRM FNT PAR String terminator Length byte 1 Length byte 2 Length byte 3 length n1 256 n2 65536 n3 reserved END 1 4 1 8 1 3 1 1 1 1 a NN T5023 5023 Programming Guide 287 Length of the Transfer Loadable Firmware Character Genera The header can be used to determine the overall number of bytes to be loaded including the header itself The file header and the checksum can be used to determine that a file is valid Check sum calculation Sum of all 16 bit words 0 Acknowledgment of a successful load process If the load process was completed successfully the data ID is returned after 60s max typically after 15s BoC ID S
109. ccceeeeeeeeeeeseeeeeeesaeeeeeeeeeeees 197 Document edge detection cccccccccssesscecceeeeeeesseeeeesuenseeessaaeeees 198 Activating passbook PrOCESSING ccccccseeeeeeseeeeeeesaeeeeesaaeeeeeeseees 199 Specification of the horizontal leading edge ceeeeeeeeeeeeeees 200 Mode switch over for handling end of Paperl cccccseeeeeeeeeeeeees 202 Dial station Comro esera a N E 205 Switching On Off Mut Parn casina aaa aa 206 Controlling the MSR MICR functions a ssnsnennnnnennnnennnnnnnnnnrenenennrennne 207 Position and measurements for MSR magnetic stripes 208 Parameter DIOCK MOR ersan an e ee ata 210 Reading a MSR WACK viiiaaietreivastettoraticietivaniatacearravieaniaeranedaanten 212 VV FILING uM SI WACK aeania aa r 215 Deleting a MSR WACK seccuducsiaviusmiartudantdnseusw ners a 217 The MICR Read Process ccccccsseceeccseeeeeeseeeeeeseeaseesssaaeeesenaaes 218 Activate parameter command MICR cccccseeeeeeeeeeeeeeeeeeeeeeeeas 221 Reading command MICR cccceeecccseeeeeeeeeeceeeeeseeeeeeeeeeesseeeeeas 222 Status and error MESSAGES ccccsssecccceceeeeceeceeeeeeeseeeeeeeeeeeeeeeeeeeeeseas 223 Notes on the printer Status cccccsesccccseeeecseeecceseeesegeeeseeseessees 224 Setting control points initiating the control Cycle ccccceeeeeees 226 SENO CONMOl PONE assicccterets ss cues aa aa 228 Global Printer Stats isotonic
110. ce line for vertical positioning on the document printer is the base line needle 20 The distances between print characters and reference lines above and below the print characters specified in this manual always refer to this base line For measurements of the left and right character box limits print characters are recommended which extend from the left to the right edge of the character box for example continuous horizontal 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 must be made between the horizontal leading edges on the left and on the right For application programming the difference is that for the horizontal positioning on the document or passbook with the horizontal leading edge on the right the print positions of the document in question must be converted to the print positi ons of the printing unit therefore the physical width of the printing unit and of the document must be taken into consideration If leading spaces are necessary in a print line the left margin can be set as required ESC I n 182 T5023 5023 Programming Guide Additional commands Printer Important notes on document processing Horizontal print position 0 With the horizontal leading edge on the left the left edge of the document is iden tical to print position O for all character spacings unle
111. cing ESC 0 ASCII character 27 48 Decimal 1B 30 Hexadecimal Function ESC 0 sets the line spacing to 1 8 inch for the subsequent line feed commands The 0 is the ASCII character for the figure zero and not the ASCII code 0 The line spacing set by ESC 0 is cancelled if i the printer is initialized a new ESC adifferent line spacing is set by means of ESC 2 ESC 3 n or ESC A n Example A demonstration of the difference between the standard line feed 1 6 inch and the 1 8 inch line spacing The printer begins with the standard line feed BEGIN PRINILE This is the first print line PRINTLF This is the second print line PRINTLE PRINT char 27 0 lt 1 8 inch PRINILF This 21s the first print line PRINTLF This is the second print line END Result first print Line Second print laine first print line second print Llane 58 T5023 5023 Programming Guide Standard commands Line feed commands Determining 1 6 inch line spacing ESC 2 ASCII character 27 50 Decimal 1B 32 Hexadecimal Function 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 figure two and not the ASCII code 2 Example see ESC 0 T5023 5023 Programming Guide 59 Line feed commands Standard commands Determining n 180 inch line spacing ES
112. compared with draft printing In LQ print quality the type fonts Roman and Sans Serif are available standardly for the optical arrangement of a document Further type fonts can be used if the appropriate font is loaded Notes on the character size i After switching on or initializing the printer the characters are prin ted with the data set in the emulation menu In normal print all the characters of one character size have the same spacing for example 1 10 inch with 10 cpi 92 T5023 5023 Programming Guide Standard commands Print quality and character size Width and height of character example H character 10 cpi 12 cpi 15 cpi proportio width width width nal height height height width height LQ Sans Serif 2 0 2 6 mm 1 7 2 6 mm 1 4 1 9 mm 1 9 2 6 mm LQ Roman 2 3 2 5 mm 2 0 2 5 mm 1 5 1 8 mm 2 1 2 5 mm DQ 1 8 2 5 mm 1 6 2 5 mm 1 4 1 9 mm With proportional spacing the different widths of the individual characters are ta ken into consideration for example the character I is narrower than the charac ter w i e the print width of the character 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 between 1 0 and 2 6 mm The size of the characters is 10 cpi The print quality is switched to LQ T5023 5023 Programming Guide
113. cter Decimal Hexadecimal Function The 8 dot graphics mode double density and double rate is switched on with ESC 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 The section Mode of operation of the graphics commands con i tains further notes on the command ESC Y n m Using ESC any graphics mode of the document printer can be assigned to the command ESC Y 170 T5023 5023 Programming Guide Graphics commands Syntax of the graphics commands Switching on the quadruple density graphics mode ESC Z n m Data ASCII character 27 90 n m Data Decimal 1B 5A n m Data Hexadecimal Function The 8 dot graphics mode quadruple density is switched on with ESC Z 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 The section Mode of operation of the graphics commands con i tains further notes on the command ESC Z n m Using ESC any graphics mode of the document printer can be assigned to the command ESC Z T5023 5023 Programming Guide 171 Syntax of the graphics commands Graphics commands Reassigning graphics commands ESC m s ASCII character 27 63 m S Decimal 1B 3F m S Hexadecimal Function
114. dge ESC n p Absolute vertical positioning in relation to the bottom form edge ESC n p_ Relative vertical positioning backwards ESC t Requesting the document width ESC t Document edge detection ESC n t Activating passbook processing ESC n t_ Specification of the horizontal leading edge ESC n t Mode switch over for handling end of paper ESC n t Dual station control ESC n t Multi Part T5023 5023 Programming Guide 189 Basic commands for document processing Additional commands Printer Paper feed of the document Name ASCII character Decimal Hexadecimal Parameter n 0 Ejection of adocument n 1 Insertion of a document to the base line of the logical first linewhich can be set via the document printer menu TOF POS Function This command initiates a mechanical action The ejection procedure also refers to documents which were only form fed and on which no insertion or print proce dure was carried out If this command is used to eject documents n 0 it must be considered that after ejection the current logical position is outside the form Therefore a new first print position must be set here before transferring new print characters for ex ample using the command FF form feed or via 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
115. ding on preset printer parame ters BEGIN PRINT Test line char 13 PRINT Test line char 13 PRINT Test line char 13 END T5023 5023 Programming Guide 51 Special character codes Standard commands Result CR without line feed CR with line feed Test Line Test line Test iine 52 T5023 5023 Programming Guide Standard commands Special character codes Backspace of one character BS ASCII character 8 Decimal 08 Hexadecimal Function After each BS character backspace the print head is moved logically one cha racter to the left Thus characters can be printed one upon the other lf this command is received immediately following graphics printing the print head will return to the position in which it was before the start of graphics 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 acommand for an absolute or relative point positioning of the print head was received beforehand ESC n1 n2 or ESC n1 n2 with ESC a n a text adjustment other than flush left was selected i e cen tered flush right or margin justification Example With BS the mathematical signs for corresponds to and unequal are to be produ ced BEGIN PRINTE Corresponds Co TTS Char olp m PRINTLF unequal char 8 END
116. dot to be printed In normal print the complete width of a character including the left and the right space is fixed Each character occupies 12 draft or 36 LQ horizontal dot positions With proportional spacing only the number of horizontal dots is printed specified by the character def inition 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 can be divided up at will between the left and or right space for example left space 0 right space 3 or left space 2 right space 1 with the complete width of the space as 3 dots draft For superscript and subscript characters the same dot grids can be used depending on the print quality and print mode They are 16 dots high and 12 dots draft 36 dots LQ or maximally 42 dots proportional wide With superscript characters the upper 16 nee dles of the print head are used with subscript characters the lower 16 needles T5023 5023 Programming Guide Character set commands Definition of characters Encryption of the dot pattern into a number sequence Before being transferred to the printer the dot pattern of a newly defined char acter must be encrypted into a sequence of data bytes i e into numbers be tween 0 and 255 For this the grid is divided into columns each of eight dot positions lying one be
117. e 337 Chinese Characters in the Passbook Document Printer Appendix A2E9 A343 Latin small 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 Characters in circles and brackets Hiragana Katakana Cyrillic characters symbols special characters C940 F9D5 Hanzi 7652 characters less frequently used Structure of the character generator The Asian font file has the following structure File header Font header 1 Font header n Character pool 338 T5023 5023 Programming Guide Appendix Chinese Characters in the Passbook File header Contents Name 0000 0004 MOD Identifier 0005 blank Separator 0006 000B yymmdd Date e g 960229 000C blank Separator 000D 0010 rrvv Release amp version e g 1000 0011 blank Separator 0012 0019 a a File name e g ND97CHIN 001A l Separator dot 001B 001D TBF Extension TBF gt two byte font 001E blank Separator 001f 0021 a a Length 001 64KB 002 128KB 003 192KB 004 256 KB 064 4 MB 0022 0023 Default font Font number 0 is used number if a setting is required at the operating panel 0024 002F T5023 5023 Programming Guide 339 Chinese Characters in the Passbook Document Printer Font header Administration emulation parameter 0000 OOOF 0010 0011 0012 0015
118. e feed Command ESC J n Parameter n 53 see also step 13 Reaching horizontal print position for date Command ESC n m Parameters n 2 m 1 see also step 16 Printing date Print data for example 05 11 1999 Document ejection Command FF Form Feed T5023 5023 Programming Guide 261 Document processing Application examples Program pseudo code The corresponding numbering refers to the annotated program steps in the pre vious section 262 T5023 5023 Programming Guide Application examples Document processing BEGIN PRINT char 1 CSI n p PRINT char 2a CSI t PRINT char 2b CSI n p GET char 2 ewe 3 CSI n t If necessary evaluate the parameter n document width in n 180 inch CALI OCR DINE CALL TEXT PRINTING PRINT Ghar 12 19 FF END BEGIN OCR LINE PRINT char 27 7 S 7cher 1800F 4 ESC n m PRINT 00000045000 7 END OCR LINE BEGIN TEXT PRINTING PRINT Ghar 27 LLTO Ip 6 CSI n p PRINT char 27 char 60 0 7 ESC n m PRINT Ghar 27 k char 0 8a ESC k n PRINT FOUR HUNDRED AND FIFTY 8b PRINT char 27 2 S 7char 2y1 9 ESC n m PRINT 450 00 10 PRINT Ghar 2 7 Cchar S3 11 ESC Jd n PRINT Char 27 S char 60 0 12 ESC n m PRINT MR SPECIMEN 13 PRINT char S chart 1 14 ESC n m PRINT LONDON 15 PRINT chart 27 70 char 53 16 ESC J n PRINT char
119. e installed as an option at the document print station The document printer is operated with an automatic print head guidance system for printing passbooks and documents For the right angle orientation of the documents and passbooks towards the print mechanism the documents passbooks are aligned a the right hand side of the document chute 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 footer detection Reference Lines The safety distances described in this document use the outer document and passbook edges as well as the staggered edges and folds as reference lines The reference lines for the print characters are defined by the represented character box The character box is a rectangle where the width is predefined by the character pitch selected e g 1 10 inches for 10 characters inch The height of the character box is defined by the vertical distance between the top and bottom needle 3 5mm for the document printer Any dot within this character box can be printed blackened 356 T5023 5023 Programming Guide Appendix Paper Specifications m lt Upper character box limit Base line of the print character Lower character box limit Right character box limit Left character box limit b width of the character pitch e g 1 10 for 10 CPI A
120. e 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 code table is then occupied by further special characters The upper character table contains italic characters In this case the com mand ESC 6 is ignored tains further notes on the command ESC 6 This section also contains the characters of the upper control code table for the extended gra phics character set i The introductory section Character set selection in this chapter con 152 T5023 5023 Programming Guide Character set commands Switching on italic print Switching off extended character set ESC 7 ASCII character 27 55 Decimal 1B 37 Hexadecimal Function The command ESC 7 influences the complete upper character table The effect of the command depends on the character set activated using ESC t n The upper character table contains characters 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 the upper and lower control code tables are identical The upper character table contains italic characters In this case the com mand ESC 7 is ignored The introductory section Character set selection in this chapter con i tains
121. ed DIN A4 papers blank documents forms of various sizes or passbooks All documents are fed by the document printer over a flat bed according to the principle of single sheet processing are processed and ejected again The pro cessing of a document is begun when each single document is put 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 document edges The following provides a comprehensive list of the characteristics of the docu ment printing point 90 printing points with 10 characters inch Automatic document alignment Automatic print head adjustment Automatic document edge detection Print head with 24 needles 2 print modes LQ Draft 24 bit and 8 bit graphics The print rate is dependent on the horizontal density of the character font selected in each case There are two different print rates for the print modes LQ Letter Quality and Draft The document printer can also process type fonts print qualities or multi phase characters which vary from the pixel data structure of the standard character sets More than two print rates are possible due to the respective character font T5023 5023 Programming Guide 7 Options Short description of the document printer Options Magnetic stripe reader MSR As an option the document
122. ed in the request 228 T5023 5023 Programming Guide Additional commands Printer Status and error messages i The command CSI n t should always be used when only one print line can be made available to the printer and for this reason performance problems arise The control point is acknowledged when the last mechanical task is started 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 Paper is present Lid is closed Print procedure is started By means of an earlier release of the acknowledgement signal it is pos sible for the workstation to request a new task from the system earlier and to transfer it to the printer during the time in which the last mecha nical procedure has not yet terminated T5023 5023 Programming Guide 229 Status and error messages Additional commands Printer Global printer status Name ASCII character Decimal Hexadecimal Parameter n 0 ONLINE n 1 STOP n 2 ERROR Function This response 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 cannot be explicitly requested see Notes on the prin ter status in this chapter 230 T5023
123. efined normally each character definition must be transferred separately using ESC amp Only characters of a continuous alpha bet range for example A E or J U but not C J and N can be defined using one ESC amp command user can be transferred with ESC amp the print quality LQ or draft ap propriate for the character definition and the appropriate print mode proportional spacing or superscript subscript must be set on the print er If for example an LQ character is defined the print quality must first be set to LQ using ESC x 1 If another mode is activated during the transfer the characters cannot be used i Before the encryption number sequence of a character defined by the If more than one character is defined all the number sequences sequences of data bytes are added successively The number of data bytes depends on the width parameter d1 and the height 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 dots 2 bytes Number of bytes d1 2 The number of data bytes to be transferred according to the formula above must be kept to exactly If too little data is transferred using ESC amp subsequent con trol commands or character codes may be interpreted as character data Also too much data is interpreted as control commands or
124. el full angle ascii code o O FSk 1C6B_ ___ Setfull angle ascii code __ o o ooo GS 1D______ Magnetic bar data write ending marker 354 T5023 5023 Programming Guide Appendix Olivetti PR50 Emulation Character Sets for the Olivetti Emulation The character set required from the Olivetti emulation are marked with i a OL ending e g CP12500L FNT or CP_4370L FNT The character set required from the Olivetti emulation contains both character sets for the Epson ANSI emulation and the following character sets required for the Olivetti emulation Using the normal character sets the operating panel set tings and the command sequences to select the character sets will be ingnored Character Sets Olivetti IBM Emulation operating panel parameter and command sequences ESC nnn IBM Proprinter emulation can only be set at the operating panel Pann National Variants 000 international 020 Cann National Variants 030 040 050 070 080 100 110 140 150 Israel only be set at the operating panel 520 77 712 77 707 700 740 720 781 680 Code Page 1252 ISO 8859 1 Latin 1 PC 852 Latin 2 T5023 5023 Programming Guide 395 Paper Specifications Appendix Paper Specifications The document printer has a document print station which can process single documents multi copy documents document sets and passbooks A magnetic stripe reader MSR can b
125. er After the execution of the command a acknowledgement CSI n1 n2 r is produced which can be evaluated in the program The acknowledgement contains the num ber of writing attempts and a message if an error has occured during control rea ding to the range from 30h 3Fh Characters outside this range lead to an i Inthe MSR unit of the document printer the characters are limited error in the printer control The command triggers the output of characters still in the print buf fer to the document printing point 216 T5023 5023 Programming Guide Additional commands Printer Controlling the MSR MICR functions Deleting a MSR track Name ASCII character Decimal Hexadecimal Function The vertical 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 The command triggers the output of characters still in the print buffer to i the document printing point T5023 5023 Programming Guide 217 Controlling the MSR MICR functions Additional commands Printer The MICR Read Process Two jobs must be issued to the printer for every magnetic stripe read process aparameter job specifying the number of repetitions required for read errors and the font type CMC7 E138B the actual read command The parameter n3 in the parameter job CMC7 E13B informs the firmware that the next MS
126. ers in the Pass book Document Printer For character assignment see Appendix section Chinese Characters in the Pass book Document Printer When a 2 byte character generator is available this character generator is automatically enabled after power on After a default font number has been specified the relevant character is set If a default font number is not specified in the character generator the character set selected from the operating panel menu will be set Control sequences under 20h and or ESC 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 292 T5023 5023 Programming Guide Control of Asian Character Sets Example Switch over from 1 byte characters to 2 byte characters and vice versa ESC 1 q Switch to 2 byte mode character set GB2312 80 Character 1 1 byte Character 2 Because the Initialize character from character B2 31 printout the EPSON does not exist in character set GB2312 the character B2 is ignored The character 31 is recognized as a character from the EPSON character set Attributes The attributes bold elongated print condensed print and underscore can be applied to the Chinese characters The subscript and superscript attributes are not possible and produce undefined print results The text layout
127. es END table Result AAAABCDEFG EEA l ITTF ror T5023 5023 Programming Guide 143 Definition of characters Character set commands Example of the definition of LQ characters The example shows the following steps Definition of two proportional LQ characters under the character codes of the letters A and B the character width of the first character amounts to ten dot columns that of the second character eighteen dot columns Printing of the newly defined characters in normal and elongated print BEGIN PRINT char 27 p char 1 New definition A PRINT char 27 amp char 1 AB aa and B proport PRINT char 3 10 1 lt Different PRINT table 1 character PRINT char 3 18 1 lt widths PRINT table 2 PRINTLF ABABABCDEFG PRINT char 27 3 char 1 PRINTLF ABABABCDEFG lt C to G not newly PRINT char 14 defined PRINTLF ABABABCDEFG END BEGIN table 1 char 0 8 0 0 4 0 0 8 0 0 4 0 char 0 132 64 0 72 128 0 165 64 char 0 90 128 0 37 0 0 26 0 END Table 1 BEGIN table 2 char 0r or 0 074 char 0 8 0 0 4 char 0 8 0 0 4 0 char 0 132 64 0 7 char 0 90 128 0 3 END table 2 Result ABABABCDEFG hH i Aa die dae de das d 144 T5023 5023 Programming Guide Character set commands Notes on the use of user defined cha Notes on the use of user defined characters This section contains some general notes on the use of characte
128. es cheated ceed ohew seek a aaa 297 Command taDlesnersrerne Ronen re reeneer es one N 297 Command table for Epson ANSI emulation ccceeeeeeeeeeeeeees 297 Definition of barcode printing for T5028 cc eecccccseeeeeeeeseseeeeeeens 302 L ad r command S omea a E AN 304 EsJoumalcommand S arenaene aa aa aa 304 CharaCler Gels is aes a a a deeds 305 Code F AGS AG Tre aha iect E he Pe 307 IS 8889 2 Latin NO Z asno a pana e e E 308 SO 8859F CYNIC eaen N 309 OO 8899 7 OTEK eraa a a a 310 BOBS FE HEDEW iori a A saa anton 311 T5023 5023 Programming Guide Contents ISO 8859 9 LAI NOD rona A 312 ISO OO 59 1 r a aieaseaiaeeaes 313 OGR ere hr A eR ee eae ee ee 314 OCR B eoan a Sen cen nasa patwaah wealavaicaacdeclasaepatiatsarsusindiaedoes 315 Code Page ISO 2 reiii a E 316 Code Page 775 Latin Baltic rdnr 317 Code Page S50 Latin Wrstcgenkcw cate at eeeeeua tiles ta tatiott eames 318 Code Page S52 Latin 2 srnca ea a osesmad a satsendacestanses 319 Code Pade G50 sunan e A lavatories 320 Code Fage 897 Lalm 5 ssrrerenr enaa a a 321 PG Code Page 958 cenne a hake aac soe eies 322 Code Page 860 Portugal sossa R ai 323 Code Page 866 Latin CyrilliC cc ceccccscccccsseceseeseceeceeeeesaeeeessaeees 324 Code Page 869 Latin Gresk sndri 325 Thailand Character Set customer SPECIFIC cecceeeeeeeeeeeeees 326 1250 VVINGOWS LAUN 2 3 sacaieaccnntantastice dgheseseeseen ia aes N 327 1251 WIRGOWS CYyrO iss
129. escription of the physical interface Cable connection document printer PC Document printer Cable 9 pin plug Printer switched on gt 12V RD Received Data Serial data entry printer TD Transmitted Data Serial data exit printer DTR Data Terminal Ready exit In the DTR Busy protocol the ON status signals the connected device signal receiver the readiness to receive oT SG SG Signal Ground Ground DSR Data Set cise satin lt pros Request to Send In the DTR Busy protocol the ON status signals the connected device signal receiver the readiness to receive data T5023 5023 Programming Guide oe pin plug DCD Data Carrier Detect TD Transmitted Data RD Received Data DSR Data Set Ready SG SG Signal Ground Ground DTR Eliade Terminal Eliade CTS Clear to Send 373 Description of the physical interface Appendix Document printer Cable PC 9 pin plug 9 pin plug CTS Clear to Send Entry lt RTS Request to The ON status signals Send the connected device signal receiver the readiness to receive data to Not interpreted by the printer if the XON XOFF 2 protocol is selected 3 4 T5023 5023 Programming Guide Appendix Description of the physical interface Interface data external Centronics interface With the parameter centronics of the interface menu the Centronics interface can be set to the ECP mode centronics ECP or not centr
130. esses and the bootstrap loader ESC sequences Chapter Controlling Asian Character Sets Asian character sets must be made available for the specified printers to prepare the document printer for its usage in the Asian area This chapter provides a de scription of the control of the Asian character sets Chapter Specific Operating System Dependencies This chapter describes specific operating system dependecies Chapter Glossary Special terms are explained in this chapter 4 T5023 5023 Programming Guide Preface Contents of the manual Appendix The appendix of this 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 Description of the physical interface Chapter Index Facilitates searching for selected terms T5023 5023 Programming Guide 5 Contents of the manual Preface 6 T5023 5023 Programming Guide Short description of the document printer The document printer has a document printing point with which single documents multiple documents sets of forms and passbooks can be processed The printer can also be equipped with a magnetic stripe reader MSR a magnetic ink card rea der MICR or a single sheet feeder as an option Document printing point The term document includes all single documents for example cheques un print
131. eters or incorrect syntax Normally incorrect parameters n n1 etc are automatically replaced by the re spective default value for example if the specified value range is exceeded Commands with 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 Exceptions to these rules are specified separately with the corresponding com mand description if necessary tal and vertical positions is contained in the section Notes for document i An exact description of the printable areas and the definition of horizon processing in the chapter Additional commands 40 T5023 5023 Programming Guide Standard commands Controlling the configuration of the printer Controlling the configuration of the printer The status of the printer can be controlled from a program irrespective of the data to be printed via the following control commands Command Function i Initializing the printer Selecting unidirectional printing for one line Unidirectional printing mode on off one line Setting the 8th bit of incoming data MSB 1 Deleting the 8th bit of incoming data MSB 0 Terminating control of the 8th bit delete MSB specification Switching printer off logically Offline Switching printer on logically Online Setting the automatic single sheet feeder mode on off On
132. f the print positions of the document to print positions of the printing unit need not be taken into account For this example the following pre conditions are assumed All the parameters are set at their default values Via the default setting the type font Roman is set 238 T5023 5023 Programming Guide Application examples Processing of a blank form Type area Selection of standard print functions is demonstrated in the letter below All the print functions can also be used on the journal printing point Mr Specimen 4 G 7 Princes Road London W 5 14 06 99 RS 232 interface Dear Mr Specimen herewith we would like to answer your query about the type of connector for the RS 232 interface of the printer For the RS 232 interface the printer has a 9 pin Cannon plug 09 Pin numbering plan view Yours sincerely John Smith T5023 5023 Programming Guide 239 Processing of a blank form Application examples 1 Document length 72 lines with 1 6 inch line spacing 2 First print position left margin logical position 12 10 cpi 3 Last print position right margin logical position 72 10 cpi 4 Position of processor ab 35 horizontal tab breviation 5 Position of date 40 horizontal tab 6 First print line 8 vertical tab 7 Reference line 16 vertical tab 8 Start of text 20 vertical tab 9 Greetings line 42 vertical tab 10 Name of se
133. font ESC k n ASCII character 27 107 n Decimal 1B 6B n Hexadecimal Using ESC k n the following type fonts in LQ print quality can be selected n 0 LQtype font Roman n 1 LQ type font Sans Serif The selection of the type font can take place in draft or in LQ mode The selected type font is only actually printed in LQ print 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 in the Additional commands chapter The characters of the different type fonts are available in the character si i zes 10 cpi 12 cpi 15 cpi and proportional Example BEGIN PRINTLF char 27 x char 1 lt LQ mode on PRINTLF char Z27 k char 0 type font Roman PRINTLF Cchari 27 k charil type font Sans Serif END Result type font Roman type font Sans Serif 96 T5023 5023 Programming Guide Standard commands Print quality and character size Switching proportional spacing on off ESC p n ASCII character 27 112 n Decimal 1B 70 n Hexadecimal Function Switching on proportional spacing ESC p 1 switches proportional spacing on With proportional spacing the character layout is based on the character size 10 cpi The character width of the individual characters is however different for example the width of the character i
134. fonts with serifs for example Bookman Garamond Times These fonts are especially suitable if large amounts of text are to remain easily legible ASCII American Standard Code for Information Interchange This code is internationally standardized and also known in Germany as ISO 7 bit code It defines a character set code used to exchange data between data processing devices Using the 7 bits of the ASCII code 128 characters 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 example 300 baud 300 bits per second Control characters A non representable ASCII character to control printer functions control code Characters transferred from the central unit to a peripheral device to initiate cer tain functions there are also described as control characters or control bytes Document Form on which data is first recorded in manual or mechanical form Data carriers used for mechanical data processing mechanical document such as plain lan guage documents marking documents labels etc are also called documents Document processing Name of the processing of single documents T5023 5023 Programming Guide 385 Glossary Font The complete character set of a type font in one size Serial interface During serial data transfer each bit is transferred individually and c
135. formula x m 256 n and thereby the position x 60 inch distance from left leading edge is determined The print position O is identical with the left edge of the do cument 1 OCR print in coding line for cheque amount Vertical position from bottom edge 60 180 inch Absolute dot position x 60 inch with x 0 256 180 First print character on print position 30 OCR character sequence 00000045000 2 Amount text Vertical position from top edge 170 180 inch Absolute dot position x 60 inch with x 0 256 60 First print character on print position 10 Text FOUR HUNDRED AND FIFTY g 256 T5023 5023 Programming Guide Application examples Document processing 3 Currency abbreviation and amount Vertical position from top edge 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 Text MR SPECIMEN 5 Place date Vertical position from top edge as 4 or another line feed Absolute dot position as 3 Text LONDON and 05 11 1999 T5023 5023 Programming Guide 25 Document processing Application examples Program steps annotated 1 Setting absolute vertical position referring to the bottom document edge Command CSI n p Parameter n 90 Remarks The distance bottom edge of document bottom edge of OCR line 90 180 inch 12 7 m
136. found 20 Magnetic track interrup ted Change unit 366 T5023 5023 Programming Guide Appendix Description of the physical interface Description of the physical interface The physical interface of the document printer makes serial asynchronous data transmission possible Optional the document printer can be retrofit with an Cen tronics interface The following sections lists the performance characteristics of the interfaces General The document printer comes standard with a serial asynchronous interface You can control data transmission with the XON XOFF protocol and the hard ware handshaking DTR Optionally a secondary 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 protocols Data transmission between the host and the printer is controlled by the hand shaking protocol Hardware Handshake via the DTR Signal In the DTR Busy protocol the printer signals by the activated signals DTR and RTS its readiness to receive data to the connected device DTR and RTS are activated When the printer has been switched on power on When the status changes from STOP to ONLINE 3 When the available input buffer area of the printer accept new data at least 1 kByte free input buffer after having been disabled less than 512 Byte free input buffer T5023 5023 Pr
137. g Name ASCII character Decimal Hexadecimal Function The document printer ignores this function T5023 5023 Programming Guide 199 Basic commands for document processing Additional commands Printer Specification of the horizontal leading edge Name ASCII character Decimal Hexadecimal Parameter n switch for the horizontal leading edge n 0 flush left default value n 1 flush right Function Via CSI n t the printer control is informed to which horizontal edge the sub sequent print and read operations are to refer also see section Important notes on document processing subsection Horizontal positioning in this chapter After receiving the command CSI n t all the characters are i printed which are still in the print buffer lf the horizontal leading edge on the right is selected n 1 the left edge must be fixed logically depending on the physical docu ment width and the printing unit width 90 characters 1 10 inch for example via ESC I n or an appropriate number of leading Spaces must be taken into consideration for example by means of appropriate editing of the print data or by means of appropriate dot positioning 200 T5023 5023 Programming Guide Additional commands Printer Basic commands for document processing Contents of print buffer Data Esc n Contents of print buffer Data n leadin
138. g Guide 325 Character Sets Appendix Thailand Character Set customer specific 0123456789ABCDEF 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 Selection of type fonts cha racter sets in the chapter Additional commands 326 T5023 5023 Programming Guide Appendix Character Sets 1250 Windows Latin 2 0123456789ABCDEF T5023 5023 Programming Guide 32 Character Sets Appendix 1251 Windows Cyrillic 0123456789 ABCODEF 328 T5023 5023 Programming Guide Appendix Character Sets 1252 Windows Latin 1 0123456789 ABCODEF A A A A E E T5023 5023 Programming Guide 329 Character Sets Appendix 1253 Windows Greek 0123 456789 ABCODEF 330 T5023 5023 Programming Guide Appendix Character Sets 1254 Windows Latin 5 0123 456789 ABCODEF A A A A Q PER T5023 5023 Programming Guide 331 Character Sets Appendix 1255 Windows Hebrew 0123 456789 ABCODEF 332 T5023 5023 Programming Guide Appendix Character Sets 1256 Windows Arabic 0123456789 ABCODEF T5023 5023 Programming Guide 333 Character Sets Appendix 1257 Windows Baltic Rim 0123 456789 ABCODEF 334 T5023 5023 Programming Guide Appendix Chinese Characters in the Passbook Chinese Characters in the Pas
139. g blanks T5023 5023 Programming Guide 201 Basic commands for document processing Additional commands Printer Mode switch over for handling end of paper Name ASCII character Decimal Hexadecimal n switch for type of mode switch over n 0 manual default value n 1 automatic Function By means of CSI n t depending on the parameter n the behaviour of the printing unit on the document printing point can be influenced in the case of the following errors fatal errors PAPER LENGTH End of paper within a form upper or lower edge of document was passed over because of wrong document format or incorrect programming PAPER WIDENESS The print job exceeds the right document edge 202 T5023 5023 Programming Guide Additional commands Printer Basic commands for document processing n 0 manual error handling After an error the operator must clear the error via the operating panel of the printer and put the printer into ONLINE status also see the operating manual n 1 automatic error handling After an error the following actions are executed by the printing unit Locking the printer interface for further data Response Global printer status in the coding CSI n z with n 2 ERROR Response Special printer message in the coding CSI nnm z with n 2 NO PAPER Paper ejection deletion of all print buffers setting of default para meters
140. g on or initializing the printer the character size is set i to the value which has been set in the emulation menu The character size 15 cpi can be combined with elongated print however not with condensed print With proportional spacing the character size is set to 10 cpi Example BEGIN PRINI Char 27 r P PRINTLF character size 10 cpi PRINT char 27 M PRINTLF Character size 12 cpi PRINI char 27 q PRINTLF character size 15 cpi Result character width 10 cpi character width 12 col character width 15 cpi 100 T5023 5023 Programming Guide Standard commands Print modes Print modes The use of different print modes e g bold print elongated print underlining ena bles a document to be structured for optical effect This section describes the com mands for the selection of the print modes Command Function a Switch on condensed print 2 Switch on condensed print Switch off condensed print Switch on elongated print for one line Switch on elongated print for one line Switch off elongated print for one line Switch elongated print on off Activate deactivate double character height Switch on bold print Switch off bold print Switch on double impact print Switch off double impact print Switch underlining on off Switch on superscript subscript Switch off superscript subscript Select combined print mode O OO OOOOOOOEO By select
141. ge of the form and CSI n p abso lute vertical positioning from the lower edge of the form are available for this A corresponding vertical positioning of n 180 inch is set with the parameter n For both methods of positioning the base line for the vertical print position 0 is on the corresponding edge of the document Absolute vertical positioning top reference ___ Upper edge of document n 180 D n gt 1 is admissible n 0 causes an error message 186 T5023 5023 Programming Guide Additional commands Printer Important notes on document processing Absolute vertical positioning bottom reference lt ____ Lower edge of document n2 1 is admissible n 0 causes an error message Selection of the vertical leading edge For performance reasons care should be taken that the text 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 forwards movement insertion direction With forms desi gned with bottom reference the preferred direction is the backwards movement eject direction so that here processing should be from the bottom to the top The user is free to change from bottom reference to top reference within a form T5023 5023 Programming Guide 187 Important notes on document processing Additional commands Printer Mixed use of char
142. haracter Transferring the design to a dot grid Encryption of the dot pattern into a number sequence Transferring the number sequence to the printer using the control com mand ESC amp o T5023 5023 Programming Guide 133 Definition of characters Character set commands Design of a character A character is depicted according to the following 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 line print line descender or ascender left or right space The following diagrams show the design of a capital letter and a small letter with descender lt Ascender Height of 5 capital letters Height of the character Base line lt Descender q Width Right character P lt Ascender Height of capital letters Height of the character Base line gt 134 T5023 5023 Programming Guide Character set commands Definition of characters Transferring the design onto a dot grid The document printer prints characters as dot patterns A character consists of a maximum of 24 dots in a vertical direction Spacing 1 180 inch In a horizontal direction the number of dots and the densitiy depend on the print quality 9dots spacing 1 120 inch in draft print quality 29 dots spacing 1 360 inch in LQ print q
143. he MSB to 1 46 Setting the right margin 80 Setting the text alignment 82 Setting deleting horizontal tabs 84 Sheet ejection commands 64 SI 102 390 T5023 5023 Programming Guide Index SO 105 Special character codes 57 Status and error messages 223 Superscript 22 Superscript subscript OFF 116 Superscript subscript ON 775 Switching on condensed print 702 Syntax of the character set commands 147 U Underlining 27 Underlining ON OFF 174 Unidirectional printing 44 User defined characters 151 V Vertical print control 68 T5023 5023 Programming Guide 391 Index 392 T5023 5023 Programming Guide
144. he MSR MICR functions Additional commands Printer Reading command MICR Command Name ASCII character 34 Decimal 22 Hexadecimal By this command reading is started corresponding to the parameters which have been handed over before For magnetic ink character reading the corresponding parameter has to be handed over immediately before Response CSI n1 n4 j r STX ETX Name ESC n15 n4 r STX ETX ASCII character 27 91 n1 n4 34 114 2 3 Decimal 1B 5B n1 5n4 22 72 02 03 Hexadecimal Parameter for MICR ni Number of reading attempts n2 0 n3 0 n4 Error code 0 no error 8 maximum permissible paper width exceeded 222 T5023 5023 Programming Guide Additional commands Printer Status and error messages Status and error messages The CSI sequences described in the following section are either issued by the program and acknowledged with appropriate responses or depending on the processing situation are automatically generated by the document printer and transmitted to the processor Command ESC n t Initiating the control cycle Program ESC n t Setting control point II Program ESC n z Global printer status Document printer ESC z Requesting special printer Program messages ESC n m z Special printer messages Document printer ESC n z Requesting printing unit Program parameters ESC n1 n8 z Printing unit parameters Document printer prox 30 status mes
145. he correspon ding information must then be converted into the appropriate pro gramming language i In this manual the program examples are depicted exclusively in the 16 T5023 5023 Programming Guide Programming interface General Print effects Print effects The design of a print product is dependent on the print quality type font type size or character width and highlighting text e g by underlining or bold print 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 LQmode Letter Quality The LQ mode has the higher print quality and lower print rate DQmode Draft Quality The DQ mode has a lower print quality but a higher print rate Example This line is printed in LQ mode This line is printed in DQ mode The print quality can be selected by means of the corresponding ESC se quences via a program or the menu T5023 5023 Programming Guide 17 Print effects Programming interface General Fonts In addition to the DQ font for drafts the default fonts Roman Sans Serif OCR A OCR A1 Eurobanking and OCR B OCR B1 Eurobanking as well as the cha racter set ISO 8859 with the following versions are available for Letter Quality LQ mode East Europe Cyrillic Greece Hebrew Tur key The DQ Roman and Sans Serif fonts are selected via corresponding ESC
146. he 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 m 256 n 180 inch LQ ESC n m is ignored if the specified position exceeds the right mar i gin set using ESC Q n 88 T5023 5023 Programming Guide Standard commands Horizontal print control Example At the beginning the Draft print quality is set BEGIN PRINT Displacement PRINT ehar 2 7 ehar 130 0 PRINIEE by 145 inches PRINT char 27 x char 1 lt LQ mode PRINT Displacement PRIN cher 27 A char trge00y PRINTOF by 2 lt nmch Result Displacement by 1 5 inches Displacement by 1 inch T5023 5023 Programming Guide 89 Horizontal print control Standard commands Determining the character spacing ESC SP n ASCII character 27 32 n Decimal 1B 20 n Hexadecimal Function Using ESC SP n the normal distance between two print characters 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 LQ n can accept values between 0 and 127 i After switching on or initializing the printer ESC n has the value 0 90 T5023 5023 Programming Guide Standard commands Horizontal print control Example The character spacing i
147. his must occur via ESC b small b A vertical tab jump occurs via the command VT for ASCII decimal 11 hex OB T5023 5023 Programming Guide 11 Vertical print control Standard commands Determining deleting vertical tabs for any channel ESC b c n1 7 NUL ASCII character 27 98 C n1 na 0 Decimal 1B 62 c n1 s 00 Hexadecimal Function Setting tabs ESC b c NUL has in principle the same function as ESC B NUL By means of the variable c a number between 0 and 7 a certain channel for vertical tabs can be selected additionally Thus it is possible to define eight different tab groups each with up to 16 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 channel c 0 to 7 are deleted NUL cha racters directly after ESC b c i If vertical tabs were set using ESC B NUL channel 0 is occu pied Before tab values for a channel can be altered these values must be previously deleted in the appropriate channel for example De leting tabs in channel 0 using ESC b 0 NUL or ESC B NUL 12 T5023 5023 Programming Guide Standard commands Vertical print control Selecting a vertical tab channel ESC c ASCII character 27 47 Cc Decimal 1B 2F C Hexadecimal Function Via ESC c a vertical tab channel c can be
148. ialisation Range of Commands for the OLIVETTI PR50 FE oo Ferm Feed cR ___ 0D _ Carriage return ESC n 1B23 Assign referenceforESCLnnn_ ESC amp nn 1B26 Elementary vertical spacing ESC n 1B27 _ Setdocumenttype ESC _ _ 1B28 __ Bold Face _ S o y O ESC 1B29 Cancel Bold Bace ESC n _ 1B1A_ Underline S o y O ESC 1B2B_ Cancelunderline _ _ _ _ _ T Y ESC 1B2D___ Measure documentlength ESC _ 1B2E_ Select automatic operator booking mode ESC 1B2F _ Set absolute vertikcal position in elementary steps ___ ESCO 1B30 General reset ESC1p 1B3170 SetBIM S o y O ESC2_ _ 1B32_ __ Reset B M o o ESC3 1B33 Doublewidth o y O ESC4 1B34 Cancel double width ESC7 1B 37 Line feed backward y O T5023 5023 Programming Guide 353 Olivetti PR50 Emulation Appendix ESC O ESC Q ESC R ESCO ESCQ ESCR Request for basic machine configuration Synchronous basic machine status ae ESCt 1B74 _ data to be recordet on magnetic stripe Z ESC ___ 1B7B_____ Cancel superscript subscript o Z ESC A 1B7C 41 Define offsetin elementarysteps Z ESC B 1B7C 42 Define document width in elementary steps DEL 7F_ Clear print memory Z o Z o y O FS ICs Read returned magnetic bar data ending marker FS amp 1026 Set chiniese mode O Z o o ooo o FS 1C2 Cancel chiniese mode _ o Z o o ooo FSg _ 1C67_ Canc
149. ifferent character sets of the printer Furthermore your own charac ters can be defined as dot patterns and stored in the memory of the printer Command ESC n Switching on off the character set defined by the user ESC amp n n m Transferring the character definition ESC 4 Switching on italic print ESC 5 Switching off italic print ESC 6 Switching on extended character set ESC 7 Switching off extended 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 ned font qualities can be selected see the additional command CSI n q in the Additional commands chapter Character fonts sel ected in this way are treated as normal LQ type fonts that is to say all standard commands print quality character size types of print also work on these character sets in the way described in the Standard commands chapter i By means of CSI sequences further character sets with specially defi General notes on the command description can be found in the Stan dard commands chapter in the sections Description components Coding of decimal command parameters and Program examples T5023 5023 Programming Guide 123 Character set selection Character set commands Character set selection The document printer prints characters as dot patterns The data for the dot pat terns of the characters is
150. indows NT Drivers The document printer is delivered with drivers for the operating systems Windows 95 98 NT 2000 XP lf 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 printer drivers has been installed other applications can no longer directly address the serial interface assigned In this case the Windows print spooler blocks the interface T5023 5023 Programming Guide 295 Windows NT Drivers Specific Operating System Dependencies 296 T5023 5023 Programming Guide Appendix Command table Appendix Command table Command table for Epson ANSI emulation Command ASCII hex Function 07 Signal tone BS 08 Backspace of one character HT 09 Horizontal tabulation LF OA Line feed VT OB Vertical tabulation FF OC Sheet ejection CR OD Carriage return SO OE Switching on elongated print for one line SI OF 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 character DEL 7F Deleting a line ESC SO 1B OE Switching on elongated print for one line ESC SI 1B OF Switching on condensed print ESC EM n 1B 19n Paper control ESC SP n 1B 20n Determining the character spacing ESC n 1B 21n Selection of combined print mode ESC 1B 23 Deleting the MSB specification
151. ines Determining the document length at n inches Determining deleting horizontal tabs T5023 5023 Programming Guide Appendix Command ESC E ESC F ESC G ESC H ESC J n ESC K n m ESC L n m ESC M ESC N n ESC O ESC P ESC Q n ESC R n ESC S n ESC T ESC U n ESC W n ESC Y n m ESC Z n m ESC n p ESC n q ESC n p ESC n p ASCII hex 1B 45 1B 46 1B 47 1B 48 1B 4A n 1B 4B n m 1B 4C nm 1B 4D 1B 4E n 1B 4F 1B 50 1B 51n 1B 52n 1B 53 n 1B 54 1B 55n 1B 57 n 1B 59 n m 1B 5A nm 1B 5B n 21 70 1B 5B n2171 1B 5B n 23 70 1B 5B n 22 70 Command table Function Switching on bold print Switching off bold print Switching on double impact print Switching off double impact print Carrying out an n 180 inch line feed Switching on the graphics mode single density Switching on the graphics mode double density Selecting the character size 12 cpi Elite Setting the bottom margin Deleting the bottom margin Selecting the character size 10 cpi Pica Determining the right margin Selecting a national character set Switching on superscript subscript Switching off superscript subscript Unidirectional print mode on off Switching elongated print on off Switching on the graphics mode double density and double rate Switching on the graphics mode quadruple density Absolute vertical positioning from the top Change bet
152. ing condensed or elongated print the width of the charac i ters is changed condensed 60 of the normal character width elongated 200 of the normal character width Not all print modes and character sizes can be combined Invalid combinations are pointed out in the description of the individual commands Using ESC n it is possible to switch on or off all print modes with the exception of superscript and subscript the character sizes 10 cpi and 12 cpi proportional spacing and italic print on or off with a single command T5023 5023 Programming Guide 101 Print modes Standard commands Switching on condensed print Sl ASCII character 15 Decimal OF Hexadecimal Function SI switches condensed print on The character size in condensed print is appro ximately 40 smaller than in normal print The command Sl has the same effect as the command ESC SI i Condensed print is switched off again using DC2 Condensed and elongated print can be combined 10cpi and 12 cpi characters can be printed condensed 15 cpi cha racters cannot be printed condensed Condensed print can be set in the emulation menu Example BEGIN PRINTLF Standard print PRINT Ghar 15 lt Condensed print on PRINTLF condensed print PRINT char 18 lt Condensed print off PRINTLF Standard print END Result standard print condensed print standard print 10
153. is the code system ASCII A merican S tandard C ode for I nformation I nterchange which only differs in certain characters for special foreign languages national ASCII table The ASCII code is 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 normally consist of a sequence of two or more ASCII characters Such a code sequence is always preceded by the encryption of the control code ESC Es cape ASCII code 27 decimal or 1B hexadecimal This signals to the printer that the encryptions following ESC are to be interpreted as commands for the printer There are two kinds of code sequences for the document printer ESC Code sequences which begin with ESC or the appropriate encryption are called ESC sequences CSI ESC Code sequences introduced with CSI Control Sequence Introducer are called CSI sequences CSI sequences are introduced with encryptions of the character sequence ESC and concluded with the encryption of two 14 T5023 5023 Programming Guide Programming interface General Encryptions Codes characters depending on the command Intermediate Character and F Final Character The CSI sequences are used to control special docu ment printer functions for document and MSR processing see document printer specifications in this chapter a
154. is data becomes unneces sary The values for the line number and the balance are updated on the magne tic stripe before the printing of the passbook line 30 T5023 5023 Programming Guide Programming interface General Document printer specifications Special features of the document processing When processing documents in contrast to the normal processing of single sheets or continuous forms the varying sizes of the documents and the docu ment feeding mode must be considered Insertion and ejection of documents In principle there are two possibilities for controlling the insertion and ejection of documents One possibility is that the printer initiates an insertion automatically at a holding position set if 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 correct processing position lf the document printer receives print instructions and no document is available the user will be requested to insert a document by a flashing LED indicator and the LCD display on the operating panel The ejection of a document can be initiated by a form feed command Using a special CSI command documents can also be drawn in explicitly to the base of the first print line and processed or documents only fed in can be ejec ted Thus insertion and ejection procedures can be secured by means of sepa
155. is smaller than that of the character 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 spacing off After switching on or initializing ESC the printer proportional i Spacing is possible if it has been set in the emulation menu ESC p 1 switches automatically to LQ print quality Example BEGIN PRINT This line is not printed with proportional PRINTLF spacing PRINT Chaz 27 p char 1 PRINTLF This line is printed with proportional PRINTLE spacing END Result reduced in size This line is not printed with proportional spacing This line is printed with proportional spacing T5023 5023 Programming Guide 97 Print quality and character size Standard commands Selecting the character size 10 cpi Pica ESC P ASCII character 27 80 Decimal 1B 50 Hexadecimal Function ESC P sets the character size to 10 cpi 10 characters per inch This character size is also set after switching on or initializing the printer if it has been selected in the emulation menu The character size 10 cpi can be combined with condensed and i elongated print The command ESC P is normally used to deactivate the 12 cpi or 15 cpi character size Example BEGIN PRINT char 27 P PRINTLF character size 10 cpi
156. ition of the document The bottom margin possibly de termined by ESC N n is cancelled by ESC C NUL n le for a document length of 12 inches the printer issues an error mes sage PAPER LENGTH If a bottom margin is set logically on the paper via ESC N n for example at 9 inches and this margin is exceeded a form feed FF is executed i If the print head is positioned beyond the edge of the paper for examp T5023 5023 Programming Guide 67 Vertical print control Standard commands Vertical print control This section describes the commands for setting vertically arranged document positions end of document and vertical tabs An automatic end of document and feeding on certain lines are thus possible without the corresponding printing of blank lines The data of vertical tabs is allocated to channels which are numbered from 0 to 7 Command Funcion o ESC N n Setting the bottom margin ESC O Deleting the bottom margin ESC B NUL Determining deleting vertical tabs ESC b c NUL Determining deleting vertical tabs in channels ESC c Selecting a vertical tab channels VT Vertical tabulation ESC EMn Paper control leading edge and lower leading edge The vertical leading edges are i A difference must be made between the vertical leading edges upper defined in the chapter Additional commands Setting vertical tabs is possible in two ways upto 16 fixed tabs ESC B
157. ll dimensions shown in the illustration are in millimeter For detailed information see the Paper specifications on the CD ROM T5023 5023 Programming Guide 357 Paper Specifications Appendix 358 T5023 5023 Programming Guide Appendix Error messages Error messages Status messages Status Description Removal ONLINE Online status no paper inserted NO_PAPER ONLINE Online status paper drawn in PAPER DATA STOP status data in input buffer no paper inserted NO_PAPER DATA STOP status data in input buffer paper inserted PAPER STOP STOP status input buffer empty no paper inserted NO _ PAPER STOP STOP status input buffer empty paper inserted PAPER Paper request by data in print buffer T5023 5023 Programming Guide 359 Error messages Appendix Status messages Bootstrap loader activated Description LOAD Bootstrap loader activated NO PROGRAM Bootstrap loader activated firmware missing NO _CHARCTER Bootstrap loader activated character generator miss GENERATOR sing PROGRAMMING Memory area is programmed PROGRAMMING Timeout when loading data segments TIMEOUT TRANSM_ ERROR Data transmission error when loading data segments PROG_ERR Programming error when loading memory chip 360 T5023 5023 Programming Guide Appendix Error messages Malfunctions information to the cause of error This additional information is only for the service personnel and can be called up by pres
158. ls the absolute column position remains unchanged If neces sary when changing the character size the old margin or tab values must be de leted and reset The length of the lines depends on the distance between the left ESC I and the right ESC Q margins The adjustment of the text can be selected flush left flush T5023 5023 Programming Guide 75 Horizontal print control Standard commands 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 starting from the current print position ESC 1 dot 1 180 inch or 1 120 inch 76 T5023 5023 Programming Guide Standard commands Horizontal print control Setting the left margin ESC i n ASCII character 27 108 n Decimal 1B 6C n Hexadecimal Function Using ESC I n the horizontal print position 0 can be influenced that is to say a left margin can be set The left margin absolute distance from the left 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 be wider than 8 inches If the left margin width is defined as greater than 8 inches the command is ignored n 0 print position 0 left edge of document n gt 0 print position O left edge of document n ESCI 0 ES
159. ly executed even within a word So many characters are printed in one line until the space between the left and right margins is used up Printing is then continued on a new print line 80 T5023 5023 Programming Guide Standard commands Horizontal print control size 10 12 or 15 cpi and the print mode condensed elongated 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 i The absolute margin position is dependent on the set character The distance between the left and right margins must be at least two 2 10 two characters with 10 cpi ESC Q n should be entered at the beginning of a print line as ESC Q n deletes all the previously entered characters and tabs in the same print line Example A demonstration of what effect a right margin has on the carriage return and line feed For the influence of the current character size on the right margin compare with con trol command for Setting the left margin BEGIN SET N REPEAT SET N N 4 PRINT char 27 Q char N lt Setting the right PRINT Line length equal to the distance margin PRINTLFE between left and right margins UNTIL N 42 END Result Line length equal to the distance between lett and right margins Line length equal to the distance betw een left and right margins Line
160. m 2776nm 1B4Cnm Switching on graphics X mode double density 350 T5023 5023 Programming Guide Select n 216 n 180 line distance Set Top of Form X EJECT i Set Auto LF Mode on X CR ON OFF XL24 X X X X X Appendix 11 3 12 11 3 12 Off Appendix IBM Emulations ESC N pecina 78 n CE 4E n Ignore setting lower margin ESC O 27 79 1B 4F Ignore deleting lower margin 4722 ESC Pn 27 80 1B 50 Proportional On Off aaa Ee ESC Q n 27 81n 1B 51n Deselect Printer x E X No margin ESC R 27 82 n 1B52n Reset all Tabstops vert and hor ESC S n 27 83 n 1B 53n Switching on superscript subscript ESC T 27 84 1B 54 Switching off X superscript subscript ESCU 27 85 1B 55 Switching on off X unidirectional print mode Off Bidirec tional ESC W n 27 87 Nn 1B 57n Switching on X X Off offelongated printing ESC X n m Setting left and right X X margin ESC Y n m 27 89nm 1B59nm Switching On graphics X X mode double density and double speed 1 72 vert ESC Z n m 2790nm 1B 5Anm Switching On graphics X X mode quadruple density 1 72 vert ESC 2793 1B 5D Reverse Line Feed X X should not be used ESC An 2 7 94 1B 5E Print all single X X character ESC F 279170 1b5b46 Sheet feeder Po FX fT ESC F c1 c2 27 91 70 1b 5b 46 Page Presentation X nn nn Media Jcic2n 2791 74 1b 5b 4A Set single Line Density X eoo ESC cc1c2 2791 tb5b63 Message x ESC n1 n2
161. m was selected in order to have a sufficient distance to a possibly present black bar If such black bars are not there you can begin directly with step 2b see 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 differentiation feature to branch to different document dependent application programs CSI t initiates a document request if a document is not yet present or inserted The document request is indicated by the flashing DOCUMENT LED on the operating panel 2b Positioning on the coding line if document width measurement was used optional Command CSIn p Parameter n 60 Remarks Distance bottom edge of document bottom edge of OCR line 60 180 inch 8 47 mm 258 T5023 5023 Programming Guide Application examples Document processing 3 Evaluating response to document width Command CSI n t Parameter n 1062 Remarks Document width 1062 180 inch 150 mm compare description of the document structure 4 Reaching horizontal print position for OCR printing Command ESC n 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 referring to the top document edge Comm
162. mand description Example Determining the document length at n inches n ASCII character n Decimal n Hexadecimal Function ESC C NUL n sets the document length at n inches absolute document length independent of the line spacing The value n must be between 1 inch and 22 inches O Parameter value of n must be encrypted binarily Note on which values the parameter n can have In contrast to the ESC sequences of the standard character set and i graphics commands for the document printer specific additional com mands CSI sequences the command parameters n n1 etc are co ded as ASCII values For example three bytes are transferred for a three figure parameter value n 123 see Additional commands chapter Program examples All instructions in the program examples to demonstrate 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 code depending on the programming language used must be converted into the appropriate program instructions T5023 5023 Programming Guide 35 Notes about command description Standard commands Example BEGIN PRINTLF Print page with bottom margin CALL LINE PRINT PRINT char 27 O PRINTLF Print page without bottom margin CALL LINE PRINT END BEGIN LINE PRINT SET N 0 REPEAT SET N N 1 PRINTLF
163. ming Guide Additional commands Printer Basic commands for document processing Requesting the document width Command Name ASCII character Decimal Hexadecimal Response Name ASCII character Decimal Hexadecimal n document width of the current form in n 180 inch Function Via the control command CSI t the printer control transmits information to the program about the width of the document currently being processed lf the width of the document is not known to the printer control at this point of time a measuring 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 document width of the form with the measurement n 180 inch n can lie in the range from 0 to 9999 example as a switch to call up the corresponding formatting and prin i The parameter n transmitted via CSI t can be used in the program for tout routines depending on the type of form T5023 5023 Programming Guide 197 Basic commands for document processing Additional commands Printer Document edge detection Name ASCII character 91 35 Decimal 5B 23 Hexadecimal Function The document printer ignores this function 198 T5023 5023 Programming Guide Additional commands Printer Basic commands for document processing Activating passbook processin
164. mming Guide 43 Controlling the configuration of the printer Standard commands Selecting unidirectional printing for one line ESC lt ASCII character 27 60 Decimal 1B 3C Hexadecimal Function Via ESC lt the next printing line is printed from right to left This command will be cancelled automatically by a carriage return CR Switching the unidirectional printing mode on off n ASCII character n Decimal n Hexadecimal Function Normally printing is bidirectional optimal printing path Unidirectional printing 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 activates or deactivates unidirectional printing by which n serves as an on off switch n 1 activates the mode unidirectional on n 0 deactivates the mode unidirectional off Example After printing three lines a change is to take place between bidirectional and uni directional printing Bidirectional printing begins 44 T5023 5023 Programming Guide Standard commands Controlling the configuration of the printer BEGIN PRINT enan 2 7 5 U char 0 lt bidirectional on PRINTLF bidirectional printing PRINTLF bidirectional printing PRINTLF bidirectional printing PRINT char 27 4 U pchar 1 lt bidirectional off PRINTLF PRINTLE unidirectional pri
165. mulation firmware into the printer JOURNAL BUFFER Electronic Journal full vee Start a journal printout and de lete journal memory COVER OPEN Printer cover open Close Printer cover 362 T5023 5023 Programming Guide Appendix Error messages Cause Possible action Service information No Meaning FIRMWARE Internal firmware error 16 PADON Check firmware release if ne oe Sy Die OnE cessary install new Internal ET syntax error 33 ET AEQ MSG syntax error 34 ET Timeout mechanic 35 ET Timeout interface 36 ET Timeout CPPT 64 CPPT syntax error 80 ECT syntax error 96 HMPT syntax error 112 VMT syntax error ELECTR ERROR Hardware error in the electro 00 ELECTRONIC ER nic EE PROM ROR T5023 5023 Programming Guide 363 Error messages Appendix Cause Possible action Service information No Meaning CARRIER Print head drive Hardware er 01 ERROR ror Wrong needle frequen Check area around the platen for foreign bodies Print command without Light rail dirty clean print blocks 03 Carrier drive drive belt motor Overflow of the proceed plug carrier motor print head profile table not plugged 04 Sensor in print head defect Print outside print area change print head print head 95 cable not plugged or defect Error at scanning basic setting Electronic defect 06 Error at Go to target basic setting 07 Expected photo sensor interrupt not received 08
166. n 24 dot mode 160 T5023 5023 Programming Guide Graphics commands Mode of operation of the graphics Example 8 dot mode Dot graphics ESC identifier 6 0 72 0 56 68 3 128 lt Command 24 dot mode Dot graphics ESC identifier40 2243217 000 1000 0170 T5023 5023 Programming Guide 161 Mode of operation of the graphics commands Graphics commands The total number of data bytes must be adhered to exactly If too many data by tes are entered some may be interpreted as character codes If too few data are entered subsequent control or character codes may be interpreted as graphics data Di 162 With 8 dot graphics modes double rate double density and qua druple density horizontally adjacent dots cannot be printed This is 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 interrupted by blank lines To print graphics without line spaces the line spacing must be set to 24 180 inch corresponds to the height of a graphics line using ESC 3 The horizontal and the vertical dot density are equal only with the 8 dot graphics mode single density and the 24 dot mode triple density The various dot densities of the other graphics modes must be considered when designing graphics Otherwise they may lead to a distortion of the pri
167. n 2 The upper character table contains the characters defined by the user The se characters can be used simultaneously with the standard characters ROM without switching character set For this 128 must be added to each code assigned with ESC amp when defining the characters chapter contains the character tables of the individual character i The introductory section Selection of the character set in this sets If ESC t 2 is used without previously defining characters the up per and lower character tables are identical T5023 5023 Programming Guide 149 Switching on italic print Character set commands Selecting a national character set ESC R n ASCII character 27 82 n Decimal 1B 52 n Hexadecimal Function Altogether 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 By means of a value between 0 and 12 for n one of thirteen possible country versions is selected according to the following list 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 Norway n 10 Denmark n 11 Spain 2 n 12 Latin America A summary of all the country specific characters and their encryp tion hexadecimal decimal is contained in the introductory section Character set selection in this chapter
168. nd character 1B 5B 31 3B 3B 3B 22 72 02 20 03 Ok with data All characters read are placed between the start character and the end character and are sent to the application Characters which were not recognized rejects are transferred as 3F hex T5023 5023 Programming Guide 219 Controlling the MSR MICR functions Additional commands Printer 220 1B 5B 31 3B 3B 3B 22 72 02 30 31 32 3F 34 35 39 03 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 error code 8 ASCII 38 in the parameter byte n4 DB oo 38 3B SB ager22 12 O02 U3 The document can be processed printed ejected without any limitati ons T5023 5023 Programming Guide Additional commands Printer Controlling the MSR MICR functions Activate parameter command MICR Name ASCII character Decimal Hexadecimal Parameter for MICR ni 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 maximum document width in 1 180 inch adjustable 496 to 1490 70mm to 210mm all other values activate the default value 725 102mm Accuracy of measurement approx 1mm n5 0 no function parameter is ignored T5023 5023 Programming Guide 221 Controlling t
169. nd the chapter Additional com mands Examples ESC sequences ESC ASCII encryption sequence ESC 4 Italic print on decimal 27 52 hexadecimal 1B 34 ESC 5 Italic print off decimal 2r OS hexadecimal 1B 35 ESC 0 Deleting bottom margin decimal 27 79 hexadecimal 1B 4F ESC C 60 Setting the document length decimal 27 67 60 to 60 lines hexadecimal 1B 43 3C Examples CSI sequences here without encryptions CSI Parameter Deleting of MSR track no parameters Activating passbook processing T5023 5023 Programming Guide 15 Encryptions Codes Programming interface General Activating the document printer functions The control codes or ESC or CSI sequences must be addressed to the printer directly and uniquely via corresponding program commands Depending on the respective programming language this is e g via PRINT or WRITE instructions Example Three lines are to be printed Lines 1 and 3 are printed in normal print line 2 in italic print Pseudo code BEGIN PRINTLF first line PRINT ESC 4 PRINTLF second line PRINT ESC 5 PRINTLF third line END Conversion into BASIC LPRINT first line LPRINT CHRG 27 4 LPRINT second line LPRINT CHR 27 T D LPRINT third Line Result first iine SECON dane third line form of a pseudo code and the control codes or code series are given in decimal ASCII encryption or directly as characters T
170. ndensed print the spacing of the tabs amounts to 60 of the character width with elongated print double the normal charac ter spacing After switching on the printer or after initializing ESC the tabs are set at a spacing of eight 10 cpi characters 84 T5023 5023 Programming Guide Standard commands Horizontal print control Horizontal tabulation HT ASCII character 9 Decimal 09 Hexadecimal Function Using HT the print head is set to the next tab position After positioning on the last right tab position the HT command has no effect This also applies if all the tab positions were deleted using ESC D NUL After switching on the printer or after initializing ESC the tabs i are set at a spacing of eight 10 cpi characters The tab positions are set using the command ESC D and deleted using ESC D NUL With centered and flush right text adjustment or with margin justifi cation ESC a n the HT command is ignored Various programs and computers convert the HT command into corresponding blank spaces instead of passing the command di rectly to the document printer T5023 5023 Programming Guide 85 Horizontal print control Standard commands Horizontal positioning absolute ESC n m ASCII character 27 36 n m Decimal 1B 24 n m Hexadecimal Function By means of ESC n m the print head is moved horizontally to a position which is calculated independently of the curre
171. nder 46 vertical tab 240 T5023 5023 Programming Guide Application examples Processing of a blank form Print effects Mr Specimen 7 Princes Road London W 5 RS 232 interface 1 Dear Mr Specimen D herewith we would like to answer your query about the type of connector for the RS 232 interface of the printer For the RS 232 interface the printer has a 9 pin Cannon plug 05 01 00000 0000 1 09 06 Pin numbering plan view Yours sincerely John Smith T5023 5023 Programming Guide 241 Processing of a blank form Application examples General Character size 10 cpi Type font Roman Specialities o_o Reference line 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 illustration of the pins small o the following conditions apply no proportional spacing character size 15 cpi additional character spacing between small o 24 180 inch 242 T5023 5023 Programming Guide Application examples Processing of a blank form Program steps annotated 1 Switching on LQ mode Command Parameter ESC x n n 1 LQ mode Switching on proportional spacing Command Parameter Remarks Setting line spacing Command Remarks ESC p n n 1 proportional spacing on Wi
172. nnennennenennnennnesnnnnnnsnenneneennee 107 Switching elongated print on off nnenoennnenennnnennnnnenennnnnnnnnenenenne 108 Enable Disable Double Character Height ccccceeseeeeeeeeeeees 109 SWIHCHING ON DOIG MAT eraziren a 110 SWITCHING Off DOIA DAN sborsare enri eaa ERAN 111 Switching on double impact print s sssssesseseesseesrsnrresrrrreserrreereenee 112 Switching off double impact print eee eeececeeeeeeeeeeeeeeeeeeeeeeees 113 Switching underlining on off cee cseeeeeeccseseeeeesceeeeeeeseeeeeeesaeaeeess 114 Switching ON superscript subscript ccceeeeceeeceeeeeeeeeeeeeeeeaeeeeees 115 Switching off superscript subscript cc ceeeeceeecseeeeeeeeeeeeeeeaeeeeees 116 Selection of combined Print mode cceeeeececeeeeeeeeeaeeeeeeeeeeeeeeeas 117 Non executable COMMANAS cccccssececcceeeseececceeeceeeeaeueceesaaneeeessaaeeess 120 OIL OIG saci tases cg steed A a A ieee 120 Switching half rate printing on off cc ceeceecesseeeeeeeeeeeeeeeneeeeeenees 121 Selecting the print colour cccccccsssseceeeeseeeecceeseeeseeeeeeeeseeeeesanas 121 T5023 5023 Programming Guide Contents Character Set commandsS cccceeeeseeseeenseeesensseeeeeenseeeseeeneeeseonneees 123 Character Set selection cccceeeecceceeseececaeeeceeeeeaeceeeseueeeeeseaeeeessaaaeeeess 124 D finition OF eharactle Saccani a an beeen ee elses 133 Notes on the use of
173. nt character size from the values n and m relative to the previously set logical left margin left margin of sheet set using ESC I n The distance of 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 than 816 ESC n m is ignored if the specified position exceeds the logical i right margin set using ESC Q n Example The distance of the text from the left sheet edge is increased step by step BEGIN SET N 60 REPEAT SET N N 30 PRINT char 27 gt S chear N 0 PRINT Distance from left sheet edge PRINTLF N 60 inch UNTIL N 180 END 86 T5023 5023 Programming Guide Standard commands Horizontal print control Result reduced in size Distance from left sheet edge 1 5 inch Distance from left sheet edge 2 inch Distance from Left sheet edge 2 5 inch Distance Trom left sheet edge 3 inch Result Original size Distance from left sheet e Distance from left sr Distance from i Distance f T5023 5023 Programming Guide 87 Horizontal print control Standard commands Horizontal positioning relative ESC n m ASCII character 27 92 n m Decimal 1B 5C n m Hexadecimal Function Via ESC n m the print head is displaced horizontally to a position relative to the current print position T
174. nted pictures T5023 5023 Programming Guide Graphics commands Syntax of the graphics commands Syntax of the graphics commands Selecting the graphics mode ESC i S n m Data ASCII character 27 42 S n m Data Decimal 1B 2A S n m Data Hexadecimal Function Using ESC s n m according to the value s one of the graphics modes is activated according to the following table graphics mode needles horiz vert horizontal used density density adjacent dots 2 double density 120 not possible double rate 3 quadruple density 8 240 60 not possible 40 360 not possible T5023 5023 Programming Guide 163 Syntax of the graphics commands Graphics commands The parameters n and m determine 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 column The section Mode of operation of the graphics commands contains i further notes on the command ESC s n m 164 T5023 5023 Programming Guide Graphics commands Syntax of the graphics commands Example Using shading the various dot densities of the graphics modes are illustrated In the main program the parameter s is set for the command ESC In the subrou tines EIGHT DOT and TWENTY FOUR the command ESC the number of dot columns 100 each time and the data bytes encryption of
175. nting PRINI GLE unidirectional printing PRINTLF unidirectional printing END Result bidirectional printing bidirectional printing bidirectional printing unidirectional printing Unidirectional printing unidirectional printing T5023 5023 Programming Guide 45 Controlling the configuration of the printer Standard commands Setting the MSB to 1 ESC gt ASCII character 27 62 Decimal 1B 3E Hexadecimal Function ESC gt sets the most significant bit MSB of all incoming data to 1 Thus it is pos sible 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 The MSB setting via ESC gt is deleted by the following ESC seuences i ESC Initializing the printer ESC Deleting the most significant bit ESC Deleting the MSB specification 46 T5023 5023 Programming Guide Standard commands Controlling the configuration of the printer Setting the MSB to 0 ESC ASCII character 27 61 Decimal 1B 3D Hexadecimal Function ESC sets the most significant bit MSB of all incoming 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 The MSB setting via ESC is deleted by the following ESC seuences i ESC Initializing the printer
176. nting from 09 06 to Pin numbering plan view Setting print format adjustment to flush left again Command ESC a n Parameter n O default value Changing type font Command ESC k n Parameter n 0 Roman Vertical tabulation to the greetings line Command VT Printing greetings line T5023 5023 Programming Guide Application examples Processing of a blank form 43 Vertical tabulation to the name of sender Command VT 44 Printing name of sender 45 Document ejection Command FF T5023 5023 Programming Guide 249 Processing of a blank form Application examples Program pseudo code The corresponding numbering refers to the annotated program steps in the pre vious section BEGIN CALL PROGRAM START ROUTINE CALL LETTER HEAD CALL REFERENCE CALL INTRODUCTION CALL SKETCH CALL SENDER PRINT char 12 45 FF END BEGIN PROGRAM START ROUTINE PRINT char 27 H PRINT char Char 1 PRINT char PRINT char 2 PRINT char T y y lg GY Char 72 J 4 Chard ly PRINT char Q Char 72 PRINT by ME 1 y T y PRINT oe ee T m WM O O 4 4 4 4 7 char cha PRINT char PRINT char PRINT char 35 40 char 0 END PROGRAM START ROUTINE 2 2 2 2 2 8 16 20 42 46 0 27 ESC D NUL ESC D n1 NUL D char 0 D Z char A 2 250 T5023 5023 Programming Guide Appli
177. o cleared and the default parameters of the emulation are set The break function can be used to check whether the printer connected to the printer interface is switched on and in which status it is at the time ration Status changes are automatically indicated by the document i The break should not be used to query the status during running ope printer T5023 5023 Programming Guide 225 Status and error messages Additional commands Printer Setting control points initiating the control cycle Command Name ASCII character Decimal Hexadecimal Name ASCII character Decimal Hexadecimal Parameter n value freely definable by the application in the range 0 to 9999 226 T5023 5023 Programming Guide Additional commands Printer Status and error messages Function The command CSI n t triggers the initiation of an acknowledgement signal to the computer interface if all the jobs transferred up to this command have been processed For a definite assigning of the acknowledgement signals also CSI n t to the transferred requests the acknowledgement message contains the same para meter value n that the application transferred in the request tion as the use of this command can negatively influence the per formance of applications When using CSI n t the following notes are important i f possible the command CSI n t should be avoided in a transac The request for ackno
178. ocedure GET arguments should symbolize the data transmis sion from the document printer to the program This procedure is only relevant for the description of certain CSI sequences in the Additional commands chapter with which responses from the printer can be eva luated Examples The command for line feed is LF and is encrypted decimally according to the ASCII coding by 10 Equivalent to this are the pseudo code instructions PRINT Thies is a line char 10 PRINTLF This is a line 38 T5023 5023 Programming Guide Standard commands Notes about command description Setting the document length for example 6 inches ESC C NULL 6 PRINT Char 274 6 40y 6 Or PRINTS char 27 C char 0 char 6 Initializing the printer after printing with line feed PRINT text char 10 char 27 Q Or PRINT text PRINT char 10 PRINT char 27 TOT or PRINTLE text PRINT chear 27 276 Printing variable values SET counter REPEAT SET counter counter 1 PRINTLF This is the lone counter UNTIL counter 10 Enlarging the line spacing successively n 180 inch by means of ESC 3 n SEL N REPEAT SET N N 1 PRINT char 27 3 char N PRINT Line spacing Ny 180 ingr UNTIL N 20 Printing a blank line PRINTEF T5023 5023 Programming Guide 39 Notes about command description Standard commands Reaction to incorrect param
179. of decimal command parameters c ccceeeeeeeeeeeeeeaeeeeees 34 Controlling the configuration of the printer ccccceeseeessseeeeeeeeeaeeeeeees 41 HAIATIZING ThE PHINLSL seiccrstatetv an huihsvedewiulaeapelitiatnelhwietsarieldwmelesiadiwes 42 selecting unidirectional printing for one line ceeceeeeeeeeeeeeeeeees 44 Switching the unidirectional printing mode on Off cece eeeeeees 44 Settling the MSB tO scisscetveccsaces aude sces choc sa G 46 Selno THe MSB tO Os sasetisi re cetescedconi arenes occ den set na velo eet a 47 Deleting the MSB specification cceceeccecseeeeeceeeeetaeeeeeseeeeesseeeeesaes 48 Printer OMNE sess conc diel caters a a ADE 49 PANErONINE nocione eau teesevaee tele es narrated 49 Automatic single sheet feeder On Off ccccccccceeeeeeeeeeeeeeeeeeesneeeees 50 Special CharacterCOdes enr a eee 51 Carmage Tetu sa atandceMaausae cases doe A 51 Backspace of one CNALaCtel ccccscceccsececceeceecseueeeceeseesseeeeeseneessees 53 D leling a charactor risa a a a E a 54 canceling Ane 22 ewsac eae ae a a keaton 54 LINE teed command Sa asosa ena a ESN 55 LNA TC CO miraion a a 56 Carrying out an n 180 inch line feed snsnsssnsenseneerrenernrresre rnrn 57 Determining 1 8 inch line spacing seccccseeeeceseeeeeceeeeecaeeeeeaeeeeesaes 58 Determining 1 6 inch line spacing cseccccseececsseeeeceeeeesaeeeeesaeeeeeees 59 Determining n 180 inch line
180. of loadable characters is not supported due to different print head resolutions The print attributes overscore and double height are not supported T5023 5023 Programming Guide 345 IBM Emulations Appendix The last possible print line when printing lists unformatted varies according to the various printing units Printer type Last print line before bottom paper edge IBM 4722 approx 6 5 mm OWwetia7ea S SSCSC CS Operation When the 4722 emulation is enabled the STOP and EJECT keys have the same function as the STOP key of the 4722 printer 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 pressed at power on the 4722 emulation will be replaced by the emulation set with the menu item EMULATION Typed The LOAD_ PAPER status does not occur 346 T5023 5023 Programming Guide Appendix IBM Emulations Variable initialisation parameters 4722 emulation T5023 5023 Setting Emulation menu LF LF LF 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 9600 SW 7 Reserved Interface menu Protocol DTR Emulation menu Multi Part OFF Emulation menu Typeface DQ Roman Sans Serif DQ Sans Serif lt is normally not necessary to set the
181. oftware is started and generates the acknowledgment ESC BEL L after 500ms min for synchronization Special features of the RS 232 interface The data transfer rate on the RS 232 interface is normally set to 9 600 baud In the print mode the maximum rate is 19 200 baud A temporary increase in the transfer rate is possible in the load mode to reduce the load times Parameters n 0 Transfer rate unchanged n 1 Baud rate 2 400 n 2 Baud rate 4 800 n 3 Baud rate 9 600 n 4 Baud rate 19 200 n 5 Baud rate 38 400 n 6 Baud rate 57 600 n 7 Baud rate 115 200 214 T5023 5023 Programming Guide Loadable Firmware Character Generators Load Functions General Load Functions General The firmware and character generators can be transferred to the 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 national character generator The following functions are available in load mode Request module IDs Load character generator I Load character generator Il Load firmware Enable printer T5023 5023 Programming Guide 275 Load Functions General Sequence of a Load Process Loadable Firmware Character Genera The following figure illustrates the sequence of a load process The order must be maintained Host Switch to load function Request module identifier
182. ogramming Guide Print modes 119 Non executable commands Standard commands Non executable commands This section describes the commands which cannot be executed by the docu ment printer because of specific requirements Such commands are ignored therefore they do not cause an error Command fmn Signal tone Switching half rate printing on off Selecting the print colour Signal tone ASCII character Decimal Hexadecimal Function BEL normally activates the acoustic signal of a printer The document printer has no bleeper 120 T5023 5023 Programming Guide Standard commands Non executable commands Switching half rate printing on off ESC S n ASCII character 27 115 n Decimal 1B 73 n Hexadecimal Function ESC s 1 normally switches to half rate printing ESC s 0 cancels this mode again This command is not relevant for the document printer Selecting the print colour n ASCII character n Decimal n Hexadecimal 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 black 1 red 2 blue With the document printer black is always the standard colour T5023 5023 Programming Guide 121 Non executable commands Standard commands 122 T5023 5023 Programming Guide Character set commands With the help of the following control commands it is possible to change bet ween the d
183. ogramming Guide 367 Description of the physical interface Appendix DTR and RTS are deactivated 1 When the status changes from ONLINE to STOP stop key pressed or printer error appears 2 When the available input buffer area is less than 512 bytes By the activated signal CTS the connected device signals to the printer to send data Software handshake with XON XOFF protocol In the XON XOFF protocol the printer signals to the connected device the rea diness to receive data by sending an X ON X OFF signals that the printer is not ready to receive data X ON is transmitted When the printer has been switched on power on When the status changes from STOP to ONLINE When the available input buffer area of the printer accept new data at least 1 kByte free input buffer after having been disabled less than 512 byte free input buffer X OFF is transmitted 1 When the status changes from ONLINE to STOP stop key or printer error 2 When the available input buffer area is less than 512 bytes By the activated signal CTS the connected device signals to the printer to send data Software 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 368 T5023 5023 Programming Guide Appendix Description of the physical interface Interface data serial interface Signal level RS
184. oint can also be equipped with a magnetic stripe reader MSR The manual document feed is supported by an automatic document adjustment on the right hand side The positioning of the print characters can be programmed for any horizontal or vertical position reasured from document edge For document positioning the smallest basic step is 1 180 inch The maximum paper rate is approx 70 lines per second for documents and passbooks If a document is present the printer automatically initiates an insert When the first 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 printing point the user will be requested to insert a sheet by means of the flashing green PAPER LED on the operating pa nel For application programming the selection of the horizontal leading edge is op tional The difference is that leading blanks must be ignored for horizontal posi tioning on a document or passbook with the horizontal leading edge on the left while leading blanks corresponding to the physical width of the printing unit and document must be taken into account in the case of the horizontal leading edge on the right As an alternative to the use of leading spaces the left margin can be set as required ESC I n Where precise accuracy of positioning is required the desired print position should be reached
185. onics printer If the parameter centronics is set to printer the Centronics interface can 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 compatibility mode and ECP mode of the Centronics interface Centronics modes Compatibility mode and ECP mode correspond to the norm IEEE P1284 D2 Type of connector The interface of the document printer have a 25 pin D SUB plug at the host side and a 36 pin Centronics plug at the printer side Receive buffer The size of the receive buffer is 8 kByte T5023 5023 Programming Guide 375 Description of the physical interface Appendix Cable connection Pin No Host Pin No Printer Signal description 1284 A 1284 B 25 pin 36 pin D SUB plug Centronics plug 19 22 23 Signal Ground Data 3 Data 4 Signal Ground Busy nFault 28 Signal Ground PError Select nAck 376 T5023 5023 Programming Guide Appendix Description of the physical interface Pin No Host Pin No Printer Signal description 1284 A 1284 B 25 pin 36 pin D SUB plug Centronics plug 25 30 Signal Ground nAutoFd nSelectin ninit ptf hog Ground O Pt Chassis Ground P Peripherial Logic High 5V 153835 Not definea T5023 5023 Programming Guide 377 Description of the physical interface Appendix
186. onsecutively The serial interface is also known under the names V 24 or RS 232 C Advantages possibility of checking correct transfer by means of a parity check of the received data word also a considerably longer data cable than for the parallel interface can be used Serifs 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 Bookman Palatino Times Examples of fonts without serifs Helvetica Avant Garde Universe Syntax General the teaching on sentence structure in the language The syntax of a programming language describes the structure of the language determined by means of the rules of grammar without considering the meaning Semantics or sense Typography Description of the arrangement of a printed paper including the selection of the type font type size and distribution of space 386 T5023 5023 Programming Guide Index B Backspace 53 Basic character set 25 126 Basic character table 25 BEL 120 Bold print off 777 Bold print ON 110 BS 53 C CAN 54 Cancel 54 Cancelling a line 54 Carriage return 51 Definition of a draft 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 character 134
187. ontrol code table is occupied by control codes hex 00 to 1F 126 T5023 5023 Programming Guide Character set commands Country versions national 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 versions are available decimal hexadecimal country variants USA France Germany Great Britain Denmark 1 sweden Italy Spain 1 Japan Norway Denmark 2 Spain 2 Latin America n 0 1 2 3 4 5 6 7 8 9 Se t te te te w OE rh t t tt pa ps ps NH oO The country versions also apply for italic characters in the upper char i acter table T5023 5023 Programming Guide U n n n an an U a n an an n M m mne OHE Saw 92 93 5C 5D a aA A M A ORA A ON A Oe Ae De pa n M be D m Ch to mm 94 SE O O Ch C gt gt h gt gt D 33 96 60 123 124 125 7C 7D 7B RS RR e l fi A or M a tH or A m2 OO B O e On On Pe fe wes De fie pe er OD Me Character set selection coc ce t tect tk ae Character set selection Character set commands Area with italic characters or graphics and special characters Character codes decimal Current Graphics 160 255 italic ESC t 0 character set character set The italic character area for the italic character set lies in the upper character ta ble It contains all the b
188. operating panel parameters in the 4722 emulation Fixed initialisation parameters 4722 emulation Parameters T5023 5023 parameter in the 4722 emulation Line 2 6 LPI 10 CPI Normal USA Column 1 10 CPI Left Top of form position Char density Char width Country Left edge Ref edge T5023 5023 Programming Guide 347 IBM Emulations Appendix IBM Proprinter XL24 Emulation General The selection of the emulation is done using menu item Type Prop XL24 This emulation can be used with all interfaces 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 the emulation parameters are identical with the Epson ANSI emulation Initialisation parameters All parameters that can be set in the relevant emulation menu are taken into consideration during the initialisation 348 T5023 5023 Programming Guide Appendix IBM Emulations Range of Commands for the ProprinterXL24 and 4722 Summary of the command sequences T5023 Interpreter for 4722 IBM ee a Sept x ier ee 8 Backspace 19 Horizontal tabulation a ee X oe x fx s Line feed at 1 6 x X T Vertical tabulation xX X fo Sheet ejection page feed X 2 6 from upper sheet margin adjustable with XL24 CR adjustable with LF Carriage Return OE Swi
189. or 24 and the horizontal dot spacing 60 to 360 dots per inch The production of dot graphics is in principle the connecting of dot data over se veral lines The line spacing can be set in such a way that no spaces arise bet ween the lines in a picture T5023 5023 Programming Guide 21 Document printer specifications Programming interface General Document printer specifications Business procedures or transactions in a financial institution involve a series of manual and program activities e g the insertion and removal of documents and passbooks or the entry of deposits and withdrawals bank code and account number These processes are supported by special banking periphery and the appropriate programs The printer processing includes for example voucher prints on documents 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 are available for programming positioning commands control signals control of the MSR functions special functions The analysis of the document printer responses which provide information about the present status of the printer or contain data on the program is also re levant here status of the printer after the appearance of exceptional conditions like errors operating interruptions or operating panel entries statu
190. or CSI sequences The program can be switched to different fontpages by ESC se i quences You can find the available codepages in the appendix T5023 5023 Programming Guide 25 Character tables Programming interface General National character sets By selecting a national character set characters used in other languages are ad ditionally available to the user The selection of national character sets results via an ESC sequence or via the operating panel of the printer These characters replace in each case the corresponding encrypted characters in the basic cha racter table Examples Code Basic Italy Japan Norway C naracier Characters defined by the user in character tables Symbols stored in character tables are printed on the basis of the respective character code and the assigned dot pattern Example Transfer Design to dot grid By means of certain ESC sequences any dot patterns can be defined anew and assigned to a code of the basic character table For example a new alphabet symbols specific to a subject or individual graphics characters can thus be pro duced and printed instead of the standard character in each case The definition of such characters specific to the user will be dealt with in a sepa rate section In principle the production of a new character or symbol is the pro duction of a graphics pattern for which the printer needs exact details as to 26 T5023 5023 Programming Guide
191. ormal END Result normal double impact normal T5023 5023 Programming Guide 113 Print modes Standard commands Switching underlining on off ESC n ASCII character 27 45 n Decimal 1B 2D n Hexadecimal Function Switching on underlining After setting ESC 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 BEGIN PRINT highlighting char 2 char 1 PRINT with underlining PRINT char 27 7 char PRINTLF is possible END Result Highlighting with underlining is possible 114 T5023 5023 Programming Guide Standard commands Print modes Switching on superscript subscript ESC S n ASCII character 27 83 n Decimal 1B 53 n Hexadecimal Function Switching on superscript After setting ESC S 0 all subsequent print characters are printed reduced to half the size and displaced upwards for example in mathematical or che mical formulas Switching on subscript After setting ESC S 1 all subsequent print characters are printed reduced to half the size and displaced downwards for example in mathematical or chemical formulas If superscript or subscript characters are underlined the under lining appears in the normal position The underlining must be swit ched off beforehand if necessary ESC n
192. pi National Variants 305 Character Sets CP15_ 866 FNT CP15_ 869 FNT CP15THAI FNT CP151250 FNT CP151251 FNT CP151252 FNT CP151253 FNT CP151254 FNT CP151255 FNT CP151256 FNT CP151257 FNT CP15ISO2 FNT 306 Code Table Code Page 866 Latin Cyrillic Eurobanking limited Code Page 869 Latin Greek Eurobanking limited Thailand character set with customer specific national assignment Eurobanking limited Windows Code Page 1250 Latin 2 Eurobanking limited Windows Code Page 1251 Cyrillic Eurobanking limited Windows Code Page 1252 Latin 1 Eurobanking limited Windows Code Page 1253 Greek Eurobanking limited Windows Code Page 1254 Latin 5 Eurobanking limited Windows Code Page 1255 Hebrew Eurobanking limited Windows Code Page 1256 Arabic Eurobanking limited Windows Code Page 1257 Baltic Rim Eurobanking limited ISO 8859 2 East Europe Eurobanking limited T5023 5023 Programming Guide Font Type DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif Script DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ LQ Roman LQ Sans Serif OCR A B DQ L
193. pplication NCES assirian boncanreaed inea En AEE NEEE SAANANE EEA 11 Programming interface General cccccssssseeeessssssseeeeeeeceenseeeseeees 13 EnCrypUons COdES soieaycr based ia snecetuceredestiaacd advesiutieanenensbecnendonodacbarnstnaneneneiences 13 PS WC OG e E E EE EE 14 Activating the document printer functions cccsseeeeeeeeeeeeeeeeeeeees 16 PN OIGO O arro E E E E EEEE 17 PARTU orere EE O 17 PON ere A E E EE E AE 18 Font size character density ccccccssseeeeeeaeeeeeeeeeeeeseeeeeeeeeesaeeeees 19 PIONIGNUNO TOX errien anier RAT AEREE TEREE 21 PaJodLaV OU ee E A 23 Character WANS S cirian aaa REE sR RER E eA AA ARER REREN 25 National character sets cccccsssecccseseeceeseeceeeseeceeseeseaseeessnseesseags 26 Characters defined by the user in character tables 0c000 26 ONG Sine AEE AEA IE A AIAT TE E 27 Document printer specifications cccesecececeeeeceeeeeeeeeeeeneeeeeseaeessaaeeeens 28 Document ORIN TAG eransi RE EEA 29 Magnetic stripe processing cscccceeseecceseeeceseeeceeseecseneeessaeeessaeees 30 Special features of the document processing seeseeeeneeeeeeeees 31 T5023 5023 Programming Guide Contents Standard COMMAS scssiscraz se casecececcancdcassacdec ce sanceesecuvecensveacess nnmnnn 33 Notes about command CESCLIPTION ccccsseceeeeeeeeeeceeeeeeeeeeeeeeeeeneeeeeees 33 Description Components sisina a a a 33 Coding
194. qualities and fonts and the graphic signs are in the resident menory of the printer After turn off the printer this memory is not lost In addition the user can define his own characters For this an appropriate dot pattern must be developed encrypted via a sequence of numbers and trans ferred to the memory of the printer by means of the control code ESC amp A char acter code between hex 00 and hex 7F decimal 0 to 127 is assigned to a character defined by the user After changing with ESC from the graphic signs in the resident memory to the user defined graphic signs this signs can be used with the defined code Example A character defined by the user is assigned to the ASCII code 65 capital letter A of the basic character set The character sequence AAA is printed before and after switching to the user defined character set BEGIN PRINTLF AAA PRINT char 27 char 1 PRINTLF AAA END Result AAA TTT T5023 5023 Programming Guide 131 Character set selection Character set commands The following diagram explains the selection of the different character sets Character codes ESC 1 decimal a 0 31 Control codes current character set italics ESC 5 Control codes Control codes character set defined by the user current character set ROM RAM ESC 0 Control codes character set defined by the user italics Status after s
195. quence to the respective CSI command CSI F STX ETX Start of text 02 ASCII for example start data from OCR reader End of text 03 ASCII for example end of a message from the printer Reaction to incorrect parameters Normally an additional command is ignored if non decimal parameters or para meters 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 the appropriate command as appropriate Responses Responses of the document printer can be grouped as follows Requested data response Global printer status GPS Special printer message SPM 176 T5023 5023 Programming Guide Additional commands Printer Structure of the additional commands Requested data responses The basic characteristics of requested data responses are that for each respon se a requesting control command from the printer control was recognized for example request read the MSR track response MSR data or error identifi cation These control commands are processed in series with the other print control commands The timing of the response cannot therefore be exactly specified It depends on internal runtimes and the mechanical execution times of the printer Global printer status special printer messages The data of the global printer status GPS describes a stat
196. rate control cycles in the program T5023 5023 Programming Guide 31 Document printer specifications Programming interface General 32 T5023 5023 Programming Guide Standard commands This chapter describes all Epson compatible commands ESC sequences Commands for changing character sets see Character set commands and commands with which graphics can be created see Graphics commands are not included here Special commands CSI sequences for document proces sing or for processing MSR data are described in the chapter Additional com mands Notes about command description The following first explains how the respective ESC sequence for a command is described and of which components this description consists An explanation re garding 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 transmitted All notes given in this section also apply for the Character set commands chap ter and Graphics commands chapter and with variations also for the Additional commands chapter Description components The description of the standard commands is divided into the following compon ents Command name with ASCII coding in hexadecimal and decimal encryption Description of function and usage Additional notes on requirements options and connections wi
197. re Character Ge Exiting the Load Function BEL ASCII characters 7 Decimal 07 Hexadecimal Function This command is used to exit the 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 firmware returns to the operation with the interface parameters which can be set via the operating panel 280 T5023 5023 Programming Guide Loadable Firmware Character Generators ESCAPE Sequences Bootstrap Request Module ID Data ID ASCII characters Decimal Hexadecimal Function This command is used to request the data ID All data modules loaded are reported T5023 5023 Programming Guide 281 ESCAPE Sequences Bootstrap Loader Loadable Firmware Character Ge Structure of the Data ID The response always begins with ESC I D Length Contents Meaning ESC ESCAPE Information Data ID Depending on the number of modules loaded the ID then contains 1 to 4 entries Each entry has a fixed length and ends with a colon except for the last entry which ends with a semicolon The following table shows the structure of an entry Length Contents Meaning Identifier MOD Separator Release date with the format YYMMDD 941101 for 1 11 94 Separator Version ID of the release 0105 for V01 05 Separator Module name e g 5023 STD CP15_ 437 Separator point
198. result of these operation interruptions 224 T5023 5023 Programming Guide Additional commands Printer Status and error messages ERROR This status signals an operating termination It can only be cleared by means of manual intervention on the printer All jobs not carried out up to the termination are cancelled There are two groups of errors Hardware errors The most common cause of the error status is a hardware error If this error is only restricted to a subfunction of the printer for example MSR it can be ignored by pressing the STOP key The printing unit is then able to work until an attempt is made to use this defective subfunction again Application errors Errors of the documents must here be seen as special cases as such errors are caused by the user himself and can also be eliminated 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 List of error messages in the appendix of this manual Break function The document printer reacts to a break in the printer interface with the transfer of a global printer status and the response Printing unit parameters on the basis of which the key information on the printer configuration can be recognized see description CSI n n8 z If the global printer status is ONLINE the receive buffer is als
199. rnally by the document printer After the output of a MSR command any data still in the print buffer is printed If you are interested in further recording modes please contact your i The MSR device supports the recording modes of DIN and IBM Tally branch office T5023 5023 Programming Guide 207 Controlling the MSR MICR functions Additional commands Printer Position and measurements for MSR magnetic stripes 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 magnetic stripe are fixed according to DIN 32744 The following specifications are in mm Upright fold book magnetic stripe for DIN IBM format Upright fold Level area Mag etic stripe 208 T5023 5023 Programming Guide Additional commands Printer Controlling the MSR MICR functions Horizontal fold book Horizontal fold Level area Maghetic stripe T5023 5023 Programming Guide 209 Controlling the MSR MICR functions Additional commands Printer Parameter block MSR CSI n15 5 Name ESC n13 ASCII character 27 91 n1 Decimal 1B 5B n1 Hexadecimal Parameter ni number of write repetitions 0 to 2 n2 number of read repetitions 0 to 2 n3 identifier for the write read format number of the recording format n4 vertical distance from the
200. roportional tupe Elongated print With elongated print each character is represented in double width It is possi ble for example to highlight page headings in a text Example standard print standard print T5023 5023 Programming Guide 19 Print effects Programming interface General 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 print Example standard print condensed print standard print 20 T5023 5023 Programming Guide Programming interface General Print effects Highlighting text The following print functions of the document printer can be influenced by corre sponding ESC sequences Double impact print bold print Underlining Superscript subscript Double Superscript Double impact print bold print With double impact print vertical bold print the print head goes over each line twice The paper is transported 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 twice whereby the second dot is displaced slightly to the right of the first dot prin ted In double impact print the space between the dots is filled up in horizontal bold print the lines of a character are intensified Bold and double impact print can be com
201. rs defined by the user Storage of characters defined by the user The characters defined by the user are stored in the RAM of the printer Only one character set can be loaded When switching off the printer the set of characters defined by the user is deleted Therefore it must be possible at any time to re load 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 character set defined by the user is selected To print the characters the print quality draft or LQ appropriate to the character definition and the appropriate print mode proportional spacing or superscript subscript must also be activated For example if draft characters were defined i e the draft print quality was ac tivated before the character definition using ESC amp the draft print quality must be switched on If you change to a different print quality or print mode the user defined graphics can not be used T5023 5023 Programming Guide 145 Notes on the use of user defined characters Character set commands Print effects of characters defined by the user For characters defined by the user the same print effects are available as for normal characters bold print double impact print condensed print elongated print italic print underlining character sizes 10 12 15 cpi
202. s for different i tasks can be found in the chapter Application examples printable areas in passbooks because of the central fold or because of the safety distance from the horizontal or vertical leading edges of a do cument Ignoring this restriction can lead to poor print quality or to the destruction of documents The restrictions when printing documents must be observed by the user The appendix Paper specification con tains all specifications as to which areas can or may not be printed de pending on the type of document The corresponding millimetre specifications must be taken into consideration when setting the para meters of the respective additional commands Certain restrictions apply when printing documents for example non T5023 5023 Programming Guide 173 Structure of the additional commands Additional commands Printer Structure of the additional commands We begin with an explanation of the component parts used in the additional com mands and responses General Additional commands for controlling document and passbook processing and responses have in general the following syntactic structure CSI P1 5 Pn F Description Meaning ValuoiValuerenge Remarks Control sequence ASCII Start value introducer Parameter ASCII Optional Parameter separator ASCII if number of parameters gt 1 then compulsory Intermediate ASCII character Final character AS
203. s increased step by step BEGIN SET N REPEAT SET N N 2 PRINT char 27 char N PRINTELE Spacing for n egual to y N UNTIL N 9 END Result Spacing for n equal to 3 Spacing for n equali to Spacing for Spacing for n equal T5023 5023 Programming Guide 91 Print quality and character size Standard commands Print quality and character size This section describes the commands for setting the print quality and the character size Command ESC x n Switching over the print quality Draft LQ ESC k n Selecting the LQ type font ESC p n Switching proportional spacing on off ESC P Selecting the character size10 cpi ESC M Selecting the character size12 cpi ESC g Selecting the character size15 cpi mikro print Notes on the print quality i According to the application one of the two following print quality set tings can be selected Draft print quality This print quality is especially suited for quick draft printing The characters 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 characters are printed with a horizontal density of 180 print dots per inch In comparison to the draft print quality the characters contain more print dots From this on the one hand a neater print face results on the other hand a lower print rate
204. s signals of the printer which can appropriately be acted upon in the program receiving requested data 28 T5023 5023 Programming Guide Programming interface General Document printer specifications Document printing For documents DIN A4 sheets standard forms or passbooks the logical struc ture of a document must be considered Example passbook constants Name Address Line No Withdrawal Deposit Balan Signature s 1 Page heading area is not printed during a passbook transaction 2 Area with lines for logging deposits and withdrawals 3 Last printable line 4 Footer area is not printed during a passbook transaction T5023 5023 Programming Guide 29 Document printer specifications Programming interface General Magnetic stripe processing The device called MSR is used for processing magnetic stripes on passbooks The MSR equipment allows an automatic reading and updating of data in en crypted form In what form the appropriate data is encrypted on a MSR magnetic stripe de pends on the respective recording mode DIN IBM Example magnetic stripe on the back of a passbook 1 Inside of passbook 2 Back of passbook 3 Mangetic stripe Here the magnetic stripe could contain the following information Next or last line to be printed in the passbook Account number of the customer Balance credit of the customer Via the reading of the magnetic stripe the entry of th
205. sages When this buffer is full messages subse quently generated are ignored cleared For this reason care must be taken in the application program that the messages are loaded and evaluated at appropriate intervals i The internal message buffer of the document printer is limited to ap T5023 5023 Programming Guide 223 Status and error messages Additional commands Printer Notes on the printer status ONLINE This status exists after an error free initializing operation In this status the re ceiving channel is open The printer is ready to receive and execute jobs There is a response only with requested data or special printer messages which have no influence on the current processing of print data STOP This status signals an operation interruption The following 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 new form whereby at this time no sheet is inserted inserting a new sheet restores the ONLINE status In the first two cases the computer is only informed of the status change via a global printer status GPS For document request the reason for the status change is identified more exactly via a special printer message SPM In each case the STOP status can only be cleared by means of manual inter vention on the printer No data is lost as a
206. sbook Document Printer Printer One byte mode ESC 0 q ao t cor fe on fe Ge he Oi ini dw bi Mb 1 mM F 7 aim Mi Mi em ele wo oD T5023 5023 Programming Guide 335 Chinese Characters in the Passbook Document Printer Appendix Printer Two byte mode GB xxxx encoding ESC n qn 1 100 cl E a SE ie lt Ee 5o ie gt Pe S O OO O oo c 2 Byte Codes to A a A 4a Sk Woo Da aR o gt Pe ten ol ms ae ex Se at oy a om oy ls i See a i as my lt Z ct mw mR 4 T i N Ga A K QON AOL GLWA E 9 1 2 3 A 5 6 Fi 8 g A B C D E F D J a a a I E mh D L 0 woo D 336 T5023 5023 Programming Guide Appendix BIG 5 encoding Chinese Characters in the Passbook ESC n qn 101 200 Code 0 9 1 2 3 A 5 G 8 g A B C D E F A140 A24E A24F A258 A259 A261 A262 A2AE A2AF A2B8 A2B9 A2C2 A2C3 A2CE A2CF A2E8 273 45 6 7 8 ABC DE F CUE be aE 3 f EE Ei HERRE RENN T BO j we e o Se O oe S O OF amp o T Oe A m H Dio Ma oO J oy in Hos gt De oa D d hart ct i a B CL i N Hi ob ll fy of H H 3 a z z a j gt a tt tt B TA Ly Symbols Various special characters Chinese characters Graphic characters Arabian digits Roman digits Hangzhou digits Latin capital letter T5023 5023 Programming Guid
207. se quences in the program The OCR A OCR B and ISO 8859 fonts as well as all special non Epson compatible fonts can only be selected via CSI sequences The character fonts thus selected are treated like normal LQ type fonts this means that all standard commands print quality character size print type are also effective for these fonts Example fonts in Letter Quality This is the type font Draft This is the type font Roman This is the type font Sans Serif 0l23456789fdY This is OCR A 6125456789 This is OCR B 18 T5023 5023 Programming Guide Programming interface General Print effects Font size character density The width of a printed character is expressed in characters per inch cpi and is often called character density for example 10 characters per inch 10 cpi The document printer can print in the character widths 10 12 and 15 pitch Each individual character is then the same width Example character width 10 cpi character width 12 col character width 15 cpi 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 takes up a different amount of space ac cording to its size for example l takes up less space than B or t less than g Texts in proportional type are normally shorter than in normal print Example Text in normal print Text in p
208. sing the VALID key The service information will disappear after some time Cause Possible action Service information No Meaning PAPER Document too short LENGTH Use a longer document PAPER Paper jam paper blocked paper can 00 10 JAM not be ejected Check paper transport paths remove remainder of paper PAPER Print job extends over right hand pa WIDENESS _ per edge Feed in larger paper i Some error messages contain numerical codes with additional PARITY Serial interface Parity Error oor Check settings of printer or system OVERRUN Serial interface Parity Error EARO Check settings of printer or system FRAMING Serial interface serial interface Over ERROR run Error Check handshake protocol printer or system check cable BREAK Serial interface Switching system ON OFF push pull interface cable produced by the system driver T5023 5023 Programming Guide 361 Error messages Appendix Cause Possible action Service information No Meaning WRONG The Interface type set in the IF TYPE parameter menu cannot be ac tivated Set another interface type check whether the correct op tional interface board is instal led check whether the optional interface board is correctly in serted WRONG Incorrect control sequence or The printer has loaded ORDER character which cannot be an emulation A howe printed ver the received data Is Check the system driver load 10 27 emulation B different e
209. spacing cccceeceeceeeeeeeeeeeeseeeeeseeeesaaes 60 Determining n 60 inch line spacing ccccseeeeeceeeeeeeeeeeeeneeeeenaueeesaes 61 Determining n 360 inch line spacing ccceeceeceeceecaeeeeeneeeessaeeeeanes 63 Sheet ejection COMMANAS cccccccseescccceeeeceeseeeeeeeseueeeesseegeeeesaeeeeesees 64 Sheet ejection ennn a a 65 Determining the document length at n lineS 0nnnn0nnnannnannnannnnnnnnnn 66 Determining the document length at n INCHES ccceeceeeeeeeeeeeeee 67 VEliCal DHL COMMU O noticcantnciasdicunistetcensianddimataalelycunsicacuonumetuiuatabeancnens 68 Setting the bottom MAGI cccccccescceeceecceeeeeecccseeeeseceseeessoeeerenss 69 FUNCION sitet rcheercnatataratubina ss vehaindee A E 69 Deleting the bottom margin ccccceccceeseeeeeecseeeeeeeceeeeeeesaeeeessaaaeees 70 Determining deleting vertical tabs Channel 0 ccccesseeeeeeeees 71 Determining deleting vertical tabs for any channel 000 72 Selecting a vertical tab channel ccecccceesseeeeeecaeeeeeeeeeeeeeeeseeeeees 73 VEICAl TADUIAON zuenetan see A a 73 T5023 5023 Programming Guide Contents Faber COMMOL arranca T E 74 FIOLZON TAN PHIM GOMIWON srine a a 75 SEUNG the ISM Margi ansiar E e 77 SEUNG WIS HIQMU MARGIN irisaren iena cae dsutuanieacdslauansacadecates 80 Setting the text alignment cecccccseesececeesseeeecseeeeeeeseeseeeesseseeeeeees 82 Setting
210. ss a left margin was set using the standard command ESC I n see the next subsection Position 0 after ESC n If no left margin was set the left character box limit of the first pos sible print character lies on the left edge of the document Left edge of document gt Print position 0 T5023 5023 Programming Guide 183 Important notes on document processing Additional commands Printer With the horizontal leading edge on the right the right character box limit of the 90th character with character spacing of 10 characters inch lies on the right edge of the document This means that print position 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 character spacing of 12 characters inch print position 107 for the 108th character lies 1 12 inch to the left of the right edge of the document accordingly Right edge of document Print position 89 1 Print position 107 gt ule Proceeding from these specifications print position 0 can be calculated by coun ting backwards The printing unit width of 90 10 inch must always be considered 184 T5023 5023 Programming Guide Additional commands Printer Important notes on document processing Position 0 after ESC n The horizontal print position 0 changes if a left margin was set by means of the
211. standard command ESC I n In this case the left edge horizontal print posi tion 0 is displaced to the right by the value n This must be taken into conside ration when calculating the actual print position 0 according to the following table printing unit width 90 10 inch Logical Leftmargin Position 0 leading set edge On left Left edge of document On left Left edge of document n On right Right edge of document printing unit width On right Right edge of document printing unit width n Vertical positioning The vertical 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 an area from 10 60 inch line 1 to 80 60 inch line 8 via the operating panel The default setting is 30 60 inch line 3 with a line reference of 10 60 inch This position is valid after a document ejec tion FF but can be overwritten by means of positioning commands at any time T5023 5023 Programming Guide 185 Important notes on document processing Additional commands Printer Vertical print position 0 For the absolute vertical positioning of the print head a distinction must be made between the leading edges upper edge of document top reference and lower edge of document bottom reference Two additional commands CSI n p ab solute vertical positioning from the upper ed
212. t Setting left margin PRINTLF margin 9 columns elongated PRINT C hari 2 7 i1 char Clog lt Left margin PRINTLF margin ignored s 2ROR PRINTLF not printed char 27 1 char 10 printed END T5023 5023 Programming Guide Standard commands Horizontal print control Result reduced in size Left margin 6 columns Left margin 7 columns Left margin 8 columns Left margin 9 columns Left margin 9 columns 12 pitch oo a O eae a ei A ar ac a eT ES i ao a ce i Ce e papm Lao Le Result original size Left margin 6 columns Left margin 7 columns Left margin 8 columns Left margin 939 columns Left margin columns 12 pitch Li ae a E Aati peerey Sosa T5023 5023 Programming Guide 19 Horizontal print control Standard commands Setting the right margin ESC Q n ASCII character 27 81 n Decimal 1B 51 n Hexadecimal Function ESC Q n influences the last horizontal print position that is to say a right mar gin can be set The right margin is determined by means of the value of n and the current valid character width A value between 0 and 255 can be selected for n The n column will then not be printed Beginning of right margin via ESC Q x x between 0 and 255 lt Right margin Last character position Print position 0 left edge of document If a text line exceeds the right margin a carriage return with a line feed is automati cal
213. ta ID is provided in the ESC D acknowledgment T5023 5023 Programming Guide 285 Loading the Firmware Loadable Firmware Character Genera Loading the Firmware Indicate Ready to load ESC M O D n1 n2 n3 ASCII chars 27 77 79 68 n1 n2 n3 Decimal 1B 4D 4F 44 n1 n2 n3 Hexadecimal Function This command is used to inform the bootstrap loader that a new firmware should be loaded All activities in the printer will be stopped and old data will be deleted Then the printer s readiness to load is indicated to the host The number of bytes to be loaded is also transferred The following formula is used to calculate the number of bytes to be transferred Number n1 256 n2 65536 n3 Ready to load is indicated by sending the sequence ESC M O D to the host Loading the Firmware ASCII chars Decimal Hexadecimal Function MOD is a part of the file and may not be transferred again before the data Data is transferred after the character sequence MOD It is not allowed to load other data than data with the file extension MOD A checksum is placed at the end of the file After the load process this checksum can be used to verify that the load process was successful If the data was transferred without errors the relevant data ID is provided in the ESC I D acknowledgment 286 T5023 5023 Programming Guide Loadable Firmware Character Generators Length of the Transfer Length of the Transfer Be
214. tching on elongated printing for one line X Switched off Switched off a Switching on condensed ten Switching on printer lan logically Online a ee ia al printing lal logically Offline ae ignored a a 18 xx o e 7F xX o Switching off printer Switching off elongated printing Delete line Cancel ignor like NULL T5023 5023 Programming Guide 349 IBM Emulations ESC 0 27 48 1B 30 Select 1 8 line distance ine di ESC 1 27 49 1B 31 Select 7 72 line x distance ESC 2 27 50 1B 32 Select 1 6 variable line X distance ESC A ESC 3 n 2751n 1B 33n X ESC 4 27 52 1B 34 ESC 5 n 27 53 1B 35 ESC 6 27 54 1B 36 Character set 2 X Extended ESC 7 27 55 1B 37 Character set 1 X Standard ESC A n 27 65 n 1B41n Select n 72 text line X spacing ESC B NUL 27 66 0 1B 42 00 Define delete vertical x tabulators ESC C NUL n 27 670n 1B 4300n Define page length in X inch document journal ESC C n 27 67n 1B 43 n Define page length in X lines document journal ESC D NUL 1B 44 00 Define delete X horizontal tabulators ESCE 27 69 1B 45 Switching on bold X printing ESC F 27 70 1B 46 Switching off bold X printing ESC G 27 71 1B 47 Print quality NLQ ON ESC H 27 72 1B 48 Print quality NLQ OFF ESC I n 27 73 N 1B 49n Font selection text X near letter download ESC J n 2774n 1B4An n 216 line feed ESC K n m 2775nm 1B4Bnm Switching on graphics X mode single density ESC L n
215. tep is only relevant if left leading edge mode is set as default 3 Reading the magnetic stripe MSR data Command Remarks CSI r If the passbook is not inserted and drawn in this command initiates a document request READY LED on the operating panel flashes T5023 5023 Programming Guide 267 Passbook processing with MSR Application examples 4 Waiting for response read MSR and evaluation of the MSR data Response Parameters Remarks Note CSI n1 n2 n3 n4 r STX read data ETX n1 number of reading attempts n2 reading threshold n3 reading block number n4 reading error 0 without error When the execution of the command CSI r is without error the read data contains the value for the next free posting line 6 see step 7 The boundary characters STX hex 02 and ETX hex 03 are also transferred 5 Updating the magnetic stripe MSR data Command Parameter Remarks 268 CSI r STX write data ETX New free posting line 7 account number unchanged and new passbook contents balance depending on deposit or withdrawal amount The write data is enclosed between STX hex 02 and ETX hex 03 This MSR write command produces an acknowledgement in the form of CSI n1 n2 r which is not evaluated in this program example n1 number of writing attempts needed n2 error identification for read after write check T5023 5023 Programming Guide Appli
216. ter Graphics commands This chapter describes commands used to print drawings diagrams or pictures as dot graphics The basic principle is to encrypt the individual picture dots as a series of numbers and to transfer them to the printer T5023 5023 Programming Guide 3 Contents of the manual Preface Chapter Additional commands This chapter explains special control commands for document processing or for processing ZeKoSa data An important application area for the commands des cribed here is the processing of passbooks This also contains important infor mation on processing documents using horizontal and vertical print positioning Chapter Application examples A small program example of command functions normally belongs to the com mand descriptions in the chapters Standard commands Character set com mands etc The chapter Application examples uses more complex operations to explain the use of specific commands in connection with Text 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 Loadable Firmware Character Generators Firmware and character generators of the document printer are stored in a pro grammable memory with FLASH technology The chapter Loadable Firmware Character Generators describes the sequence of load proc
217. th other com mands Normally each command description is concluded with a short example through which the usage and effect of the command is demonstrated T5023 5023 Programming Guide 33 Notes about command description Standard commands Example of a formal command description command syntax n ASCII character n Decimal n Hexadecimal Command name ESC sequence Decimal encryption according to ASCII table Hexadecimal encryption according to ASCII table Coding of decimal command parameters All command parameters n or n1 n2 etc in the ESC sequences of the Epson compatible commands must be transferred to the document printer in binary co ded form and not as ASCII characters Several parameters are simply transfer red consecutively without separation characters e g space or comma The binary coding of a paramater 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 the first line for example n or n1 n2 n3 In the subsequent lines with the hexadecimal or decimal encryption of the command the parameter descriptions n n1 etc are repeated without brackets as variables for concrete values Which values a parameter can have are specified in the subsequent function descripti on 34 T5023 5023 Programming Guide Standard commands Notes about com
218. th proportional spacing setting the charac ter width is unnecessary ESC 2 1 6 inch This command is not actually necessary for the example as 1 6 inch line spacing is the de fault value Determining the document length Command Parameter Remarks Determining the left margin Command Parameter ESC C n n 72 number of lines With line spacing of 1 6 inch and 72 lines a document length of 12 inches results This corresponds to the default value of the docu ment printer Therefore this program step could also be omitted ESC n n 12 position 12 with 10 cpi default 0 T5023 5023 Programming Guide 243 Processing of a blank form Application examples 244 Determining the right margin Command ESC Q n Parameter n 72 position 72 with 10 cpi Remarks The default value is 90 With a setting right margin position 72 printing is possible up to position 71 Determining the vertical tabs Command ESC B n1 n2 n3 n4 n5 NUL Parameters ni 8 first print line n2 16 reference line n3 20 start of text 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 must be used c channel number Deleting the default values for horizontal tabs Command ESC D NUL Remarks After switching on or initializing the printer
219. the ONLINE PAPER status and the normal MSR acknowled gement is sent to the application together with the error code 8 max admissible paper width exceeded The application controls the subsequent processing of the document 218 T5023 5023 Programming Guide Additional commands Printer Controlling the MSR MICR functions Example sequence for an MICR reader Status NO_PAPER 1 Switch MSR to magnetic ink character recognition see MSR parameter without repeating the read process and with 90mm 638 180 inches smal ler than default value max admissible cheque width Parameter 0 0 10 638 0 IB 3B 3B 3b ol 30 2B 36 35 36 326 2k 72 1B Start magnetic ink character recognition 5B A2 I2 Green light is flashing LCD display LOAD PAPER Insert document cheque with magnetic ink The document is drawn in the width is measured The document width is checked before the read process is started 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 charac ters and guided across the magnetizing and read head The read data d1 dn is packed as for the MSR acknowledgement and sent to the application TB 5B 3L 3B 3B 3B 22 72 02 dl da do r s dm 03 OK without data If no characters are recognized e g when the cheque is incorrectly in serted the read logic issues a blank character between the start and the e
220. 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 with centered and flush right text ali gnment or with margin justification ESC a n should be entered at the beginning of a print line as ESC a n deletes all the previously entered characters in the same print line T5023 5023 Programming Guide 83 Horizontal print control Standard commands Setting deleting horizontal tabs ESC D n1 n2 7 NUL ASCII character 27 68 n1 n2 na 0 Decimal 1B 44 n1 n2 m 00 Hexadecimal Function Setting tabs Using ESC D NUL up to 32 column positions in the current character width can be set as horizontal tabs The tab values are specified as n1 n2 etc between 1 and 137 inclusive in ascending order Tab positions which exceed the right margin are ignored The sign NUL marks the end of the command Using ESC D NUL the set tabs are deleted NUL sign directly after ESC D decimal 9 and hex 09 The absolute tab position is dependent on the set character size 10 12 or 15 cpi and the print mode condensed elongated nor mal With proportional spacing the tab positions are set according to the character size 10 cpi Subsequent alterations to the charac ter size do not affect the absolute tab positions i A horizontal tab jump takes place via the command HT for ASCII With co
221. the shading decimal 170 followed by decimal 85 are given BEGIN PRINTLE 8 dot graphics modes SET m 0 CALL EIGHT DOT SELT M L CALL EIGHT DOT SET m 2 CALL EIGHT DOT SET m 3 CALL EIGHT DOT SET m 4 CALL EIGHT DOT SET m 6 CALL EIGHT DOT PRINTLEF PRINTLF 24 dot graphics modes SET m 32 CALL TWENTY FOUR SET m 33 CALL TWENTY FOUR SET m 38 CALL TWENTY FOUR SET m 39 CALL TWENTY FOUR SET m 40 CALL TWENTY FOUR END T5023 5023 Programming Guide 165 Syntax of the graphics commands Graphics commands BEGIN EIGHT DOT PRINTLF Parameter S S PRINT Chean 2 7 gt char S PRINT char 100 0 SET N 0 REPEAT SET N N 1 PRINT ehar L700 ehar 85 UNTIL N 50 PRINTLF END EIGHT DOT BEGIN TWENTY FOUR PRINTLF Parameter S S PRINT char 2 7 5 charts PRINT char 100 0 SET N 0 REPEAT SET N N 1 PRINT char 170 char 85 UNTIL N 150 PRINTLF END TWENTY FOUR 166 T5023 5023 Programming Guide Graphics commands Syntax of the graphics commands Result 8 dot graphics mode Poe re S Parameter Pa rameter Parameter Parameter NEA ToS th note NNA ores g RR POY sa ee 24 dot graphics mode Parameter a pi TAG de RGR Ee ua ee Parameter g eo eee Parameter 38 Parameter m 39 Parameter 40 T5023 5023 Programming Guide 167 Syntax of the graphics commands Graphics commands Switching on the single density graphics mode ESC
222. the signals HostClk nStrobe Compatibility Mode ECP Mode Data 1 Data 8 Compatibility Mode ECP Mode PeriphClk nAck Compatibility Mode ECP Mode Epson ANSI Host driven Set active low to transfer data into printer s input latch Data is valid while nStrobe is low Used in a closed loop handshake with PeriphAck to transfer data or address information from the host to the printer Forward channel data Host to the printer or printer to host address or data Printer driven Pulsed low by the printer to acknowledge transfer of a data byte from the host Used in a closed loop handshake with HostAck to transfer data from the printer to the host The signal nAck is used to acknowledge the data byte from the host Additional nAck is set to zero for a short time if the the online status is restored 380 T5023 5023 Programming Guide Appendix PeriphAck Busy Compatibility Mode ECP Mode Epson ANSI nAckReverse PError Compatibility Mode ECP Mode Epson ANSI Centronics ECP Centronics printer Description of the physical interface Printer driven Driven high to indicate that the printer is not ready to receive data The printer uses this signal for flow control in the forward direction PeriphAck also provides a ninth data bit used to determine whether command or data information is present on the data signals in the reverse direction Busy 0
223. ting unit parameters Printing unit parameters Horizontal positioning relative Determining the text adjustment Setting deleting vertical tabs for any channel Selecting the character size 15 cpi T5023 5023 Programming Guide Appendix Command table Command ASCII hex Function ESC k n 1B 6B n Selecting the LQ type font ESC n 1B 6C n Determining the left margin ESC p n 1B 70n Switching proportional spacing on off ESC r n 1B72n Selecting the print colour 1B73n Switching half rate printing on off 1B 74n Selecting the character set 1B78n Switching over the print quality Draft LQ Non executable commands If a command is non executable dependent on the configuration hardware specific commands will be ignored T5023 5023 Programming Guide 301 Command table Appendix Definition of barcode printing for T5023 Escape sequence The definition for barcode printing is ESC m h z n r STX data ETX 1B 5B 3X 3B 3X3X 3B 3X3X 3B 3X 2A 72 02 data 03 Prints barcode according to the characteristics defined by the following parame ters The separates the parameters The final code r closes the parame ter part The barcode data is enclosed with STX start of text and ETX end of text The values in the parameter part are listed below Only the listed values are valid The range of every parameter is 1 to 4 digit For example 5 can be send as 5 05 005 or 0005 and has all
224. tion ist the baseline of text needle 20 lt _ vertical position OCR text after 2 barcode lines vertical pos text text 24 180 inch vere ot MO OCR A horizontal pos white area The print position after bar code printing is the left margin of last printed line One pass 8 60 at 24 pin Specification EN 800 code 39 801 Interleaved 2 of 5 T5023 5023 Programming Guide 303 Command table Appendix Loader commands Command ASCII hex Function ESC BELLn 1B 07 4C n Switching over to load function ESC BELE 1B 07 45 Leaving the load function ESC D 1B 49 44 Requesting data characteristic ESC FNT n1 1B 46 4E 54n1 Ready to load character generator n2 n3 d n2 n3 d MOD Daten 24 4D 4F 4424 Character generator firmware data transmitted ESCMOD n1 1B4D4F44n1 Ready to load firmware n2 n3 n2 n3 E Journal commands ESCELJ 1B 45 4C 4A Reading E Journal data 304 T5023 5023 Programming Guide Appendix Character Sets CP15_437 FNT CP15C437 FNT CP15_775 FNT CP15_850 FNT CP15_852 FNT CP15_855 FNT CP15_857 FNT CP15_858 FNT CP15_860 FNT Code Table Code Page 437 Includes additional fonts ISO 8859 2 5 7 8 9 compatible with HPR4905 Eurobanking limited Code Page C437 for the Asian market the dollar character was replaced by the Chinese character of currency Includes additional fonts ISO 8859 2 5 7
225. transported one line further according to the current line spacing lf after LF the logical bottom edge of the sheet is exceeded depen i ding on the set document format the document is ejected Ifa bottom margin set using ESC N n is exceeded the document is also ejected The horizontal position is set back to the left margin CR 56 T5023 5023 Programming Guide Standard commands Line feed commands Carrying out an n 180 inch line feed ESC J n ASCII character 27 74 n Decimal 1B 4A n Hexadecimal Function ESC J n transports the paper n 180 inch on A value between 0 and 255 must be given for n This command produces an immediate line feed but does not ef fect a carriage return no CR with 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 difference between a normal line feed and an n 180 inch feed BEGIN PRINTLF This is the first line PRINT Second line PRINT char 27 J char 5 lt 5 130 inch PRINTLF with the rest displaced by 5 180 inch PRINTLF Now it continues normally END Result This is the first line Second line with the rest displaced py 5 180 inch Now it continues normaily T5023 5023 Programming Guide 97 Line feed commands Standard commands Determining 1 8 inch line spa
226. uality 937 dots Spacing 1 360 inch with proportional spacing To ascertain the dot pattern the character design is transferred onto a dot grid appropriate to the desired print quality The following diagrams show the dot patterns for the character I on different dot grids Dot grid for draft print quality Right space lt Capital letters lt Base line T5023 5023 Programming Guide 135 Definition of characters Character set commands Dot grid for LQ print quality Right space lt Base line 136 T5023 5023 Programming Guide Character set commands Definition of characters Dot grid for superscript or subscript characters in draft print quality Right space The extent of the dot grid is determined by the print quality and the print mode The following table contains the number of dots columns in a horizontal and vertical direction for the various character types Print quality Charac Complete Complete Character print mode ter width width of left width of height and right the with spaces character descen der and ascender Draft print quality LQ print quality Proportional spacing Superscript subscript draft T5023 5023 Programming Guide 137 Definition of characters Character set commands i 138 On a dot grid dots may not be set directly beside each other hori zontally A dot position must remain free to the right and to the left of each
227. ue Switching off italic print Command ESC 5 Vertical tabulation to start of text Command VT Printing text from Dear Mr to query about the type of Switching on bold print Command ESC E Printing text connector for the RS 232 interface T5023 5023 Programming Guide Application examples Processing of a blank form 26 27 28 29 30 31 32 33 Switching off bold print Command ESC F Printing text to 9 pin Cannon plug plus blank lines to sketch Selecting other LQ type Command ESC k n Parameter n 1 Sans Serif Setting centred print format adjustmentext Command ESC a n Parameter n 1 Printing 05 01 Switching off proportional spacing Command ESC p n Parameter n 0 Default value Setting character size to 15 cpi Command ESC g Determining additional spacing between characters Command ESC SP n Parameter n 24 Remarks Additional spacing 24 180 inch see also step 18 T5023 5023 Programming Guide 2417 Processing of a blank form Application examples 34 35 36 37 38 39 40 41 42 248 Printing lines with oo oo 5 times and oo 00 4 times Deleting additional spacing between characters Command ESC SP n Parameter n 0 Setting character size to 10 cpi again Command ESC P Switching proportional spacing on again Command ESC p n Parameter n 1 Pri
228. upto 8 tab groups channels 0 to 7 with up to 16 tabs respectively ESC b In this case it is possible to switch over to a certain tab group depending on the application before the printing of a document ESC and thereby the structure of different types of document can be controlled flexibly lf 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 basis of the currently set line spacing Even if the line spacing is altered at intervals the line position of a tab remains unchanged If necessary when chan ging the line spacing the old tab values must be deleted and set anew If no vertical tabs are defined a tabulation command in a vertical direction is carried out as a line feed 68 T5023 5023 Programming Guide Standard commands Vertical print control Setting the bottom margin ESC N n ASCII character 27 78 n Decimal 1B 4E n Hexadecimal Function ESC N n sets a bottom margin of n lines in the currently valid line spacing The standard document length 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 The margin resulting from this must be smaller than the document length n lines 0 127 ESC C ESC C NUL
229. us change within the printer control which has been caused by an exceptional circumstance These exceptional circumstances can be errors operating interruptions or operating panel entries With the help of special printer messages SPM these status changes will be specified in more detail After a break on the printer interface a printing unit parameters response is created in addition to the global print status which contains information on the configuration of the printer for example maximum form width or MSR function available not available Data for the global printer status special printer messages or specifications for the printing unit parameters occur spontaneously and are stored in a stack in the printer interface until they are fetched by the system T5023 5023 Programming Guide 177 Structure of the additional commands Additional commands Printer 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 parameters in this case 3 n1 n5 0 9 Value range of a parameter from 0 9 or 0 99 or 0 999 etc 178 T5023 5023 Programming Guide Additional commands Printer Important notes on document processing Important notes on document processing The document printer can process single documents multiple documents and passbooks Optionally the document printing p
230. us signals to the connected device signal receiver printer that it is ready to receive data Not used in the XON XOFF 2 protocol Pin04 DTR Data Terminal Ready Exit In the DTR Busy protocol the ON status signals to the connected device signal receiver host readiness to receive data In the XON XOFF protocol DTR and RTS reflects back the operating readiness of the printer DTR RTS active Online DTR RTS inactive STOP STOP key and operating interruption or ERROR T5023 5023 Programming Guide 371 Description of the physical interface Appendix Pin 07 Pin 01 372 RTS Request to Send Exit In the DTR Busy protocol the ON status signals to the connected device signal receiver host readiness to receive data In the XON XOFF protocol DTR and RTS reflects back the operating readiness of the printer DTR RTS active Online DTR RTS inactive STOP STOP key and operating interruption or ERROR Printer switched on Exit The ON status informs the host system that the printer has been switched on The electrical features of this signal do not comply with the standard The signal position can depend on the receiver physics of the host This signal has been implemented to maintain the compatibility with the predecessor and it may no longer be used with new applications ON status 5 6 kOhm at 12 V OFF status 5 6 kOhm at SG T5023 5023 Programming Guide Appendix D
231. uted at the docu ment printing 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 the spacing is specified in n 180 inch from the upper edge of the form to the base line of a line With the absolute vertical positioning in relation to the lower edge of the form CSI n p the spacing is specified in n 180 inch from the lower edge of the form to the base line of a line For these commands the printing unit of the document printer is fitted with equip ment for the detection of the edges of the form The base line of a line is defined in the section Important notes on do i cument processing T5023 5023 Programming Guide 195 Basic commands for document processing Additional commands Printer Relative vertical positioning backwards Name ASCII character Decimal Hexadecimal Parameter n backwards positioning in a vertical direction of n 180 inch n 0 to 9999 The 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 the base line of the current line is executed After transferring this command all characters are printed which are still in the print buffer 196 T5023 5023 Program
232. ways the same value Barcode type The parameter m defines the following barcode types m Barcode type 5 CODE89 lower case bar code data a z is automatic set to upper case A Z 7 2 5 INTERLEAVED a odd number of bar code data is automa tic filled with a leading zero If one wrong data found in barcode data nothing will be printed and the printer shows wrong order Barcode height The parameter h defines the barcode height h Barcode height 00 DEFAULT at least 5 mm or 15 of Barcode length 01 10 Height as number h of passes 302 T5023 5023 Programming Guide Appendix Command table Barcode zoom coeffizient The parameter z expresses the horizontal zoom coefficient in decimals The fol lowing values are allowed Z Values 00 09 Ignored values 10 34 Acceptable values 10 basic width 15 is 1 5 basic width 20 is double width etc Human readable line The parameter n comprising one 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 OCR A font where no zoom factor is applied Printposition horizontal the horizontal position ist the beginning of white area This area is at least 10 times of small barcode line and depends of the zoom factor vertical the vertical posi
233. ween document and journal printing Relative vertical positioning backwards Absolute vertical positioning from the bottom T5023 5023 Programming Guide 299 Command table Command ESC n q ESC n p ESC n1 n5 r ESC r ESC r STX ETX ESC r ESC n t ESC t ESC t ESC n t ESC n t ESC n t ESC n t ESC n t ESC n t ESC n z ESC z ESC n m z ESC n z ESC n1 n8 Z ESC n m ESC a n ESC b c NUL ESC g 300 ASCII hex 1B 5B n 23 71 1B 5B n 24 70 1B 5B n1 n521 72 1B 5B 22 72 1B 5B 23 72 02 03 1B 5B 25 72 1B 5B n 21 74 1B 5B 22 74 1B 5B 23 74 1B 5B n 24 74 1B 5B n 25 74 1B 5B n 28 74 1B 5B n 29 74 1B 5B n 2A 74 1B 5B n 2C 74 1B 5B n21 7A 1B 5B 22 7A 1B 5Bnm 22 7A 1B 5B n 23 7A 1B 5B n1 n8 23 7A 1B5Cnm 1B 61n 1B 62 c 00 1B 67 Appendix Function Selection of type fonts character sets Paper feed of the document Parameter block MSR Reading a MSR track Writing a MSR track Deleting a MSR track Setting control points initializing the control cycle Requesting the document width Document edge detection Activating passbook processing Specification of the horizontal leading edge Mode switch over for handling end of paper Setting control point II Dual station control Increasing the copying power Global printer status Requesting special printer messages Special printer messages Requesting prin
234. witching on or initializing the printer ESC t 1 m Control codes ESCt 2 128 159 Control codes character set defined by the user current character set or that defined by the user italics graphics character character set cat defined by the user RAM ROM RAM ESC t 0 ESC t 0 The character set defined by the user can be switched on using ESC 1 in the lower character table or using ESC t 2 in the upper character table After the control command ESC 6 has been entered the complete upper character table for characters 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 character table 128 must be added to the codes in order to print the desired character For example PRINT char 128 60 prints the character defined under the code 60 Thus basic characters and characters defined by the user can be printed simultaneously without switching the charac ter set Using ESC 4 the characters defined by the user in the lower char acter table can be printed in italics 132 T5023 5023 Programming Guide Character set commands Definition of characters Definition of characters For the definition of a new character the following steps are necessary 64 32 2 98 128 16 1 145 64 4 1 69 Design of a c
235. wledgements via CSI n t should only occur at the end of a line or during a function switch over for example from printing to reading MSR This corresponds to the printer se quencing and does not interfere unnecessarily with the perfor mance of the document printer The optimal printing path bidirectional printing is interrupted by means of this command The order of the acknowledgement messages from the document printer is the same as the order of the acknowledgement requests If an application is working with these acknowledgement cycles it should not wait for the respective acknowledgement signal but im mediately transmit further print data Subsequently the response can be evaluated T5023 5023 Programming Guide 221 Status and error messages Additional commands Printer Setting control point Il Command Name ASCII character Decimal Hexadecimal Name ASCII character Decimal Hexadecimal Parameter n value freely definable by the application in the range 0 to 9999 Function The command CSI n t triggers the release of an acknowledgement signal to the processor interface if the last mechanical procedure was started in the 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 same para meter value n that the application transferr
Download Pdf Manuals
Related Search
Related Contents
InfraSolution X - User Manual - X600 V3_4 - AAH User Guide Mode d`emploi SP-HR200H 合冊.indb Health Monitoring Analytics – Final Report SAAS Manual - Minnesota Department of Transportation MONOGRAPHIE DE PRODUIT CRÈME CANESTEN® 6 Lexicon DC-2 Speaker System User Manual Rollei 22560 mounting kit Copyright © All rights reserved.
Failed to retrieve file