background image

 

 

 

 

 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TH320/TH420 

Two-Color Thermal / Impact Hybrid Printer

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 

 

 

 

 

 

 

Programmers Guide 

 

Содержание TH320

Страница 1: ...TH320 TH420 Two Color Thermal Impact Hybrid Printer Programmers Guide ...

Страница 2: ...age if you have any constructive criticism on the contents the layout the product We would like to thank you in advance for your comments With kind regards Wincor Nixdorf International GmbH RD PD1 Rohrdamm 7 D 13629 Berlin Your opinion TH320 TH420 Programmers Guide Edition December 2010 ...

Страница 3: ...of this document or its contents is not permitted without express authority Offenders will be liable for damages All rights including rights created by patent grant or registration of a utility model or design are reserved Delivery subject to availability technical modifications possible ...

Страница 4: ...verview of Printing Characteristics 12 Character appearance 12 Receipt character specification 12 Print zones 13 Print zones for receipt station 80 mm paper 13 Print zones for slip station TH320 13 Print Zones for Slip Validation TH320 14 Print zones for slip station TH420 15 Rotated printing commands 16 Command Descriptions 17 Command conventions 17 Printer actions 17 Clear printer 17 Close form ...

Страница 5: ...et printing area width 35 Turn smoothing mode on off 36 Text characteristics commands 36 Select double wide characters 36 Select single wide characters 36 Select 90 degree counter clockwise rotated print 37 Select pitch column width 37 Set right side character spacing 38 Select print mode 38 Select or cancel user defined character set 39 Define user defined character set 39 Select or cancel underl...

Страница 6: ... device status 63 Transmit paper sensor status 64 Transmit printer ID 64 Transmit printer ID remote diagnostic extension 65 Transmit Status 68 Slip paper status n 3 or n 51 70 Real time commands 71 Send Printer Software Version 72 Busy line and fault conditions 73 Real time status transmission 73 Real time request to printer 75 Real time printer status transmission 76 Real time commands disable 76...

Страница 7: ...on 101 Erase user flash sector 102 User storage status 103 Flash download 104 Switch to flash download mode 104 Return boot sector firmware part number 104 Return segment number status of flash memory 105 Select flash memory sector to download 105 Get firmware CRC 105 Return microprocessor CRC 105 Erase all flash contents except boot sector 106 Return main program flash CRC 106 Erase selected flas...

Страница 8: ... Mode Commands 132 1F 0A D1 Enter Print Journal Entry Mode 132 1F 0A D2 Exit Print Journal Entry Mode 132 1F 0A D3 Move to End of Journal most recent entry 132 1F 0A D4 Move to Start of Journal least recent entry or first line 132 1F 0A D5 Move to next Journal entry towards more recent entry 132 1F 0A D6 Move to previous Journal entry towards less recent entry 132 1F 0A D7 n Move back n lines towa...

Страница 9: ...ram CRC Failure causes Startup Diagnostics to stop the printer beeps and the light flashes a set number of times indicating the nature of the failure The table in the Indicators section page 16 describes the specific tone and light sequences Check if paper is present Return the knife to the home position Failure causes a fault condition The table in the Indicators section page 16 describes the spe...

Страница 10: ...Number of hours the printer has been on Number of flash cycles Number of cutter jams Number of times the cover is opened Maximum temperature reached Paper type can be changed in the configuration menu Paper types and grades available Type 0 Monochrome grades WN T 55 Type 1 Two color grades Kanzaki P 310 RB Type 4 Two color grades Kanzaki P 310 BB Type 5 Two color grades Kanzaki P 320 RB When the p...

Страница 11: ...y Light Single beep and Tone Single light flash Boot CRC test failure Light Double beep and Tone Double light flash SRAM test failure Light Triple beep and Tone Triple light flash EEPROM test failure Light Four beeps and Tone Four light flash Dynamic memory initialization failure Light Two Tone beep and Tone high frequency low frequency Continuous flashing of light Main program CRC test failure or...

Страница 12: ...d to best match the size of the graphic in the A756 printer 1B 33 n Set line spacing This command uses n in terms of n 360 inches Since the A756 had a fundamental step of 1 152 inch and the TH320 has a fundamental step of 1 203 inch the actual line spacing will not exactly match there quested spacing 1B 4 An Print and feed paper This command uses nin terms of n 360 inches Since the A756 had a fund...

Страница 13: ...using wide forms that print on less than 51 columns options 1 and 2 above are combined with the option to delete trailing spaces There should be no changes required to the application but a new form will be required For applications using wide forms that print on more than 51 columns the data will wrap to the next line Modification of the application and the form is required if data wrapping is no...

Страница 14: ... ignored Set Printer ID Code Hexadecimal 1F 03 25 0F n This command sets the printer ID response to the Printer ID command 1D4901 n Printer ID 00 TH320 01 TH420 02 A758 03 A756 Set Printer Emulation Code Hexadecimal 1F 03 25 02 n n Emulation 00 Native 01 A756 limited emulation See list of comments earlier in this chapter ...

Страница 15: ...t TH320 Narrow Slip Configuration Option to Ignore n Leading Spaces Code Hexadecimal 1F 03 25 09 n This command is available so TH420 applications can ignore n leading spaces in a 51 column line of compressed text Range of n 0x00 n 0x20 hexadecimal 0 n 32 decimal n 29 decimal is equivalent to printing the right most 51 compressed columns of the TH420 print zone 29 51 80 The first non space in colu...

Страница 16: ...h the A756 A758 TH420 exactly An A756 A758 TH420 can print up to 33 rotated lines as read so those printing 26 or higher rotated lines cannot be emulated on theTH320 printer n Rotated Print Options 00 21 line default 01 25 line Select TH320 Slip Stop Options Code Hexadecimal 1F 03 0D n The TH420 A758 A756 mechanism has a positive slip stop for positioning a form at its top right corner Some applic...

Страница 17: ...cing command 1B 20 n 00 Disabled 01 Enabled 1F032603 n Enables or disables the 1D50 x y command n Set minimum units for the slip station command 1D 50 x y 00 Disabled 01 Enabled 1F032604 n Enables or disables the 1D4 C n L n Hand 1D57 n L n H commands n Set left margin 1D 4C n L n H and print width 1D 57 n L n H on the slip station commands 00 Disabled 01 Enabled 1F032605 n Enables or disables the...

Страница 18: ...nt raster monochrome graphics 1D 83n1 n144 n160 GS 0x83n1 n144 n160 Print raster color graphics 1D 84 nmn1n2d1dx GS 0x84 n m n1 n2 d1 dx Download logo image 1D 85mn GS 0x85 m n Reverse color text mode two color 1D 86m GS 0x86 m Monochrome shade mode 1D 87m GS 0x87 m Color shade mode 1D 89nm GS 0x89 n m Logo print with color plane swap 1D 8B n m o GS 0x8B n m o Apply shading to logo 1D 8C nm GS 0x8...

Страница 19: ...and store logo 1D 9B mn 1DGS Logo print with knife cut 1D 99 lnmo GS 0x9B lnmo Apply margin message mode 1F 03 16 05 n US Set interpretation of Set current color command 1F 03 16 fm n o p q US ETX SYN Set Logo EZ surround graphics 1F 03 16 fsp rt US ETX SYN fsp rt Set colorization 1F 03 17 ams US ETX ETB ams Set attribute mapping ...

Страница 20: ...ogram a host computer to communicate with the printer unless otherwise noted For the printer to operate properly within an Ethernet environment a specific set of commands must be set Some commands listed and described here may not be implemented and are identified as not implemented If received they are ignored and not sent to the print buffer as data Any non legal commands have their parameter se...

Страница 21: ...Standard print line spacing is 27 dots i e 3 extra row dots The TH320 adds a 27 dot high font so standard print spacing is 30 dots Print zones for slip station TH320 The slip station prints characters standard and compressed pitch and graphics in a print zone of 77mm 3 0 wide on a slip or form Standard pitch 42 characters columns per line Compressed pitch 51 characters columns per line 21 rotated ...

Страница 22: ...n Format The TH320 has drop validation printing The location of the first line of validation varies based on the table below Number of lines of validation 7 2 lpi Distance from bottom of form to top of first print line 14 lines 2 7 inches 10 lines 2 0 inches 6 lines 1 5 inches 4 lines 1 2 inches ...

Страница 23: ...andard pitch 66 characters columns per line Compressed pitch 80 characters columns per line The print line height of 7x7 dot characters is 2 46mm 097 With three dot spacing the print line height is 3 53mm 139 See the following illustration not to scale To print as close to the bottom of the slip as possible without the slip leaving the feed rollers use the Print and feed n lines 1B 64 n command wi...

Страница 24: ...nded consequences may result when rotated clockwise is mixed with other commands The samples of the print show only the normal size characters Double wide and double high characters are printed in the same orientation They may also be mixed on the same line Note The following print modes cannot be mixed on the same line Standard and compressed pitch Vertical normal and rotated Right side up and up...

Страница 25: ...unction commands control the following basic printer functions and are described in order of their hexadecimal codes Station select Cutting the paper Platen control Opening the cash drawers Resetting the printer Clear printer ASCII DLE Hexadecimal 10 Decimal 16 Clears the print line buffer without printing and sets the printer to the following condition Receipt station is selected Double wide comm...

Страница 26: ...rdless of which station is selected Perform partial knife cut ASCII SUB ESC m Hexadecimal 1A 1B6D Decimal 26 27109 Partially cuts the receipt leaving 5 mm 0 20 of paper This command is implemented the same as Full knife cut 19 and 1B 69 There are two codes Hex 1A or 1B 6D for this command and both codes perform the same function Exceptions Line feed is executed first if print buffer is not empty T...

Страница 27: ... 43 n Decimal 27 67 n Value of n 0 to 255 Exception This command is ignored Select receipt or slip for printing slip for MICR read ASCII ESC c 0 n Hexadecimal 1B 63 30 n Decimal 27 99 48 n Value of n 1 2 3 Receipt selected 4 Slip selected 8 Validation station selected Default of n 1 Select the station for printing When slip is selected the printer waits for the paper to be inserted When slip has a...

Страница 28: ...t paper sensors to output paper end signals ASCII ESC c 3 n Hexadecimal 1B 63 33 n Decimal 27 99 51 n This command is ignored Select sensors to stop printing ASCII ESC c 4 n Hexadecimal 1B 63 34 n Decimal 27 99 52 n Value of n Sensor status Default 0 Bit Function 0 1 Stop receipt on receipt low 4 Stop slip if trailing edge uncovered 5 Stop slip if leading edge uncover 7 Stop validation print if tr...

Страница 29: ...rinter waits to close the platen and start printing once the slip has been inserted The printer reads that a slip is inserted when the leading edge and trailing edge sensors are covered The slip in LED on the slip table is lit green when both sensors are covered If a slip is not inserted in the time specified the receipt station is selected for the next function The times set by this command are u...

Страница 30: ... will not have a distinguishable effect 0 is the initial value and provides parameter value consistency with other commands Description When the monochrome paper type command 00 is set this command is recognized and retained but has no effect The monochrome paper selection usually black controls the output When two color paper is loaded and the two color paper type command set this command will de...

Страница 31: ...r m Set paper type ASCII GS 0x81 m n Hexadecimal 1D81mn Decimal 29 129mn Value of m 0 monochrome black paper Wincor Nixdorf T 55 1 Two color red black papers Kanzaki P 310RB 4 Two color blue black papers Kanzaki P 320BB 5 Two color red black papers Kanzaki P 320PB Default 0 monochrome paper This command will set the optimum parameter values in the thermal print engine control hardware for any defi...

Страница 32: ...n Decimal 31 03 22 05 n Value of n 0 FF Hex n 01 will cause 1B7201 to printed Any other value for 1B72 will print black n 00 will cause 1B7200 to printed and all other values to print black This command defines how to interpret the 1B 72 command for legacy environments It provides a method to resolve any differences in the definition of command 1B 72 between the TH320 native mode and earlier imple...

Страница 33: ... only when the printer is in page mode When the printer is not in page mode this command executes the print and eject slip function Print and carriage return ASCII C R Hexadecimal 0D Decimal 13 Prints one line from the buffer and feeds paper one line The printer can be set through the configuration menu to ignore or use this command Some applications expect the command to be ignored while others u...

Страница 34: ...e receipt station the line height equals the character height when n is too small This does not apply to the slip station Use n 0 to print a line without feeding the paper This allows the printer to print on the last line of the slip at 0 59 inch from the trailing edge and still retain the slip in the feed rollers for reverse feeding the paper back out of the slip station Related information For m...

Страница 35: ...he slip station The receipt station cannot be reverse fed Reverse feed n lines ASCII GS DC4 n Hexadecimal 1D 14n Decimal 29 20n Range of n 0 127 A756 emulation mode 0 255 TH320 native mode Reverses the paper feed in the slip station by n lines at the current spacing The next character feed command returns the paper feed back to the normal feed direction This command is ignored if slip is not the s...

Страница 36: ...tions When no tabs are defined to the right of the current position or if the next tab is past the right margin line feed is executed HT has no effect in page mode Print initialization sets 32 tabs at column 9 17 25 Add n extra dot rows ASCII SYN n Hexadecimal 16n Decimal 22n Value of n Receipt n 203inch Slip n 72inch Range of n 0 12 Default Receipt 3 extra dot rows Slip 3 extra dot rows Adds n ex...

Страница 37: ... 13 25 2 7 81 26 3 7 52 27 4 7 25 28 5 7 00 29 6 6 77 30 7 6 55 31 8 6 35 32 9 6 16 33 10 5 98 34 11 5 81 35 12 5 64 36 Slip Station Extra rows Lines per inch Dot rows 0 10 29 7 1 9 00 8 2 8 00 9 3 7 20 10 4 6 55 11 5 6 00 12 6 5 54 13 7 5 14 14 8 4 80 15 9 4 50 16 10 4 24 17 11 4 00 18 12 3 79 19 ...

Страница 38: ...is reset to the first column after each line Formulas Determine the value of n by multiplying the column for the absolute starting position by 10 slip or receipt standard pitch or 8 receipt compressed pitch The example shows how to calculate column 29 10 dots per column as the absolute starting position 28 x 10 280 dots beginning of column 29 280 256 1 remainder of24 n1 24n2 1 Related information ...

Страница 39: ...on of the set horizontal and vertical minimum motion units command in this document Set horizontal tab positions ASCII ESC D n k NUL Hexadecimal 1B 44 n k 00 Decimal 27 68 n k 0 Value of n Column number for tab minus one n is always less than or equal to the current selected column width Value of k 0 32 decimal Default Every 8 characters from column 1 9 17 25 etc for normal print Sets up to 32 hor...

Страница 40: ...n by 10 slip or receipt standard pitch or 8 receipt compressed pitch The example shows how to set the relative position two columns in standard pitch 10 dots per column to the right of the current position 2 x 10 20 dots two columns to be moved left of the current position 20 256 0 remainder of 20 n1 20 n2 0 Related information If the set horizontal and vertical minimum motion units command 1D 50 ...

Страница 41: ...and can be enabled or disabled for the slip Default is disabled for the slip on TH320 and enabled on TH320 MICR France Formulas Sets the left margin of the printing area The left margin is set to nH X 256 nL times horizontal motion unit inches The horizontal motion units are set by the set horizontal and vertical minimum motion units command 1D 50 described in this manual The width of the printing...

Страница 42: ... Receipt Station Printable Area 576 Dots Slip Station Printable Area 420 Dots Set horizontal and vertical minimum motion units ASCII GS P x y Sets the horizontal and vertical motion units to 1 x inch and 1 y inch respectively Hexadecimal 1D 50 x y When x or y is set to 0 the default setting for that motion unit is used Decimal 29 80 x y Value of x Horizontal Value of y Vertical The command can be ...

Страница 43: ...n TH320 and enabled on TH320 MICR France Formulas To set the width of the receipt printing area to one inch at the default horizontal motion unit of 1 203 inches send the four byte string GS W 203 0 Or to set the width of the printing area to two inches at the default horizontal motion unit of 1 203 units per inch send the four byte string GS W 150 1 Where 2 inches 406 203 and 406 1 X 256 150 Exce...

Страница 44: ...ct smoothing PRINT 1 AAAAA CHR HA Print Sample AAAAA Text characteristics commands These commands control what the printed information looks like selection of character sets definition of custom defined characters and setting of margins The commands are described in order of their hexadecimal codes Select double wide characters ASCII DC2 Hexadecimal 12 Decimal 18 Prints double wide characters The ...

Страница 45: ...nt characters cannot be used together in the same line Related information See Summary of rotated printing in this document Select pitch column width ASCII ESC SYN n Hexadecimal 1B 16 n Decimal 27 22 n Value of n 0 Standard pitch 1 Compressed pitch Default 0 Standard pitch Select the character pitch for a print line Formulas The following table provides the print characteristics for both pitches o...

Страница 46: ... page mode 1B 54 n the horizontal motion unit x is used When the starting printing position is the upper right or lower left of the printable area set by select print direction in page mode 1B 54 n the vertical motion unit y is used The command can be enabled or disabled for the slip Default is disabled for the slip on TH320 and enabled on the model TH320 MICR France Select print mode ASCII ESC n ...

Страница 47: ...1 dn n2 d1 dn Values and ranges Receipt s 3 the number of bytes vertically in the character cell c the ASCII codes of the first c1 and last c2 characters respectively c1 Hex 20 FF 20 is always printed as a space c2 Hex 20 FF 20 is always printed as a space To define only one character use the same code for both c1 and c2 k c2 c1 1 the number of characters to be defined in this command string chara...

Страница 48: ... received Any invalid byte s c1 c2 n1 aborts the command User defined character sets for both slip and receipt may be used at the same time The command clears bit image logo data from RAM The illustration on the next page provides a sample of a character cell Related information See 1D 22 n select memory type where to save user define fonts Select or cancel underline mode ASCII ESC n Hexadecimal 1...

Страница 49: ...ified by n After the user defined character is canceled the corresponding pattern from codepage 437 is printed Exceptions This command is ignored if n is out of range or if the user defined character is not defined Select or cancel emphasized mode ASCII ESC E n Hexadecimal 1B 45 n Decimal 27 69n Value of n 0 bit0 not selected 1 bit0 selected When 0 and 1are the least significant bit LSB Range of n...

Страница 50: ...ngs do not apply in page mode However they can be set or cleared in page mode Double strike printing cannot be used with bit images or downloaded bit images This command functions the same as A756 when the printer is in A756 emulation mode In TH320 native mode the command takes a parameter to enable and disable it Related information Printer output is the same as in emphasized mode Cancel double s...

Страница 51: ...ge 437 Selects the character set to be used See Appendix B Resident Character Sets for the character sets There are two codes for this command see select international character set 1B 74 n Both codes perform the same function Exception The character sets cannot be mixed on the same line Related information This command may also be known as select character code table Select character code table S...

Страница 52: ...sing bits 4 to 7 as follows Character width selection Character height selection This command is effective for all characters except for HRI characters In standard mode the vertical direction is the paper feed direction and the horizontal direction is perpendicular to the paper feed direction However when character orientation changes in 90 degree clockwise rotation mode the relationship between v...

Страница 53: ...lack reverse print mode does not affect bit image downloaded bit image bar code HRI characters and spacing skipped by horizontal tab 09 set absolute starting position 1B 24 and set relative print position 1B 5C White black reverse print mode has a higher priority than underline mode When underline mode is on and white black reverse print mode is selected underline mode disabled but not canceled Ba...

Страница 54: ...int row will give uneven results Select super script or subscript modes ASCII AX ENQ n Hexadecimal 1F 05 n Decimal 31 05n Value of n 0 Normal character size 1 Select subscript size 2 Select super script size Default 0 normal size Turn superscript or subscript modes on or off This attribute may be combined with other characters size settings commands 12 13 1B 21 n 1D 21 n This command is available ...

Страница 55: ...ignored The application is required to manage user data space downloaded font space and logo space After downloading a logo to the printer wait 100 ms to allow the printer time to write the logo to flash The downloaded BMP file can be printed by using the print downloaded bit image 1D 2F m command Exceptions This command is valid only for the receipt station This command is valid only for monochro...

Страница 56: ...nted down then across 24 dotmode Formulas 8 dot single density n1 256 n2 24 dot single density 3 x n1 256 n2 Sets the print resolution and enters one line of graphics data into the print buffer Excess data is accepted but ignored Any print command is required to print the data after which the printer returns to normal processing mode See the illustration for graphic representations of the bit imag...

Страница 57: ... as the active logo identifier It automatically stores any new logo definition in flash memory as logo 0 inactivating any previous logo 0 definitions If the flash memory space available for logos fills up with inactive logo 0 definitions the firmware erases the old definitions at the next power cycle This is the only case in which the printer erases flash memory without an application command In t...

Страница 58: ...used to print a previously stored monochrome or color logo from printer memory on the receipt station The logo is identified as the one indicated by the most recent select current logo command or 0 if a select current logo command has not yet been given Parameter m is interpreted as follows The indexed downloaded bit image from RAM or flash will be printed on the receipt station at a size specifie...

Страница 59: ... first half string but not on in the second half string select the secondary color The parameter of this command is thus a string of bytes for one dot row with the same structure as defined for the thermal color format file given in the download color logo command This command is used for printing a single raster of color graphics in real time Offsets page and any other modes or overlays including...

Страница 60: ...e logo In the monochrome case only one bit is needed per row This is the same structure as used for the definitions of print raster monochrome graphics and print raster color graphics This command is used for storing a logo of n1 by n2 size indexed by the current logo value After downloading a logo to the printer wait 100 ms to allow the printer time to write the logo to flash Apply shading to log...

Страница 61: ... the print dot will be the color of the watermark otherwise it will be black Monochrome shade mode ASCII GS 0x86 m Hexadecimal 1D 86 m Decimal 29 134 m This applies a selected shade density to all monochrome objects such as text and monochrome logos The parameter m specifies the shading effect and has an initial value of 0 which signifies no effect m specifies the percentage of shading 0 m 100 m 0...

Страница 62: ...values of m reserved for future styles This graphic is formed into a RAM based graphics buffer and the buffer state is set to graphic merge pending Whenever the buffer is in the pending merge state the print output is started the state will be changed to frozen and a merge process started logically OR ed graphic data into the print lines that follow The application determines how close the graphic...

Страница 63: ...uffer state will be set to frozen by this command Related information This command is ignored in page mode Background logo print mode ASCII GS 0x92 n Hexadecimal 1D 92 n Decimal 29 146 n This command will place into the graphics buffer the logo designated by n As soon as there is a print action command such as text output the graphics buffer will be merged logical OR process with print output This...

Страница 64: ...ut is eliminated In order for this command to function properly all commands used by legacy applications to move the end of the current receipt past the knife should be removed Related information See Print downloaded bit image command Apply margin message mode ASCII US 0x99 l n o Hexadecimal 1D 99 l m n o Decimal 29 153 l m n o Value of l l is a binary switch 0 disables margin message merging 1 e...

Страница 65: ...as it is less than the speed automatically set by power management A parameter of zero 0 restores the normal max speed Set colorization ASCII US ETX SYN f s p t t Hexadecimal 1F 03 16 f s p t t Decimal 31 03 22 f s p t t Value of f 0 turn off all colorization features 1 link print logo after knife cut 2 link watermark printing 3 link margin message printing 4 link logo print before cut Default 0 O...

Страница 66: ...and r is the distance in mm between watermark repetitions After executing a knife cut command and the f 1 steps if s 0 execute the following skip s feed paper dot rows 15 s command set watermark printing to on using logo F1 execute merge watermark mode 1D 8C r F1 command Logo must be defined for F 1 and comply with watermark mode requirements in order for this happen stop background merging mode 1...

Страница 67: ... justification to previous value 1B 61 previous value skip feed paper p dot rows 15 p command a minimum value of 90h to ensure knife cut occurs after the logo restore background merge suspension 1D 9B previous value Related information This command is utilized in the WN utility The utility can be used to pre configure new printers with a default colorization set up without requiring any applicatio...

Страница 68: ...tute attribute settings for color effects The attributes of the character code are used to form the desired pixel character when the code is placed into the raster print buffer An m bit value set to on in the original attribute mapped table above will have its attributes set to the corresponding bit value of s in the attributes substituted table If m 0 then no substitution takes place The command ...

Страница 69: ...ndefined Related information This command is utilized in the WN utility The utility can be used to pre configure new printers with a default colorization set up without requiring any application changes The default set up was designed to provide a general level of colorization features that would not affect the printer operation You can expand beyond the default features of the utility by modifyin...

Страница 70: ...the logo has been downloaded In general the Set max target speed 1D A0 nl nh is the preferred command Allocate extra RAM for character build For applications that extensively use large characters this option provides additional RAM for large character building The commands to enable or disable extra RAM for the large character buffer are 1F 03 29 84 01 1D FF Allocate extra RAM for character build ...

Страница 71: ... in the printer s data buffer as they are received and are handled by the firmware in the order in which they are received When a fault occurs the printer will go busy at the RS 232c interface and not respond to any of the batch mode printer status commands If the fault causing the busy condition can be cleared such as by loading paper or letting the thermal print head cool down the printer will r...

Страница 72: ... computer when it is not busy or in a fault condition In DTS DSR protocol the printer waits for DSR SPACE Related information See real time commands in this document for details about fault conditions reporting Transmit printer ID ASCII GS I n Hexadecimal 1D 49 n Decimal 29 73 n Value of n 1 49 Printer model ID 2 50 Type ID 3 51 ROM version ID 4 52 Logo Definition Transmits the printer ID specifie...

Страница 73: ...defined 7 Of 00 0 Not used Fixed to Off Transmits the printer ID specified by n This command is a batch mode command that is the response is transmitted after all prior data in the receive buffer has been processed There may be a time lag between the printer receiving this command and transmitting the response depending on the receive buffer status Transmit printer ID remote diagnostic extension A...

Страница 74: ...host to write to NVRAM must contain all digits required by the remote diagnostic item All data must be ASCII The printer returns all ASCII data It is preceded by the parameter n to identify the diagnostic item and is followed by a carriage return 0D to signify the end of the data The command performs the remote diagnostic function specified by n as described in the following table ...

Страница 75: ...TH320 TH420 Programmers Guide 67 ...

Страница 76: ...e after all prior data in the receive buffer has been processed There may be a time lag between the printer receiving this command and transmitting the response depending on the receive buffer status When DTR DSR RS 232c communications handshaking control is selected the printer transmits the one byte response only when the host signal DSR indicates it is ready to receive data When XON XOFF RS 232...

Страница 77: ... status is reported by the printer Printer status n 1 or n 49 Bit Off On He Hex Decimal Status for transmit status 0 Off 00 0 Receipt paper adequate On 01 1 Receipt paper low 1 Off 00 0 Receipt paper adequate On 02 2 Receipt paper low 2 Off 00 0 Receipt paper present On 04 4 Receipt paper exhausted 3 Off 00 0 Receipt paper present On 08 8 Receipt paper exhausted 4 Off 00 0 Not used Fixed to off 5 ...

Страница 78: ...ing Flash memory user sector status n 4 or n 52 Bit Off On Hex Decimal Status for transmit status 0 Undefined Fixed to off 1 Undefined Fixed to off 2 Off On 00 04 0 4 User data storage write successful User data storage write failed specified area not erased 3 Off On 00 08 0 8 Flash logo area adequate definition stored Flash logo area not adequate for recent definition 4 Off 00 0 Not used Fixed to...

Страница 79: ...A756 application that already uses the clear printer command or for a new application being developed Alternate implementation The alternate implementation uses the DLE 0x10 sequences as implemented on other printers An application using these DLE 0x10 sequences and the original A756 clear printer command 0x10 must distinguish for the printer between the new real time commands and the clear printe...

Страница 80: ...uffer can fill with real time commands When the DLE 0 10 sequences are being used the last byte stored when the buffer fills up could be the DLE 0 10 code with no room for the subsequent EOT or ENQ When this lone DLE 0x10 byte is finally processed out of the buffer it will be interpreted as a clear printer command Similarly when the GS 1D sequences are being used the last byte stored when the buff...

Страница 81: ...tus specified by n command within a few m sec according to the following parameters This command includes two sequences GS 1D and DLE 0 10 Exceptions The command is ignored if n is out of range An application using DLE 0 10 sequence must send EOT within 100 milliseconds of DLE or the printer will misinterpret the DLE and execute a clear printer command Avoid this possibility by using the ID 04 n s...

Страница 82: ...condition exists in the printer 7 Off 00 0 Fixed to Off 3 Transmit error status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1 On 02 2 Fixed to On 2 Off 00 0 Carriage or slip jam 3 Off On 00 08 0 8 No knife error Knife error occurred 4 On 10 16 Fixed to On 5 Off On 00 20 0 32 No unrecoverable error Unrecoverable error occurred 6 Off On 00 40 0 64 Thermal print head temp and power supply...

Страница 83: ...ime request to printer GS sequence DLE sequence ASCII GS ETX n DLE ENQ n Hexadecimal 1D 03 n10 05 n 29 3 n 16 5 n Value of n 1 recover and restart 2 recover and clear buffers The printer responds to a request from the host specified by n This command includes two sequences GS and DLE The operations performed depend on the value of n according to the following parameters n 1 This command restarts p...

Страница 84: ...me printer status transmission ASCII GS ENQ Hexadecimal 1D05 Decimal 295 This command transmits one byte status of the printer in real time Bit Status Hex Dec Function 0 Off 00 0 Paper adequate On 01 1 Paper low if paper low sensor enabled 1 Off 00 0 Paper adequate On 02 2 Paper low if paper low sensor enabled 2 Off 00 0 Both receipt and cassette door closed On 04 4 Receipt or cassette door open 3...

Страница 85: ...ontrol is used all four status bytes will be transmitted without checking DSR This command is a POS version of general printer unsolicited status functions it uses the same command code as older versions of the POS command automatic status back ASB but has the following differences The parameter n is an on off switch it does not select trigger subset There is no immediate return when this mode is ...

Страница 86: ...ormation Bit Off On Hex Decimal Status for USM 0 Undefined 1 Undefined 2 Off On 00 04 0 4 No mechanical error Mechanical error occurred 3 Off On 00 08 0 8 No knife error Knife error occurred 4 Off 00 0 Not used Fixed to Off 5 Off On 00 20 0 32 No recoverable error Unrecoverable error occurred 6 Off On 00 40 0 64 Paper feed button is not pressed Paper feed button is pressed 7 Off 00 0 Not used Fixe...

Страница 87: ... inserted 2 Undefined 3 Undefined 4 Off 00 0 Not used Fixed to Off 5 Undefined 6 Undefined 7 Off 00 0 Not used Fixed to off Recognizing data from the printer An application sending various real time and non real time commands to which the printer responds can determine which command a response belongs to by the table below Batch mode responses are non real time responses and arrive in the order in...

Страница 88: ...ted 1 Above the bar code 2 Below the bar code 3 Both above and below the bar code Default 0 Not printed Print HRI human readable interface characters above or below the bar code Select pitch of HRI characters ASCII GS f n Hexadecimal 1D66n Decimal 29 102 n Value of n 0 Standard pitch at 15 2 CPI 1 Compressed pitch at 19 CPI Default 0 Not printed Select standard and compressed font for printing bar...

Страница 89: ... rules Start stop characters are added for code 39 if they are not included Rotated barcodes set with small modules select bar code width command 1D 77 n with n 1 or 2 and PDF 417 barcodes in any orientation are printed at low speed for better readability Exceptions The command is only valid at the beginning of a line Illegal data cancels the command Values First variation String terminated with N...

Страница 90: ...5 must be a start code d2 0 102 data bytes Stop code is provided by the printer Variable 74 Code 128 auto compress 1 255 00 FF Variable 75 PDF 417 1 255 00 FF Variable length 78 Code EAN 128 auto compress 1 255 00 FF Variable 79 PDF 417 data length specified via integer n nHnL 1D 6B m nL nH d1 dn 1 255 00 FF VFariable The value of m selects the bar code system as described in the table The variabl...

Страница 91: ...fault a can be set a to a 2 e byte segment width used only by GS1 Expanded and Expanded Stacked default 22 must be even number 2 to 22 f word line height used only by UCC128 default 25 can be set 1 to 500 Print GS1DataBar RSS data length specified As of firmware 2 00 ASCII GS k m nL nH d1 dn Hexadecimal 1D 6B m nL nH d1 dn Decimal 29 107 m nL nH d1 dn m Type 61 GS1 62 GS1 Truncated 63 GS1 Stacked ...

Страница 92: ...3 to 90 The number of rows in the matrix of code words d columns limit 7 to 30 The number of columns in the matrix of code words e x dimension limit 1 to 7 Width of single module in dots f Y dimension limit 2 to 25 Height of the code word in dots Defaults a 1 b 2 c 58 d 7 e 3 f 10 PDF 417 is a multi row continuous variable length symbol which has high data capacity Each symbol has between 3 and 90...

Страница 93: ... adjusted to vary the symbol s overall aspect ratio to best fit an available space Each row has a left and right row indicator with a data region between The left most character in the top row of the data region is the total number of characters in the data region excluding error correction characters Characters within the data region are designed to be read from left to right starting on the top ...

Страница 94: ...differences in how they operate in the two modes Print and return to standard mode ASCII FF Hexadecimal 0C Decimal 12 The processed data is printed and the printer returns to standard mode The developed data is deleted after being printed This command has the same code as the print and ejects slip command which is executed when the printer is not in page mode Exceptions This command is enabled onl...

Страница 95: ...1B 32 Set line spacing 1B 33 It is possible only to set values for the following commands in page mode These commands are not executed Select or cancel 90 degree clockwise rotation 1B 56 Set counter clockwise rotation 1B 12 Select justification 1B 61 Select or cancel upside down printing 1B 7B Set left margin 1D 4C Set print area width 1D 57 The table that follows shows the difference in memory al...

Страница 96: ...mmand is effective only in page mode Select print direction in page mode ASCII ESC T n Hexadecimal 1B 54 n Decimal 27 84 n Value of n Start position 0 Upper left corner proceeding across page to the right A 1 Lower left corner proceeding up the page B 2 Lower right corner proceeding across page to the left upside down C 3 Upper right corner proceeding down page D Default 0 Select the printing dire...

Страница 97: ...the upper left of the area to be printed x0 y0 The length of the area to be printed in the y direction is set to d y inches The length of the area to be printed in the x direction is set to d x inches Use the equations to determine the Value of x0 y0 dx and dy x0 n 1 n2 256 horizontal direction of the fundamental calculation pitch y0 n3 n4 256 vertical direction of the fundamental calculation pitc...

Страница 98: ...per roll is used and the horizontal starting buffer position does not move The reference starting position is set by select print direction in page mode 1B 54 This sets the absolute position in the vertical direction when the starting position is set to the upper left or lower right and sets the absolute position in the horizontal when the starting position is set to the upper right or lower left ...

Страница 99: ... 65536 When pitch n is specified to the movement upward nL nH 256 65536 N Exceptions This command is used only in page mode otherwise it is ignored Any setting that exceeds the specified printing area is ignored Macros These commands are used to select and perform a user defined sequence of printer operations Select or cancel macro definition ASCII GS Hexadecimal 1D3A Decimal 29 58 Starts or ends ...

Страница 100: ... button is pressed the printer executes the macro once The printer repeats this operation the number of specified times When the macro is executed by pressing the paper feed button m 1 paper cannot be fed by using the paper feed button Formulas The waiting time is t 100 ms for every macro execution m specifies macro executing mode when the LSB least significant bit m 0 The macro executes r times c...

Страница 101: ...e returned which is the default Transmit last MICR read ASCII ESC w R Hexadecimal 1B 77 52 Decimal 27 119 82 Resend the previously decoded MICR data as if the parsing has not been defined to the host The return data is defined in the Read MICR data and transmit command 1B 77 01 without parsing and presents the data from the last MICR read since power up or reset or indicates in the status that no ...

Страница 102: ...gth field name Selector Comments Transit number T Full 9 digit routing transit number Bank number B Digits 4 8 of transit number Check digit D Digit 9 of transit number Variable length field name Selector Comments Account number A Check serial number C Separate from account number Amount This field may not be present or readable Variable length field optional modifiers Selector Comments Zero fill ...

Страница 103: ...ld invalid length check digit in valid Sample parsing formats The following strings show various sample formats that you can use assuming they meet the parsing format needs Included with the sample format is a description of the data that is returned to the application ESC w p 18 A CR Maximum 18 characters in the account number Final carriage return ESC w p 18 X A CR Maximum 18 characters in the a...

Страница 104: ...eck number Field separator Two digit status Final carriage return Notes All parameters are ASCII characters i e greater than or equal to 0x20 with the exception of a non ASCII character enclosed in single quotes as a field separator This applies both to parameter specifications sent from application to printer and to MICR data returned from printer to application Parameters are positional their or...

Страница 105: ... Transit symbol o onus symbol Amount symbol Dash c Check serial number x Any other number A number bracketed by on us symbols in the auxiliary on us field is the check serial number occccccotxxxxxxxxxtxxxxxxxxo Otherwise a three or more digit number to the right of the rightmost on us symbol and to the left of the leftmost amount symbol if an amount field is present is the check serial number txxx...

Страница 106: ...e would not be able to pick out the check serial number because it is not separated from the rest of the account number txxxxxxxxxtccccxxxxxxxxxxo In this example without an exception table entry the firmware would not be able to pick out the check serial number correctly because it is imbedded within the rest of the account number txxxxxxxxxt xxx ccc xxxxxxxxxxo Loading the exception table The ex...

Страница 107: ...haracters and 0 1 0 0 1 0 1 0 account 10 characters then stored in the other three words of the table entry using 0x1B0x730x240x4A27 0x1B0x730x000x0028 0x1B0x730x000x0029 Example 2 t22137 632t0016042202o927540 2754 is the check serial 6042202 is the account To load the third table entry which starts at word 30 the transit number 2137 632 would be stored in the first two words of its table entry us...

Страница 108: ...ing the 3 byte address addr If any of the memory locations addressed by this command are not currently erased the command is not executed The printer disables interrupts while writing to flash Any command that cause data to be written to flash should be followed by a 50 Msec delay to allow significant time for the write operation Read from user data storage ASCII ESC 4 m a0a1a2 Hexadecimal 1B 34 m...

Страница 109: ...he default condition for user defined character storage Any user defined characters defined following this command are not preserved over a power cycle n 51 ASCII n 3 Hex 33 Load user defined characters to flash memory An application must use this command to store user defined characters in flash memory Any user defined characters defined following this command are stored in flash memory A user de...

Страница 110: ...ASCII GS n Hexadecimal 1D 40 n Decimal 29 64 n Value of n 49 50 n 49 ASCII n 1 Hex 31 This command erases all 64K flash memory sectors allocated to user defined character and logos storage Those sectors should be erased in two situations when the logo definition area is full and an application is attempting to define new logos and when an application wants to replace one user defined character set...

Страница 111: ...by integer extending the existing codepage selection as enumerated in the select international character set select character code table command The firmware standard list is incrementally extended each time a new single or double byte set is downloaded Single byte downloaded fonts are selected by m 3 and 0x40 n 0x80 Since there are only three double byte character sets supported the value 0x80 0x...

Страница 112: ... the printer returns either ACK or NAK to the host computer when each command is received ACK hexadecimal 06 Sent when the printer has received a host transmission and has completed the request successfully NAK hexadecimal 15 Sent when a request is unsuccessful Communicates to the printer information downloaded from applications Data is downloaded to flash memory to query the state of the firmware...

Страница 113: ...s of the possible sector are restricted depending upon the flash part type The printer transmits an ACK if the sector number is acceptable or an NAK if the sector number is not acceptable Sector numbers start at 0 Exceptions Available only in download mode Get firmware CRC ASCII GS ACK Hexadecimal 1D 06 Decimal 29 6 Causes the printer to calculate the CRC for the currently selected sector and tran...

Страница 114: ...yte high Erase selected flash sector ASCII GS DLE n Hexadecimal 1D 10 n Decimal 29 16 n Value and range of n 0 7 512k bytes flash 0 15 1 M bytes flash 0 31 2M bytes flash Erase the previously selected sector The printer transmits ACK when the sector has been erased If the previous sector is not successfully erased or if no sector was selected the printer transmits NAK Exceptions Available only in ...

Страница 115: ...cture for subsequent use by the set paper type command nL nH 256 define the number of bytes x that follow These bytes contain the proprietary structure and CRC to operate the thermal print head This structure contains the hardware parameter values needed to print on formulations of monochrome and two color thermal papers New paper definitions should be obtained from trusted sources such as the WN ...

Страница 116: ...ons failed or that the write to flash failed The alternatives seem to be to retry the block or halt loading and assume a hardware failure Related information Available only in download mode Return paper type description ASCII GS 0x8F m Hexadecimal 1D 8F m Decimal 29 143 m Value and range of m m is the paper type index 0 m 15 This command will return from flash memory a paper type description index...

Страница 117: ...P file Download BMP logo 1B 07 Generate tone 1B 0C Print data in page mode 1B 12 Select 90 degree counter clockwise rotated print 1B 14 n Set column 1B 16 n Select pitch column width 1B 20 n Set right side character spacing 1B 21 n Select print mode 1B 24 nL nH Set absolute starting position 1B 25 n Select or cancel user defined character set 1B 26 sc1c2n1d1 nndn Define user defined character sets...

Страница 118: ...Select paper sensors to output paper end signals parallel only 1B 63 34 n Select sensors to stop printing 1B 63 35 n Enable or disable panel button 1B 64 n Print and feed n lines 1B 65 n Print and reverse feed n lines 1B 66 m n Set slip paper waiting time 1B 6A k Read from non volatile memory NVRAM 1B 6D Perform partial knife cut or code 1A 1B 70 n p1 p2 Generate pulse to open cash drawer 1B 71 Re...

Страница 119: ...tal and vertical minimum motion units 1D 56 m Select cut mode and cut paper or code1D56 mn 1D 56 mn Select cut mode and cut paper or code1D56 m 1D 57 nLnH Set printing area width 1D 5C nLnH Set relative vertical print position in page mode 1D 5E r t m Execute macro 1D 61 n Select or cancel unsolicited status mode 1D 66 n Select pitch for HRI characters 1D 68 n Select bar code height 1D 6B md 1 dk ...

Страница 120: ... and store logo 1D 9B mn Logo print with knife cut 1D A0 nlnh Set temporary max target speed 1D FF Reset firmware 1E Select receipt station 1F 03 1605n Set interpretation of Set current color command 1F 03 16 f s p r t Set Logo 1F 03 17 a m s Set Logo attribute mapping 1F 04 n Convert 6 dots mm bitmap to 8 dots mm bitmap 1F 05 n Select superscript or subscript modes 1F 56 Send printer software ver...

Страница 121: ...TH320 TH420 Programmers Guide 113 Character Sets Character code 437 USA Standard Europe ...

Страница 122: ...Programmers Guide TH320 420 114 Codepage 737 Greek ...

Страница 123: ...TH320 TH420 Programmers Guide 115 Codepage 850 Multilingual ...

Страница 124: ...Programmers Guide TH320 420 116 Codepage 852 Slavic ...

Страница 125: ...TH320 TH420 Programmers Guide 117 Codepage 857 Turkish ...

Страница 126: ...Programmers Guide TH320 420 118 Codepage 858 with Euro symbol ...

Страница 127: ...TH320 TH420 Programmers Guide 119 Codepage 860 Portuguese ...

Страница 128: ...Programmers Guide TH320 420 120 Codepage 862 Hebrew ...

Страница 129: ...TH320 TH420 Programmers Guide 121 Codepage 863 French Canadian ...

Страница 130: ...Programmers Guide TH320 420 122 Codepage 865 Nordic ...

Страница 131: ...TH320 TH420 Programmers Guide 123 Codepage 866 Cyrillic ...

Страница 132: ...Programmers Guide TH320 420 124 Codepage 1252 Windows Latin 1 ...

Страница 133: ...TH320 TH420 Programmers Guide 125 Codepages 1251 and 1255 are new for firmware 2 03 TH320 and firmware 2 09 TH420 or newer Codepage 1251 Cyrillic ...

Страница 134: ...Programmers Guide TH320 420 126 Codepage 1255 Hebrew ...

Страница 135: ...2K bytes are not available the electronic journal feature cannot be used Allocation success or failure information is available to the interface via commands described below Loss of power results in loss of any data currently in the journal RAM buffer Triggers that cause the journal data in RAM to be written to flash are Knife Cut command Write Journal RAM Data to Flash command described below Pri...

Страница 136: ...e duplicate receipt by the operator If a receipt is over 4Kbytes in size and there are less than 4Kbytes available in the journal flash buffer the printer will not print a portion of the duplicate receipt in the middle of the original receipt This portion of the duplicate receipt is lost Exception Conditions in Direct Journal Mode When there isn t enough memory available in the journal flash buffe...

Страница 137: ...e journal Receipt character attributes and bar code attributes are set to their default values before and after printing the journal Receipt station is selected Macro definitions are not cleared If the macro execution command is in the journal the macro definition should be in the journal also If not the printed journal might look ok before a power cycle when the macro definition is still in memor...

Страница 138: ...e journal flash buffer will not generate status until the journal is printed Don t send commands that read write or erase flash Don t send commands intended for diagnostics or printer configuration If saving Page Mode data exit Page Mode before exiting Direct Journal Mode Otherwise results are unpredictable If saving graphics data results could be unpredictable For example if the data bytes 0x1F 0...

Страница 139: ... Mode 0x1F 0x0A 0xD3 Move to End of Journal most recent entry 0x1F 0x0A 0xD4 Move to Start of Journal least recent entry 0x1F 0x0A 0xD5 Move to next Journal entry towards more recent entry 0x1F 0x0A 0xD6 Move to previous Journal entry towards less recent entry 0x1F 0x0A 0xDA Print Journal Entry knife cut to knife cut Print Journal Entry considerations in Direct Journal Mode Application controls al...

Страница 140: ...buffer are set to the end past the most recent entry Subsequent Journal Entry commands change these pointers as described below 1F 0A D2 Exit Print Journal Entry Mode At exit from Print Journal Entry Mode any format conditions in effect remain in effect These can be cleared by following the Exit Print Journal Entry Mode command with the Initialize Printer command 0x1B 0x40 While not in Print Journ...

Страница 141: ... this command does nothing Suitable for journal entries stored in Direct Journal Mode See notes on printing below 1F 0A DA Print Journal Entry knife cut to knife cut This command executes commands and prints data from the current journal flash buffer pointers up to 0x0A 0x0A in the buffer After printing it feeds paper for operator visibility of the last line printed or feeds and cuts if Journal Cu...

Страница 142: ...Programmers Guide TH320 420 134 TH420 Additional Features ...

Страница 143: ...t Since the nn dn dots on the defined characters that were used on the previous printers will appear smaller on the TH420 printer 1B 2A m n1 n2 d1 dn Select bit image mode In A756 emulation mode graphics are scaled to best match the size of the graphic in the A756 printer 1B 33 n Set line spacing This command uses n in terms of n 360 inches Since the A756 had a fundamental step of 1 152 inch and t...

Страница 144: ...ands 1D 81 1D 9B are in bold or existing commands that have been altered by the addition of two color capacity WN two color and color interpreted commands Hexadecimal ASCII Description 1B 72 m ESC r m Set current color 1D A0 n 1D GS Set temporary maximum target speed 1D 23 n GS n Select current logo 1D 42 n GS B n Select or cancel white black reverse print Mode 1D 2A n1 n2 d1 dm GS n1 n2 d1 dm Def...

Страница 145: ...nd store logo 1D 9B m n 1D GS Logo print with knife cut 1D 99 l n m o GS 0x9B l n m o Apply margin message mode 1F 03 16 05 n US Set interpretation of Set current color command Colorization commands Hexadecimal ASCII Description 1F 03 16 fm n o p q US ETX SYN Set surround graphics 1F 03 16 f s p r t US ETX SYN f s p r t Set colorization 1F 03 17 a m s US ETX ETB a m s Set attribute mapping Note Th...

Страница 146: ... setup for Two color paper A758 A756 6 00 7 52 8 13 Standard 13 24 7 52 3 The following list clarifies how the TH420 printer will behave in each emulation mode Two color paper and commands and features are supported only in TH420 native mode If the paper type is changed using the 0x1D 0x81 command the font and default lines per inch LPI will be setup as in the table above If only the font is chang...

Страница 147: ...tware version Real time Code hexadecimal Command Page 10 04 n Real time status transmission DLE sequence 10 05 n Real time request to printer DLE sequence 1D 03 n Real time request to printer GS sequence 1D 04 n Real time status transmission GS sequence 1D 05 Real time printer status transmission 1F 7A n Real time disable 100 Unsolicited status mode Code hexadecimal Command 1D 61 n Select or cance...

Страница 148: ...Slip n 72 inch Range of n 0 127 in A756 emulation 0 255 in A758 emulation and TH420 native mode Feeds paper n dot rows without printing Receipt moves n rows if the print buffer is empty Set horizontal and vertical minimum motion units ASCII GS P x y Hexadecimal 1D 50 x y Decimal 29 80 x y Value of x Horizontal Value of y Vertical Range of x 0 255 Range of y 0 255 Default of x 203 Default of y 203 ...

Страница 149: ...ive mode must be used to turn the feature off Value descriptions f function selector and defines which parameters are used s dot row space before object distance p dot row past an object r repetition space distance in mm t margin message toggle mode f 0 turn off all colorization functions default No other parameters are required f 1 link print logo after knife cut equivalent to printing a transact...

Страница 150: ...in message printing using logo F2 1F 03 16 03 s r t with s being the skip distance r the distance between repetitions and t the toggle mode Toggle mode values for t 0 both left and right side 1 toggle sides starting with left side 2 right side margin message only 3 left margin message only After executing a knife cut command and the f 1 steps if s 0 execute the following skip s dot rows 15 s comma...

Страница 151: ...fter the logo restore background merge suspension 1D 9B previous value Related information This command is utilized in the WN utility The utility can be used to pre configure new printers with a default colorization setup without requiring any application changes The default setup was designed to provide a general level of colorization features that would not affect the printer operation You can e...

Страница 152: ...iguration switch setting one or two combinations of character attribute mappings including substitute attribute settings for color effects The attributes of the character code are used to form the desired pixel character when the code is placed into the raster print buffer An m bit value set to on in the original attribute mapped table above will have its attributes set to the corresponding bit va...

Страница 153: ...n The TH420 has three methods of providing status to the application These methods are through batch status commands real time status commands and unsolicited status mode An application may use one or more of these methods to understand the current status of the printer A brief description of each of these methods follows Batch status commands These commands are sent to the printer and stored in t...

Страница 154: ...nterpreted as Paper Out 03 Paper Out Default High Paper Out Low Paper Present 03 Ignored No Change Printer Does Not Stay BUSY1 1PAPER EXHAUST LINE is valid to indicate previously requested status This command allows the printer to inform the host when the data in the buffer has been processed when the IEEE 1284 interface is in unidirectional mode When this command is send to the printer the printe...

Страница 155: ...ands Moving data through the buffer Applications should not let the buffer fill up with real time commands when the printer is busy at the RS 232c interface A busy condition at the RS 232c interface can be determined by bit 3 of the response to 1D 05 or 1D 04 1 or 10 04 1 The reason for a particular busy condition can be determined by other responses to 1D 04 n or 10 04 n Although the printer resp...

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

Страница 157: ...TH320 TH420 Programmers Guide Wincor Nixdorf International GmbH D 33094 Paderborn ...

Отзывы: