background image

TH250 

 

Programmer’s Guide 

 

 

 

 

 

 114

 

Exceptions 

If this command is received while a macro is being defined, the macro definition is aborted and the 
definition is cleared. If the macro is not defined or if r is 0, nothing is executed. 

 
 

Summary of Contents for TH250

Page 1: ...TH250 Thermal Printer Programmer s Guide January 2016 ...

Page 2: ...Enable or disable receipt test mode 9 Electronic Journal Datascope Diagnostic 10 Printer emulations 10 Printer settings and functions 10 Programming the Printer 13 Overview of commands 13 Comparison to A793 13 Two color commands comparison TH210 to TH250 15 Character appearance 16 Width specifications 16 Print zones 16 Print zones for 80mm paper 16 Emulation modes 18 Print setup in emulation modes...

Page 3: ... 105 Print DataMatrix symbol data in the symbol storage area 105 Page mode 107 Print and return to standard mode 107 Cancel print data in page mode 107 Print data in page mode 108 Select page mode 108 Select standard mode 109 Select print direction in page mode 109 Select print area in page mode 110 Set absolute vertical print position in page mode 111 Set relative vertical print position in page ...

Page 4: ...ags 128 Enable feed to mark on form feed 128 Enable feed to mark on cut 128 Enable black bar paper low detection 128 Enable black bar max feed 129 Enable black bar threshold 129 Enable black bar offset 129 Miscellaneous configuration commands 130 Set diagnostics mode 130 Enable or disable knife 130 Enable or disable paper low sensor 130 Set max power 131 Set printer emulation 131 Reset settings to...

Page 5: ...ian 154 Character code table Page 8 WPC1252 Latin I 155 Character code table Page 9 PC862 Hebrew 156 Character code table Page 10 PC737 Greek 157 Character code table Page 11 PC874 Thai 158 Character code table Page 12 PC857 Turkish 159 Character code table Page 13 WPC1251 Cyrillic 160 Character code table Page 14 WPC1255 Hebrew 161 Character code table Page 15 KZ_1048 Kazakh 162 Character code ta...

Page 6: ...are already familiar with the printer Where to find advanced technical information This guide contains the most complete information available on programming the printer If you cannot find what you need here or would like further guidance on how to program the printer contact a Wincor Nixdorf representative for assistance If you are having problems with the physical operation of the printer the Se...

Page 7: ...rogram CRC Failure causes Start up Diagnostics to stop the printer beeps and the LED flashes a set number of times indicating the nature of the failure The table in the Indicators section page 14 describes the specific tone and LED 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 14 describes the spe...

Page 8: ... and prints them on the receipt during the print test See the sample test printout on the next page These tallies can be used to determine the printer s state of health Model number Serial number CRC number Number of lines printed Number of knife cuts Number of hours the printer has been on Number of flash cycles Number of cutter jams Number of times the cover is opened Number of barcodes printed ...

Page 9: ... per model or printer configuration Accessing the remote diagnostic tallies Refer to Command descriptions in Chapter Programming commands Status commands Transmit printer ID remote diagnostics extension Hexadecimal 1D 49 40 n TH250 Diagnostics Form ...

Page 10: ...Continuous slow blinking Power supply and max power setting don t match Tone Two tone beep low frequency high frequency Start up diagnostics completed successfully LED and Tone Two tone beep low frequency high frequency Continuous quick blinking of LED When entering flash download mode Note The printer enters flash download mode when a download command is sent to the printer The printer is also ab...

Page 11: ...F flow control Data reception errors Alternate DTR DSR USB Driver USB NAK Diagnostics Modes Normal Datascope with or without graphics Receipt test Printer Emulations Native mode TH210 TH210 2 TH210 TH210 2 A794 emulation A793 emulation LEGACY emulation TH230 emulation Emulation Software options Printer ID mode Default lines per inch Carriage return usage Code 128 Check Digit Default font Font size...

Page 12: ...then prints Diagnostics Form I Press the paper feed button within two seconds to enter the configuration main menu The printer prints Diagnostics Form II followed by the Printer Configuration Menu and waits for a main menu selection to be made see sample printout on page 13 short clicks are used except when answering yes or validating selection 4 To communicate with the printer you will press the ...

Page 13: ...Packets When Error Accept Packets When Error Note Press the paper feed button for at least one second to validate the selection Setting the RS 232C Serial interface settings Refer to the section Configuring the printer Diagnostics modes To change the the diagnostic modes enter the configuration menu select Set Diagnostics Modes from the main menu and select one of the following modes Normal normal...

Page 14: ...u have enabled the data scope mode exit the configuration menu 2 Run a transaction from the host computer All commands and data sent from the host computer will be printed as hexadecimal characters as shown in the illustration To exit the data scope mode 1 Enter the configuration menu again 2 Disable the data scope mode 3 Exit the configuration menu The printer is on line and can communicate norma...

Page 15: ...for setting the printer emulation Caution Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that might affect the performance of the printer Press the paper feed button as instructed to select the printer emulation you want Native mode TH210 TH210 2 TH210 TH210 2 A794 emulation A793 emulation LEGACY emulation TH230 emulation Note Press the pap...

Page 16: ...rinting or adjust for paper variations When printer prints high density color print lines text or graphics it automatically slows down Factory setting is 100 WARNING Choose a color density setting no higher than necessary to achieve acceptable color print density Failure to observe this rule may result in a printer service call and may void the printer warranty Running at a higher energy level wil...

Page 17: ...e section Configuring the printer Select the paper type sub menu to set Paper Type Name Sets the printer to optimum performance for paper being used This can also be done through the command 1D 81 m n See the following chapter for command usage Available paper types may vary Refer to our website www wincor nixdorf com for an up to date list of qualified paper manufacturers Currently there are 3 ty...

Page 18: ... TH210 2 A794 and TH250 because of the physical differences of a 6 dots mm head A793 versus an 8 dots mm head TH210 TH210 2 A794 and TH250 Command Description Difference between previous product and new product emulation mode 15n Feed n dot rows This command will move the paper on the receipt in n 203 inch steps instead of n 152 inch steps 16 n Add n extra dot rows The dot rows will be measured in...

Page 19: ... provide the best match 1B 5C n1 n2 Set relative print position The parameter to this command is in units of dots However the command moves and aligns to character positions In A793 emulation mode this command calculates how many character positions to move based on the A793 character width in dots 10 versus the TH250 13 1B 61 n Select justification This command does true dot resolution alignment ...

Page 20: ...onochrome graphics 1D 83 n1 n144 GS 0x83 n1 n144 Print raster color graphics 1D 84 n m n1 n2 d1 dx GS 0x84 n m n1 n2 d1 dx Download logo image 1D 85 m n GS 0x85 m n Reverse color text mode two color 1D 86 m GS 0x86 m Monochrome shade mode 1D 87 m GS 0x87 m Color shade mode 1D 89 n m 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 n m GS 0x8C n m M...

Page 21: ...6 Characters per inch 20 3 Characters per line 44 Characters per line 56 Cell size 13 x 24 dots default font 13 x 27 dots Tall fonts 13 x 18 dots paper saving font Cell size 10 x 24 dots default font 10 x 27 dots Tall fonts 10 x 18 dots paper saving font Print zones Print zones for 80mm paper Specifications of print zone for 80mm paper 576 dots addressable 8 dots mm centered on 80mm Top margin to ...

Page 22: ...ion of printing The table shows the combinations of set cancel upside down print set cancel rotated print clockwise and rotated print counterclockwise Rotated clockwise and rotated counterclockwise print commands are mutually exclusive the setting of the last received command is effective Unintended consequences may result when rotated clockwise is mixed with other commands The samples of the prin...

Page 23: ...ation 6 00 Tall 13X27 6 00 7 Default setup for Escape Commands Standard 13X24 6 00 10 The following list clarifies how the TH250 printer will behave in each emulation mode Two color paper commands and features are supported only in 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 cha...

Page 24: ... p2 Generate pulse to open cash drawer 1B 72 m Set current color 1F 03 3C ll hh Set timeout value for low power idle state 1F 70 Set printer into low power idle state 1D 56 m Select cut mode and cut paper or code 1D 56 m n 1D 56 m n Select cut mode and cut paper or code 1D 56 m 1D 81 m n Set paper type for two color printing 1F 03 16 05 n Set interpretation of Set current color command 1F 03 4E n1...

Page 25: ...olumn width 1B 20 n Set right side character spacing 1B 21 n Select print mode 1B 25 n Select or cancel user defined character set 1B 26 s c1 c2 Define user defined character set 1B 2D n Select or cancel underline mode 1B 3A 30 30 30 Copy character set from ROM to RAM 1B 3F n Cancel user defined character 1B 45 n Select or cancel emphasized mode 1B 47 n Select or cancel double strike 1B 49 n Selec...

Page 26: ...umn width 1B 20 n Set right side character spacing 1B 21 n Select print mode 1B 25 n Select or cancel user defined character set 1B 26 s c1 c2 Define user defined character set 1B 2D n Select or cancel underline mode 1B 3A 30 30 30 Copy character set from ROM to RAM 1B 3F n Cancel user defined character 1B 45 n Select or cancel emphasized mode 1B 47 n Select or cancel double strike 1B 49 n Select ...

Page 27: ...lect single density graphics 1B 59 n1 n2 d1 dn Select double density graphics 1C 70 n m Print flash logo 1C 71 n Define flash logos 1D 23 n Select the current logo downloaded bit image 1D 2A n1 n2 d1 dn Define downloaded bit image 1D 2F m Print downloaded bit image 1D 82 n1 n72 Print raster monochrome graphics 1D 83 n1 n144 Print raster color graphics 1D 84 m n1 n2 d1 dx Download logo image 1D 8B ...

Page 28: ...t status 1F 56 Send printer software version Real time Code hexadecimal Command 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 Real time commands disabled Automatic status back Unsolicited status m...

Page 29: ...ated 1D 6B m n L n H d1 dn Print GSI Databar formerly RSS data length specified 1D 70 a b c d e f Select PDF 417 parameters 1D 71 a b c d e f L f H Set GSI Databar formerly RSS parameters 1D 77 n Select bar code width 1D 28 6B 05 00 36 42 m d1 d1 Set DataMatrix parameters 1D 28 6B 05 00 36 43 n Set DataMatrix module size 1D 28 6B pL pH 36 50 30 d1 dk Store DataMatrix data in symbol storage area 1D...

Page 30: ...ring logos and user defined characters 1D 22 90 n Return flash area size 1D 40 n Erase user flash sector 1D 97 m n User storage status 1D F0 10 n Lock permanent flash area Flash download Code hexadecimal Command 1B 5B 7D Switch to flash download mode 1D 0E Erase all flash contents except boot sector 1D 0F Return main program flash CRC 1D 11 00 00 00 00 d1 dn Download Application 1D FF Reset firmwa...

Page 31: ...1F 03 51 04 nn Set black bar max feed 1F 03 51 05 FF Set black bar threshold 1F 03 51 06 ll hh Set black bar offset Miscellaneous configuration commands Code hexadecimal Command 1F 03 00 n Set diagnostics mode 1F 03 02 n Enable or disable knife 1F 03 03 n Enable or disable paper low sensor 1F 03 04 n Set max power 1F 03 07 n Set printer emulation 1F 03 09 Reset settings to default values 1F 03 0A ...

Page 32: ...t fine adjustment of partial cut steps 1F 03 32 n Set printer ID mode 1F 03 33 n Set default code page at power on 1F 03 3D n Set Asian ASCII characters to narrow 1F 03 47 n Set vertical white space 1F 03 52 n fL fH dL dH Set printer tone 1F 03 54 00 n Enable or disable shutdown mode 1F 03 54 01 ll hh Set shutdown mode timeout 1F 03 55 nn Set print quality level ...

Page 33: ...nd for example bit information Command descriptions Printer actions The printer function commands control the following basic printer functions and are described in order of their hexadecimal codes Resetting the printer Cutting the paper Opening the cash drawers Clear printer ASCII DLE Hexadecimal 10 Decimal 16 Clears the print line buffer without printing and sets the printer to the following con...

Page 34: ...ly cuts the receipt The default setting leaves 5mm 0 20 inch of paper on the left edge See setting partial cut distance in diagnostics There are two codes Hex 1A or 1B 6D for this command and both codes perform the same function Formulas The cut edge is 144 dot rows or 18 mm 0 71 inch above the print station Exceptions The command is valid only at the beginning of a line ASCII SUB 0x1A is ignored ...

Page 35: ...27 64 Default Character pitch 15 6 CPI Column width 44 characters Extra dot rows 3 Character set Code Page 437 Printing position Column One Clears the print line buffer and resets the printer to the default settings for the start up configuration refer to Default settings above Data in the receive buffer is not cleared and printing position moves to the beginning of the line Single wide single hig...

Page 36: ...op the printer when the paper is depleted Enable or disable panel button ASCII ESC c 5 n Hexadecimal 1B 63 35 n Decimal 27 99 53 n Value of n 0 Enable 1 Disable Default 0 Enable Enables or disables the paper feed button If the last bit is 0 the paper feed button is enabled If the last bit is 1 the paper feed button is disabled Exceptions Functions that require the paper feed button except for the ...

Page 37: ...r The m values 0 and 1 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 0 0 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 colors paper type command ...

Page 38: ...k papers Default 0 monochrome paper This command will set the optimum parameter values in the thermal print engine control hardware for defined monochrome or two color paper chemistry The m n parameters select paper category and formulation version respectively m n 0 0 defines the default monochrome black category initial version paper out of box printers will also have factory preset descriptions...

Page 39: ...tically be changed to monochrome paper and the font and LPI will be changed as in the table below If emulation is switched from any emulation to Native or TH230 the font and LPI will remain unchanged because Native and TH230 modes support all font and LPI options offered in the emulation modes The Set Default LPI option in the configuration menu is not offered in LEGACY emulation mode The LPI is s...

Page 40: ...r has not received data for that amount of seconds it will shutdown to the low power 1 watt state A value of ll hh 00 00 disables this feature To bring the printer out of the low power idle state press the paper feed button Note shutdown mode 1F 03 54 00 n must be enabled for this to work Set printer into low power idle state ASCII US p Hexadecimal 1F 70 Decimal 31 112 This command puts the printe...

Page 41: ... 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 use it as print command Related information See ignoring using the carriage return in Diagnostics for more information This command is ignored in LEGACY emulation Carriage return line feed pair prints and feeds only one line Feed n print lines AS...

Page 42: ...II SYN n Hexadecimal 16 n Decimal 22 n Value of n Number of extra dot rows Range of n 0 16 Default 3 extra dot rows Adds n extra dot rows n 8 mm n 203 inch to the character height to increase space between print lines or decrease the number of lines per inch Formulas The following table shows the relationship between the number of lines per inch and each extra dot row added Extra rows Lines per in...

Page 43: ...he line height equals the character height when n is too small If the set horizontal and vertical minimum motion units command 1D 50 is used to change the horizontal and vertical minimum motion units the parameters of this command print and feed paper will be interpreted accordingly Related information For more information see the description of the set horizontal and vertical minimum motion units...

Page 44: ...adecimal 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 Sets the horizontal and vertical motion units to 1 x inch and 1 y inch respectively until the printer is initialized reset or powered off When x or y is set to 0 the default setting for that motion unit is used When combined with other commands the calc...

Page 45: ...0 is used to change the horizontal and vertical minimum motion unit the parameters of the set relative print position command will be interpreted accordingly For more information see the description of the command set horizontal and vertical minimum motion units command 1D 50 in this document Compatibility information TH250 receipt vs A793 receipt There is a difference in the normal behavior of th...

Page 46: ...1B 32 will overwrite this setting The minimum line spacing is 8 5 lines per inch The line spacing equals the character height when n is too small If the set horizontal and vertical minimum motion units command 1D 50 is used to change the horizontal and vertical minimum motion unit the parameters of this command set line spacing will be interpreted accordingly Related information For more informati...

Page 47: ...be moved right of the current position n1 Remainder after dividing n by 256 n2 Integer after dividing n by 256 The values for n1 and n2 are two bytes in low byte high byte word orientation To move the relative starting position left of the current position n Number of dots to be moved left of the current position n1 Remainder after dividing 65 536 n by 256 n2 Integer after dividing 65 536 n by 256...

Page 48: ... the print head This method of processing allows the A793 to backup in the print string and replace characters and their associated attributes when a Set relative print position command instructs the printer to move the print position to the left In order to improve the speed of printing the TH250 moves the data into a buffer for the printhead when it receives it When the Set relative print positi...

Page 49: ...ing left margin the left margin setting is not changed The width of the printing area is set by the set printing area width command 1D 57 which follows this command See the set printing area width command in this document for a description of that command If the setting exceeds the printable area the maximum value of the printable area is used The maximum printable area is 576 dots See the illustr...

Page 50: ...or a description Formulas To set the width of the 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 Exceptions This command is effective...

Page 51: ...y graphics Related information This is ignored in LEGACY emulation Select 90 degree counter clockwise rotated print ASCII ESC DC2 Hexadecimal 1B 12 Decimal 27 18 Rotates characters 90 degrees counter clockwise The command remains in effect until the printer is reset or until a clear printer 0x10 select or cancel upside down print 1B 7B or cancel rotated print 1B 56 command is received Exceptions T...

Page 52: ...it is changed by the set horizontal and vertical minimum motion units 1D 50 command the value must be in even units and not less than the minimum amount of horizontal movement In standard mode the horizontal motion unit is used In page mode the horizontal or vertical motion unit differs and depends on the starting position of the printable area When the starting printing position is the upper left...

Page 53: ... 80mm Paper CPI Standard 44 15 6 Compressed 56 20 3 Selects the print mode standard compressed emphasized underlined double high or double wide until the printer is initialized reset or powered off When double height mode is enabled for some charactes on a line all characters are aligned on the baseline When double width mode is enabled characters are enlarged to the right starting from the left s...

Page 54: ...1 data character k data Decimal 27 38 s c1 c2 character 1 data character k data Values and ranges 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 numbe...

Page 55: ...f characters to be defined in this command string character i data ni d1 d j x ni for 1 i k ni the number of dot columns for the ith character 1 ni 16 d the dot data for the characters bit gets printed to 1 and not printed to 0 The number of bytes for the ith character cell is j x ni The bytes are printed down and across each cell starting from the left side Defines and enters downloaded character...

Page 56: ...rizontal tab set absolute start position or set relative print position commands Underline thickness grows as the vertical size of the character grows This command and the Select Print Mode s command 1B 21 turn underline on and off in the same way Exceptions This command is ignored if n is out of the specified range This command does not affect HRI characters Related information In A793 emulation ...

Page 57: ...an be cancelled for each pitch independently by selecting the pitch using the 1B 21 command 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 69 n Value of n 0 bit 0 not selected 1 bit 0 selected When 0 and 1 are the least significant bit LSB Range of n 0 255 Default ...

Page 58: ...ages or downloaded bit images This command does not affect HRI characters Related information This command and the select print mode s command 1B 21 function identically They should have the same setting when used together In A793 emulation this command is unrecognized and the parameter byte is put into the print buffer Select or cancel italic print ASCII ESC I n Hexadecimal 1B 49 n Decimal 27 73 ...

Page 59: ... I 5 Code Page 865 5 Sweden 6 Code Page 858 6 Italy 7 Code Page 866 7 Spain 8 Code Page 1252 8 Japan 9 Code Page 862 9 Norway 0A Code Page 737 0B Code Page 874 0C Code Page 857 0D Code Page 1251 0E Code Page 1255 0F Code Page KZ_1048 10 Code Page 1254 11 Code Page 1250 12 Code Page 28591 13 Code Page 28592 14 Code Page 28599 15 Code Page 28605 16 Code Page 864 17 Code Page 720 18 Code Page 1256 19...

Page 60: ...ternational character set 1B 74 n Select or cancel 90 degree clockwise rotated print ASCII ESC V n Hexadecimal 1B 56 n Decimal 27 86 n Value of n 0 Cancel 1 Set Default 0 Cancel Rotates characters 90 degrees clockwise The command remains in effect until the printer initialized reset powered off or until a clear printer 0x10 or rotated print 1B 12 command is received See summary of rotated printing...

Page 61: ...fault 0 Code Page 437 Selects the character set to be useduntil the printer is initialized reset or powered off Look in Appendix B Resident Character Sets for the character sets The alphanumeric characters 0x20 0x7F are the same for each set There are two codes for this command see Select international character code 1B 52 n Both codes perform the same function Related information The LEGACY emula...

Page 62: ... Decimal 29 33 n Value of n 1 8 vertical number of times active font 1 8 horizontal number of times active font Range of n 00 07 10 17 70 77 Default 11 hexadecimal Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 6 as follows With smoothing enabled maximum value of 0 n is 66 Character width selection Hex Decimal Width 00 0 1 Normal 10 16 2 two times wi...

Page 63: ... Tall or 2 color font is selected If 8 eight times height is selected the results are unspecified Related information In A793 emulation this command is discarded and not put into print buffer Select or cancel white black reverse print mode ASCII GS B n Hexadecimal 1D 42 n Decimal 29 66 n Value of n 0 Off 1 On Range of n 0 255 Default 0 off Turns on white black reverse print mode In white black rev...

Page 64: ...olor Value of n 0 white 1 black 2 paper color Default m 0 off Sets a mode for reverse printing effects on text The background color is specified by m while the text color is specified by n Setting m 0 turns off the mode If m n but not zero the printer produces solid printing in the given color This tactic can be used to minimize the firmware busy work The value of current color and white black res...

Page 65: ...e 2 Select superscript size Default 0 Normal size Turns 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 Exceptions This command is ignored if n is out of the specified range Related information In A793 emulation this command is unrecognized and the parameter byte is put into the print buffer Select active us...

Page 66: ...dent and downloaded font sets Double byte fonts Five double byte fonts are built into the TH250 Series printer Simplified Chinese Traditional Chinese Kanji Korean and Thai If the TH250 is set to Unicode the GB18030 Chinese and Vietnamese character sets are available Lock permanent font flash area ASCII GS 0xF0 0x10 n Hexadecimal 1D F0 10 n Decimal 29 240 16 n Value of n n 0x00 lock permanent font ...

Page 67: ...nd Expanded flash memory allocation 1D 22 80 and Select flash area 1D 22 81 n Important While erasing flash memory the printer disables all interrupts including communications To provide feedback to the application the printer responds to the application when the erase is complete with a 0D Hex After sending the erase user flash sector 1D 40 n command an application should wait for the response fr...

Page 68: ...x03 Hexadecimal 1D F0 03 Decimal 29 240 3 Save current font ID number as default font at power up All characters will be printed from the downloaded font Get double byte font CRC font ID ASCII GS 0xF0 0x20 nn Hexadecimal 1D F0 20 nn Decimal 29 240 32 nn This command queries the double byte font CRC where nn is the fontset ID The printer transmits ACK 0x06 followed by the two byte CRC otherwise ret...

Page 69: ...th 576 Maximum height 512 Enters a downloaded BMP logo into RAM or flash The downloaded BMP logo can be printed by using the print downloaded bit image 1D 2F m command To downloaded BMP file to save it as a logo send the hexadecimal code 1B followed by the whole BMP file The printer decodes the BMP file header and will save the image data after checking important parameters such as Width Height Nu...

Page 70: ...576 203 DPI 24 x 576 Value of n Value of n 8 dot single density mode Value of n 8 dot single density mode Value of d n1 256 x n2 3 x n1 256 x n2 Number of bytes of data Printed left to right 8 dot mode printed down then across 24 dot mode Formulas 8 dot single density n1 256 X n2 24 dot single density 3 X n1 256 X n2 Sets the print resolution and enters one line of graphics data into the print buf...

Page 71: ...e 0 m 72 0 n 72 0 r 65535 0 d1 dn 255 Prints a horizontal raster of graphics data one or multiple times Horizontal offset and number of data bytes are variable and specified by parameters Exceptions Advanced raster graphics is not available in page mode Select single density graphics ASCII ESC K n1 n2 d1 dn Hexadecimal 1B 4B n1 n2 d1 dn Decimal 27 75 n1 n2 d1 dn Value of n Value of n 8 dot single ...

Page 72: ...e print buffer Any print command is required to print the line after which the printer returns to normal processing mode Double density mode allows 0 576 dot columns The number of bytes sent is represented by the formulas in the table Each bit corresponds to one horizontal dot Compare to set bit image mode 1B 2A m 1 earlier in this document Related information In LEGACY emulation this command is u...

Page 73: ...haracter set into flash memory or both is responsible for erasing the logo and user defined character set flash memory page when the logo area is full or before a new character set is defined Related information This command is recognized in Native mode In A793 and LEGACY emulations the parameters are put into the print buffer Define downloaded bit image ASCII GS n1 n2 d1 dn Hexadecimal 1D 2A n1 n...

Page 74: ... high 101 203 3 33 Double wide Double high 101 101 The indexed downloaded bit image from RAM or flash will be printed on the receipt station at a size specified by m If the bit image is a monochrome one it is printed in the current color otherwise it is printed as a two color image If doubling or quadrupling exceeds the print paper width maximums 576 with 80mm paper the left side of the image is p...

Page 75: ...to one dot row data for a thermal receipt printer Each bit defines whether or not a dot of the current color will be printed This command is used for printing a monochrome graphic in real time Offsets page and any other modes or overlays including watermark do not apply and are overridden by this command A complete rendering of the intended final image should have been done by the application befo...

Page 76: ...ch row is defined by an integral number of bytes and the number of rows is also an integral number of bytes Note that n2 can be any length subject to memory space availability For each color dot row starting at the top left a two part parameter byte string is used to define first all dots that are not white and the second half defines all dots where the color black Thus all dots that are on 1 in t...

Page 77: ... significant number of on dots to allow for future foreground print readability Note The old logo size and current justification mode are used to create a new logo image at full paper width size by filling in white space at either or both sides if needed This new logo will provide for minimal performance impacts when it is selected for use in watermark mode After sending the shading command wait 5...

Page 78: ...d Turning monochrome shade mode on turns color shade mode off Color shade mode ASCII GS Ox87 m Hexadecimal 1D 87 m Decimal 29 135 m This applies a mixing of color into any monochrome objects such as text and monochrome logos Rather than fading away this mode transitions a character or logo from the current color in which it would normally be printed to the other color The parameter m specifies the...

Page 79: ...start position of x bytes from the left edge and y bytes from the top of the new line and times o bytes wide times p bytes in length For the case of m 3 star the value passed for o is also used as the implicit p value passed value is ignored i e a square area The thickness of the graphic is defined by q dots This will form a bit image in a RAM graphics buffer Subsequent surround graphic commands c...

Page 80: ... in the merging If a logo with index m does not exist or is wider than the print raster width then this command is ignored Value of n n is the number of raster rows to be empty skipped before repeating the designated margin message merge Value of o o is a right left toggle switch o 0 no toggling of the margin message merge o 1 enable toggling starting with a left margin message first o 2 enable to...

Page 81: ...t ASCII GS 0x9B m n Hexadecimal 1D 9B m n Decimal 29 155 m n Value of m 0 Standard size 1 Double wide 2 Double high 3 Double high wide Value of m 01 FF Hex dot rows n x 24 n 5 is the recommended setting Because the printhead and cutting knife are physically separated it is necessary to advance the printed area of a receipt past the knife to avoid the last of the printing from being cut off This ad...

Page 82: ...8 dots mm bitmap ASCII US EOT n Hexadecimal 1F 04 n Decimal 31 04 n Value of f 0 Off 1 On Default 0 Off Selects or cancels 6 dot mm emulation mode When the 6 dot mm emulation is selected logos and graphics are expanded horizontally and vertically during download to emulate their size on a 6 dot mm printer The horizontal positioning commands also emulate positioning on a 6 dot mm printer Enable con...

Page 83: ...er to correct whatever fault has occurred Automatic status back or Unsolicited status mode This mechanism allows the application developer to program the printer to automatically respond with a four byte status when certain conditions in the printer change Please see the subsequent sections for a more detailed description of these status commands At the end of this status commands section is a pag...

Page 84: ...ifies 1 Signifies 0 Paper low Not low Low only if paper low sensor is enabled 1 Receipt cover Closed Open 2 Receipt paper Present Out 3 Knife position Home position Not home position 4 Not used Fixed to zero Fixed to zero 5 Temperature In valid range Too hot or too cold 6 Voltage In valid range Too high or too low 7 Not used Fixed to zero Fixed to zero Sends status data to the host computer The pr...

Page 85: ...e Exceptions Unlike the A793 that had a dedicated connector and resultant dedicated status reporting for each cash drawer the TH250 has a single connector that shares data reporting from either cash drawer When either cash drawer is open an open status is reported by the printer Printer status n 1 or n 49 Bit Off On Hex Decimal Status for transmit status 0 Off 00 0 Paper present On 01 1 Paper exha...

Page 86: ...ntaining the loader and flash software version The first 4 bytes returned are an ASCII string for the loader version The second 4 bytes are an ASCII string for the flash version Example For 1 234 56 8 bytes the loader version is 1 23 and the flash version is 4 56 Real time commands The real time commands provide an application interface to the printer even when the printer is not handling other co...

Page 87: ...ree situations must be understood when using real time commands First the printer executes the real time command within a few msec of detecting it in the input buffer and will transmit status regardless of the condition of the DSR signal Second the printer transmits status whenever it recognizes a real time status transmission command sequence even if that sequence happens to occur naturally withi...

Page 88: ...e printer s buffer when it goes busy Busy line and fault conditions If the printer is in error condition cover is open paper is exhausted the printer will still accept data respond to the batch mode status commands 1B 76 and 1B 75 0 handle the cash drawer commands and not go busy until it actually tries to execute a print command Then it will stay busy and stop processing data out of the receive b...

Page 89: ...over closed On 04 4 Cover open 3 Off 00 0 Paper feed button is not pressed On 08 8 Paper feed button is pressed 4 On 10 16 Fixed to on 5 Off 00 0 Printing not stopped due to paper condition On 20 32 Printing stopped due to paper condition 6 Off 00 0 No error condition 3 Transmit status error Bit Off On Hex Decimal Function 0 Off 00 0 Fixed to off 1 On 02 2 Fixed to on 2 Off 00 0 Fixed to off 3 Off...

Page 90: ...eginning of the line where an error occurred after recovering from the error Print settings that are normally preserved from line to line such as character height and width are still preserved with this command This sequence is ignored except when the printer is busy due to an error condition This command will attempt recovery from a knife error Other errors associated with the receipt such as pap...

Page 91: ...e printer 7 On 80 128 Fixed to on Errors include cover open paper out black mark error cutter error thermistor error high or low voltage error where a thermistor error is unrecoverable and a high or low voltage error automatically recover Exceptions Unlike the A793 that had a dedicated connector and resultant dedicated status reporting for each cash drawer the TH250 has a single connector that sha...

Page 92: ...whenever the selected status changes If no status is selected ASB is disabled All four status bytes are transmitted without checking DSR If the error status is enabled a change in the following conditions will trigger the ASB Cash Drawer Receipt Cover Knife Error Out of Range Printhead Temperature Out of Range Voltage Paper Exhaust Status The bits of n are defined in the table Bit Off On Hex Decim...

Page 93: ...ff 00 0 One or both cash drawers open On 04 4 Both cash drawers closed 3 Off 00 0 Not busy at the RS232C interface On 08 8 Printer is busy at the RS232C interface 4 On 10 16 Not used Fixed to on 5 Off 00 0 Receipt cover closed On 20 32 Receipt cover open 6 Off 00 0 Paper feed button is not pressed On 40 64 Paper feed button is pressed 7 Off 00 0 Not used Fixed to off Second byte error Information ...

Page 94: ...elect or cancel unsolicited status mode USM ASCII Hexadecimal Decimal GS a n 1D 61 n 29 97 n Range of n 0 turns mode off any non zero value turns mode on Default 0 USM disabled Enables or disables automatic return of 4 status bytes whenever one or more of the listed changes occurs This command is a batch mode command that is it is processed after all prior data in the input buffer has been process...

Page 95: ...M return description The status bytes to be transmitted are described in the following four tables Byte 1 printer information Byte 2 error information Byte 3 paper sensor information Byte 4 paper sensor information First byte Printer Information Bit Off On Hex Decimal Status for USM 0 Off 00 0 Not used Fixed to off 1 Off 00 0 Not used Fixed to off 2 Off 00 0 One or both cash drawers open On 04 4 B...

Page 96: ...ined 6 Undefined 7 Off 00 0 Not used Fixed to off Fourth paper sensor Information Bit Off On Hex Decimal Status for USM 0 Undefined 1 Undefined 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 determ...

Page 97: ...T n 1D 04 n 0 x x 1 x x 1 0 Binary DLE EOT n 10 04 n 0 x x 1 x x 1 0 Binary GS ENQ 1D 05 1 x x x x x x x Binary XON 0 0 0 1 0 0 0 1 Binary XOFF 0 0 0 1 0 0 1 1 Binary Unsolicited status mode USM Response recognized by USM Byte 1 0 x x 1 x x 0 0 Binary USM Byte 2 4 0 x x 0 x x x x Binary ...

Page 98: ...e 1D 28 6B 03 00 31 43 n 3 Set data parsing mode 1D 28 6B 03 00 31 44 m 4 Select error correction level 1D 28 6B 03 00 31 45 n 5 Store symbol data 1D 28 6B qL qH 31 50 30 f1 fk 6 Print symbol data 1D 28 6B 03 00 31 51 30 The details of each command are described below Note The settings for model size of module and error correction level are effective until the printer is reset or the power is turn...

Page 99: ...orrection level for QR Code ASCII Hexadecimal Decimal GS k ETX NUL 1 E n 1D 28 6B 03 00 31 45 n 29 40 107 3 49 69 n Value of n Function Recovery Capacity 30h Selects Error correction level L 7 31h Selects Error correction level M 15 32h Selects Error correction level Q 25 33h Selects Error correction level H 30 Note QR code employs Reed Solomon error correction to generate a series of error correc...

Page 100: ...31 32 33 34 35 36 37 38 39 30 Numeric Data 2C Delimiter 4B 9B 97 82 71 9B 95 82 92 Set Kanji Kanji Data 2C Delimiter 42 30 30 30 38 54 2C 45 2C 53 2C 54 2C Set binary and block length 0 0 0 8 0x00 0x08 8 bytes Binary Data 0x2Cs are valid data not delimiters Print symbol data for QR code ASCII Hexadecimal Decimal GS k ETX NUL 1 Q 0 1D 28 6B 03 00 31 51 30 29 40 107 03 00 49 81 48 This command encod...

Page 101: ...res the symbol data in the print buffer without executing actual printing The printer moves print position to the next dot of the last data of the symbol A quiet zone of four times the size of one module is required on all sides of the QR code symbol but it is not included in the printing data Be sure to add a quiet zone when using this function Select printing position of HRI characters ASCII Hex...

Page 102: ...ng Bar codes can be aligned left center or right using the align positions command 1B 61 The check digit is calculated for UPC and JAN EAN codes if it is not sent from the host computer Six character zero suppressed UPC E tags are generated from full 11 or 12 characters sent from the host computer according to standard UPC E rules Start stop characters are added for code 39 if they are not include...

Page 103: ...CODE39 48 57 65 90 ASCII alphabet 32 36 37 43 45 46 47 ASCII special characters d1 dk 42 start stop code is supplied by printer if necessary Variable length 70 Interleaved 2 of 5 ITF 48 57 Variable length even number 71 CODABAR NW 7 65 68 start code 48 57 36 43 45 46 47 58 Variable length 72 Code 93 00 127 Variable length 73 Code 128 0 105 d1 103 105 must be a start code d2 0 102 data bytes Stop c...

Page 104: ... HRI can be set before or after 1D 6B FF 01 command No height restriction change from single line barcodes Quiet zone between barcodes 10 module width No text in between barcodes results undefined Upright picket fence barcodes only no upside down or ladder Extended barcode printing for upside down and ladder barcodes can be done in page mode if required Slip validation selection disabled in multip...

Page 105: ...UCC EAN 128 with CC A or CC B 5C UCC EAN 128 with CC C Note Null terminated data length 1 to 2436 Print GS1 DataBar data length specified ASCII Hexadecimal Decimal GS k m nL nH d1 dn 1D 6B m nL nH d1 dn 29 107 m nL nH d1 dn n Type 61 GS1 DataBar 62 GS1 DataBar truncated 63 GS1 DataBar stacked 64 GS1 DataBar stacked omni directional 65 GS1 DataBar limited 66 GS1 DataBar expanded and expanded stacke...

Page 106: ...tion visit www gs1 org Select PDF 417 parameters ASCII Hexadecimal Decimal GS p a b c d e f 1D 70 a b c d e 29 112 a b c d e f Values and Ranges Value Ranges Description a b The ratio of bar height to symbol length a height limit 1 to 10 b width limit 1 to 100 c rows limit 3 to 90 Number of rows in the matrix of code words d columns limit 7 to 30 Number of columns in the matrix of code words e x d...

Page 107: ...row contains 1 Leading quiet zone 2 Start pattern 3 Left row indicator characters code words 4 One to thirty data characters code words 5 Right row indicator character code words 6 Stop pattern 7 Trailing quiet zone The number of characters in a row and number of rows can be adjusted to vary the symbol s overall aspect ratio to best fit an available space Each row has a left and right row indicato...

Page 108: ...trix Parameters ASCII Hexadecimal Decimal GS k pL pH cn fn m d1 d2 1D 28 6B 05 00 36 42 m d1 d2 29 40 107 5 0 54 66 m d1 d2 Values and Ranges Value Ranges pL pH x 256 5 cn 54 fn 66 m 0 1 48 49 d1 d2 when m 0 48 0 0 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 32 32 36 36 40 40 44 44 48 48 52 52 64 64 72 72 80 80 88 88 96 96 104 104 120 120 132 132 144 144 d1 d2 when m 1 49 8 0 8 18 8 32 1...

Page 109: ...CC200 Sets the number of rows of the symbol to d1 the number of columns to d2 Notes This command is ignored if any of m d1 or d2 is outside its range Settings of this command are in effect until 1b 40 is executed the printer is reset or the power is turned off Settings of this command affect the encode processing for DataMatrix Changing the symbol type affects the horizontal and vertical sizes of ...

Page 110: ...ommand stores the DataMatrix symbol data d1 dk in the symbol storage area k bytes of d1 dk are processed as the symbol data Notes The symbol data saved in the symbol storage area by this command is encoded by printing and transmission of this command After printing and transmission are executed the symbol data in the symbol storage area is kept FNC1 character must be specified as ESC Hex 1BH Decim...

Page 111: ...underline or font size except for upside down print mode The following functions are not supported Structured Append Symbols Macro Character Reader Programming Character ECI Extended Channel Interpretation Error correction version is ECC 200 Versions ECC 000 140 cannot be used For ECC 200 the Reed Solomon Error Detection and Correction algorithm is used for the error correction codewords In the Re...

Page 112: ...s in how they operate in the two modes These commands describe the operation for 80mm paper Note the A793 Emulation does not support Page Mode Print and return to standard mode ASCII Hexadecimal Decimal FF 0C 12 When printing is completed values for select print direction in page mode 1B 54n and set print area in page mode 1B 57 n1 n2 n8 and the position for buffering character data are set Buffer...

Page 113: ...printed For more information see page mode in this document This command sets the position where data is buffered to the position specified by select print direction in page mode 1B 54 within the printing area defined by set print area in page mode 1B 57 This command switches the settings for the following commands which values can be set independently in standard mode and page mode to those for p...

Page 114: ...d the print position is set to the beginning of the line This command switches the settings for the following commands the values for these commands can be set independently in standard mode and page mode to those for standard mode Set right side character spacing 1B 20 Select 1 6 inch line spacing 1B 32 Set line spacing 1B 33 Standard mode is automatically selected when power is turned on the pri...

Page 115: ... is out of the specified range If this command is processed in standard mode print direction is not changed until the printer is set to page mode Select print area in page mode ASCII Hexadecimal Decimal Value of n ESC W n1 n2 n8 1B 57 n1 n2 n8 27 87 n1 n2 n8 0 255 Default n1 4 0 n5 64 n6 2 n7 64 n8 2 576x576 for 80mm paper Sets the position and size of the printing area in page mode until the prin...

Page 116: ...0 dx is greater than the printable area the printing area width is set to horizontal printable area x0 If y0 yx is greater than the printable area the printing area height is set to vertical printable area y0 Set absolute vertical print position in page mode Sets the absolute vertical print starting position for buffer character data in page mode The absolute print position is set to nL nH X 256 x...

Page 117: ...s command functions as follows depending on the print starting position set by select print direction in page mode 1B 54 When the starting position is set to the upper right or lower left of the printing area the vertical motion unit y is used When the starting position is set to the upper left or lower right of the printing area the horizontal motion unit x is used Formulas The distance from the ...

Page 118: ...y after previously receiving a select or cancel macro definition 1D 3A the printer remains in the macro undefined state Formulas The contents of the macro can be defined up to 2048 bytes Exceptions If the macro definition exceeds 2048 bytes excess data is not stored Execute macro ASCII Hexadecimal Decimal Value of r Value of t GS r t m 1D 5E r t m 29 94 r t m The number of times to execute the mac...

Page 119: ...rammer s Guide 114 Exceptions If this command is received while a macro is being defined the macro definition is aborted and the definition is cleared If the macro is not defined or if r is 0 nothing is executed ...

Page 120: ...e flash page at the address specified Returns m bytes to the application followed by a carriage return 0x0D If the range of requested data exceeds the sector boundary the printer will only send the data up to the sector boundary Select memory type SRAM flash where to save logos or user defined fonts ASCII Hexadecimal Decimal Value of m GS n 1D 22 n 29 34 n 48 53 n 48 ASCII n 0 HEX 30 Loads active ...

Page 121: ...fect until it is changed via this command or until the power cycles To specify permanent font flash also send 1D 22 81 01 Related information This command is recognized in Native mode In A793 and LEGACY emulations parameter bytes go into the print buffer Flash memory user sectors allocation ASCII Hexadecimal Decimal Value of n1 Value of n2 GS U n1 n 1D 22 55 n1 n2 29 34 85 n1 n2 1 see below 1 see ...

Page 122: ... where n2 is the ID of the logo to delete n1 0C double byte font where n2 is the font ID and n3 is the font style of the font to delete This will delete the double byte font of the specified ID and style If no other fonts of the same ID are found the double byte table that corresponds to this ID will be deleted as well n1 0D POS fontset where n2 is the ID of the fontset to delete This will delete ...

Page 123: ...quence 1D 22 80 31 nL nH n sectors to logo font area 1D 22 80 32 nL nH n sectors to user data storage area 1D 22 80 33 nL nH n sectors to permanent font area 1D 22 80 34 nL nH n sectors to electronic journal area 1D 22 80 40 end expanded flash memory allocation sequence n 0xFFFF means allocate all remaining sectors to this area only one area can specify this parameter value Select flash area for s...

Page 124: ...ter sending the erase user flash sector 1D 40 n command an application should wait for the response from the printer before sending data Otherwise data will be lost If an application is unable to receive data it should wait a minimum of ten seconds after sending the erase user flash sector 1D 40 n command before sending data User storage status ASCII Hexadecimal Decimal Value of m GS 0x97 m n 1D 9...

Page 125: ...ows or prevents the permanent font area to be erased Note This only affects the 1D 40 33 commands and downloading a font to permanet font area when a font already exists with the same ID Flash download These commands are used to load firmware into the printer The commands are listed in numerical order according to their hexadecimal codes Each command is described and the hexadecimal decimal and AS...

Page 126: ...Once the printer is in flash download mode this command is no longer available Related information See entering flash download mode elsewhere in this book to put the printer in flash download mode using the configuration menu Erase all flash contents except boot sector Causes the entire flash memory to be erased The printer returns ACK if the command is successful NAK if it is unsuccessful Excepti...

Page 127: ... load process and reboots the printer Before executing this command the printer should have firmware loaded and external switches set to the runtime settings Application software for downloading should prompt the user to set the external switches and confirm before sending this command If the downloading was started from a diagnostic the reboot will cause the printer to re enter download state unl...

Page 128: ...wo minutes Net mask 0 0 0 0 default mask of selected IP is used Gateway none Raw TCPIP port 9001 active HTTP port 80 active DHCP enabled Inactivity timeout disabled Keep alive pings disabled Set IP address Sets the IP address value specified by the values of n1 to n4 Set Net Mask Sets the Net Mask value specified by the values n1 to n4 ASCII Hexadecimal Decimal US BS NUL 1F 08 00 31 8 0 ASCII Hexa...

Page 129: ...decimal Decimal US BS BS 1F 08 08 31 8 8 n1 n1 n1 n1 0 n1 1 disabled enabled Default enabled Enables or disables the use of DHCP at power up to obtain an IP address If no address is found within two minutes DHCP obtains the default IP address Inactivity timeout ASCII Hexadecimal Decimal US BS HT 1F 08 09 31 8 9 n1 n1 n1 n1 0 n1 1 disabled enabled Default enabled Enables or disables resetting of op...

Page 130: ...n1 n2 n1 n2 n1 n2 n1 n2 Low order byte of port High order byte of port Default Port 80 Sets the port where the HTTP server will listen Setting port number to 0 disables HTTP communications Get Ethernet configuration ASCII Hexadecimal Decimal US VT 1F OB 31 11 nn nn nn nn value 00 Return all 1 Return IP address 2 Return net mask 3 Return gateway 4 Return TCP IP port 8 Return DHCP status 9 Return in...

Page 131: ...f data size s1 High byte of data size d0 ds Data bytes representing value Example Sending 1F 0B 08 nn 08 return DHCP status returns 01 08 01 00 01 The first 01 is the rr 1 record and the rest is the record 08 01 00 01 where 08 is the id DHCP 01 00 is the size as s0 s1 1 byte and the final 01 is the data as d0 ds enabled ...

Page 132: ...tings Upload current settings ASCII Hexadecimal Decimal US HT SOH BS 1F 09 01 08 31 09 01 08 Uploads current settings to the current communications port Upload factory settings ASCII Hexadecimal Decimal US HT SOH TAB 1F 09 01 09 31 09 01 09 Uploads factory settings to the current communications port Download settings ASCII Hexadecimal Decimal US HT SOH LF 1F 09 01 0A 31 09 01 10 Downloads and merg...

Page 133: ...le and cut on black bar would result in 1001 which is a hex 9 and therefore nn would be 09 Setting all the flags would be 1111 which is F or 0F for nn Enable feed to mark on form feed ASCII Hexadecimal Decimal US EXT 0X51 SOH 1F 03 51 01 31 03 81 01 Sets the printer to feed to the black mark when paper is fed Enable feed to mark on cut ASCII Hexadecimal Decimal US EXT 0X51 STX 1F 03 51 02 31 03 81...

Page 134: ... 03 81 05 number of inches This command will make make a black bar reading and calibrate the sensor To calibrate make sure white paper is over the sensor This command will return three bytes and if the first is an E then there was an error calibrating Enable black bar offset ASCII Hexadecimal Decimal Value of ll Value of hh US EXT 0X51 ACK ll hh 1F 03 51 06 ll hh 31 03 81 06 ll hh low byte of offs...

Page 135: ... graphics or receipt test mode or sets the printer back to normal operation See Diagnostics modes in chapter two for more information Enable or disable knife ASCII Hexadecimal Decimal Value of n Default US EXT STX n 1F 03 02 n 31 03 02 n 0 Disable 1 Enable 1 Enable Enables or disables the knife Enable or disable paper low sensor ASCII Hexadecimal Decimal Value of n Default US EXT ETX n 1F 03 03 n ...

Page 136: ...EL n 1F 03 07 n 31 03 07 n 0 Native 1 TH210 TH210 2 A794 emulation 2 A793 emulation 3 LEGACY emulation 4 TH230 emulation 0 Native mode Sets the printer emulation See Printer emulations in chapter two for more information Reset settings to default values ASCII Hexadecimal Decimal Defaults US EXT TAB 1F 03 09 31 03 09 Diagnostics mode Normal operation Carriage return Use as command Knife Enabled Pap...

Page 137: ...tandard 24 high 1 Tall font 2 2 color font 3 Paper Savings font Sets font size for the emulation being used Set color density ASCII Hexadecimal Decimal Value of n Default US EXT EM n 1F 03 19 n 31 03 25 n Percentage between 70 and 120 64h 100 Adjusts printhead energy level to darken color printing or adjust for paper variations When printer prints highdensity color print lines text or graphics it ...

Page 138: ...C n 1F 03 1B n 31 03 27 n 0 Disable 1 Enable 1 Enable Enables or disables the calculation of the Code 128 check digit Enable or disable barcode ITF leading zero Enables or disables the leading zero for barcode ITF If enabled a zero is provided to even out an odd number of input characters Enable or disable barcode string terminator Enables or disables the barcode string terminator If disabled the ...

Page 139: ...r disable EJ action via operator control Enables or disables the need for operator control for electronic journaling ASCII Hexadecimal Decimal Value of n Default US EXT US n 1F 03 1F n 31 03 31 n 0 Zero 1 5 feet 2 10 feet 3 15 feet 4 20 feet 5 5 feet 6 10 feet 0 Zero ASCII Hexadecimal Decimal Value of n Default US EXT 0x28 n 1F 03 28 n 31 03 40 n 0 Disable 1 Enable 0 Disable ASCII Hexadecimal Deci...

Page 140: ...on menu Set default code page at power on Changes the default code page used at power up See Select international character set command for more information on code page values Set Asian ASCII characters to narrow Changes the width of the ASCII characters of the Asian fonts ASCII Hexadecimal Decimal Value of n US EXT 0x31 n 1F 03 31 n 31 03 49 n number of extra steps ASCII Hexadecimal Decimal Valu...

Page 141: ...XT 0x47 n 1F 03 47 n 31 03 71 n number of dot rows 0 Reduced white space on FF Normal spacing ASCII Hexadecimal Decimal Value of n Value of fL Value of fH Value of dL Value of dH US EXT 0x52 n fL fH dL dH 1F 03 52 n fL fH dL dH 31 03 82 n fL fH dL dH 1 runtime configuration 2 write to EEPROM requires a reset low byte of frequency high byte of frequency low byte of frequency high byte of frequency ...

Page 142: ...0 n must be enabled for this to work Set print quality level Sets the print speed of the printer based on three levels quality 250mm s balanced 300mm s and speed 350mm s ASCII Hexadecimal Decimal Value of n Value of ll Value of hh US EXT 0x54 SOH ll hh 1F 03 54 01 ll hh 31 03 84 01 ll hh 0 Disable 1 Enable low byte of frequency high byte of frequency ASCII Hexadecimal Decimal Value of nn Default U...

Page 143: ... Not implemented 1B 77 6E 62 n Special Wincor barcode parameter Old command no longer supported 1D 8E nL nH d1 dn Download paper type description No longer supported 1D 8F m Return downloaded paper type description No longer supported 1B 5B 21 74 nL nH Set control point Not implemented 1B 77 6E 5F 67 65 74 5F 6C 61 73 74 5F 65 72 72 6F 72 00 Return the last occurred error Not implemented 1B 77 6E ...

Page 144: ...4 n Real time status transmission Command cannot be used when printer is disabled 1B 3D command also not implemented 1D 61 n Enable disable ASB Doesn t act any different when communication is XON XOFF control 1F 74 Print test form Does not change the settings to defaults 1B 64 n Print and feed n lines No max line feed length 1D 40 n Erase user flash sector n 51 erases permanent fonts 1B 45 n or 1B...

Page 145: ...n 254 No sensor plug info returns _22222222 n 255 No measured mark distance returns _0 steps 1D 68 n Set bar code height Does not set height of GS1 databar yet 1D 28 4C pL pH 30 43 30 kc1 kc2 b xL xH yL yH c d1 dk 1 c d1 dk b Define items of NV graphics data Does not delete logos defined by 1D 2A x y d1 dk yet Code hexadecimal Command Exception 1C 21 n Select print mode for Kanji Not yet implement...

Page 146: ...Perform partial knife cut or code 1B 6D 1B BMP Download BMP logo where BMP is the data from the file not the filename 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...

Page 147: ...raphics 1B 5B 7D Switch to flash download mode 1B 5C n1 n2 Set relative print position 1B 61 n Select justification 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 69 Perform full knife cut or code 19 1B 6D Perform partial knife cut or code 1A 1B 70 n p1 p2 Generate pulse to open cash drawer 1B 72 m Set current color 1B 74 n Se...

Page 148: ...0 00 31 41 n1 n2 Select model for QR Code 1D 28 6B 05 00 36 42 m d1 d1 Set DataMatrix parameters 1D 28 6B 05 00 36 43 n Set DataMatrix module size 1D 28 6B pL pH 36 50 30 d1 dk Store DataMatrix data in symbol storage area 1D 28 6B qL qH 31 50 30 f1 fk Store symbol data for QR Code 1D 2A n1 n2 d1 dn Define downloaded bit image 1D 2F m Print downloaded bit image 1D 3A Select or cancel macro definiti...

Page 149: ... Reverse color text mode two color 1D 86 m Monochrome shade mode 1D 87 m Color shade mode 1D 89 n m Logo print with color plane swap 1D 8B n m o Apply shading to logo 1D 8C n m Merge watermark mode 1D 8D n m Text strike through mode 1D 90 m x y o p q Form and merge real time surround graphic 1D 91 n Save graphics buffer as logo 1D 92 n Background logo print mode 1D 97 m n User storage status 1D 99...

Page 150: ...l 1F 03 31 n Set fine adjustment of partial cut steps 1F 03 32 n Set printer ID mode 1F 03 33 n Set default code page at power on 1F 03 3C ll hh Set timeout value for low power idle state 1F 03 3D n Set Asian ASCII characters to narrow 1F 03 3F n1 n2 Set black dot offset 1F 03 45 FSID Configure use of font set over power cycles 1F 03 46 n Configure line spacing 1F 03 47 n Set vertical white space ...

Page 151: ...TTP port 1F 09 01 06 Save current settings as factory settings 1F 09 01 07 Restore factory settings 1F 09 01 08 Upload current settings 1F 09 01 09 Upload factory settings 1F 09 01 0A Download settings 1F 0B nn Get Ethernet configuration 1F 26 s c1 c2 Define extended user defined character set 1F 56 Send printer software version 1F 69 n Select active user defined character set 1F 70 Set printer in...

Page 152: ...TH250 Programmer s Guide 147 Appendix C Resident Character Sets Character sets Character code table Page 0 PC437 USA Standard Europe ...

Page 153: ...TH250 Programmer s Guide 148 Character code table Page 1 PC850 Multilingual Latin I ...

Page 154: ...TH250 Programmer s Guide 149 Character code table Page 2 PC852 Latin II ...

Page 155: ...TH250 Programmer s Guide 150 Character code table Page 3 PC860 Portuguese ...

Page 156: ...TH250 Programmer s Guide 151 Character code table Page 4 PC863 Canadian French ...

Page 157: ...TH250 Programmer s Guide 152 Character code table Page 5 PC865 Nordic ...

Page 158: ...TH250 Programmer s Guide 153 Character code table Page 6 PC858 Multilingual I Euro ...

Page 159: ...TH250 Programmer s Guide 154 Character code table Page 7 PC866 Russian ...

Page 160: ...TH250 Programmer s Guide 155 Character code table Page 8 WPC1252 Latin I ...

Page 161: ...TH250 Programmer s Guide 156 Character code table Page 9 PC862 Hebrew ...

Page 162: ...TH250 Programmer s Guide 157 Character code table Page 10 PC737 Greek ...

Page 163: ...TH250 Programmer s Guide 158 Character code table Page 11 PC874 Thai ...

Page 164: ...TH250 Programmer s Guide 159 Character code table Page 12 PC857 Turkish ...

Page 165: ...TH250 Programmer s Guide 160 Character code table Page 13 WPC1251 Cyrillic ...

Page 166: ...TH250 Programmer s Guide 161 Character code table Page 14 WPC1255 Hebrew ...

Page 167: ...TH250 Programmer s Guide 162 Character code table Page 15 KZ_1048 Kazakh ...

Page 168: ...TH250 Programmer s Guide 163 Character code table Page 16 WPC1254 Turkish ...

Page 169: ...TH250 Programmer s Guide 164 Character code table Page 17 WPC1250 Central Europe ...

Page 170: ...TH250 Programmer s Guide 165 Character code table Page 18 WPC28591 Latin 1 ...

Page 171: ...TH250 Programmer s Guide 166 Character code table Page 19 WPC28592 Latin 2 ...

Page 172: ...TH250 Programmer s Guide 167 Character code table Page 20 WPC28599 Turkish ...

Page 173: ...TH250 Programmer s Guide 168 Character code table Page 21 WPC28605 Latin 9 ...

Page 174: ...TH250 Programmer s Guide 169 Character code table Page 22 PC864 Arabic ...

Page 175: ...TH250 Programmer s Guide 170 Character code table Page 23 PC720 Arabic ...

Page 176: ...TH250 Programmer s Guide 171 Character code table Page 24 WPC1256 Arabic ...

Page 177: ...TH250 Programmer s Guide 172 Character code table Page 25 WPC28596 Arabic ...

Page 178: ...TH250 Programmer s Guide 173 Character code table Page 26 KATAKANA Asia ...

Page 179: ...TH250 Programmer s Guide 174 Character code table Page 27 PC775 Baltic ...

Page 180: ...TH250 Programmer s Guide 175 Character code table Page 28 WPC1257 Baltic ...

Page 181: ...TH250 Programmer s Guide 176 Character code table Page 29 WP28594 Baltic ...

Page 182: ...e reproduction transmission or use 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 Copyright Wincor Nixdorf International GmbH 2016 ...

Reviews: