background image

Programmer’s Guide

 

 

   

TH200 

 

 

97 

 

Appendix G   

Transmission Status Identification 

Because  the  specified  status  bits  transmitted  from  the  TH200  B-150  printer  are  fixed,  the  user  can 

confirm the command to which the status belongs, as shown in the following table. 

When using Auto Status Back (ASB), however, process the consecutive three-Nbyte code (except for 

XOFF) as ASB data after confirming the first byte of the ASB. Otherwise, the status transmitted by using 

the 

GS r 

and the status of the second and following bytes of the ASB cannot be differentiated.   

Table G.1 Transmission Status Identification 

Command & Function   

Status Reply 

GS I 

<0**0****>B 

GS r

 

<0**0****>B 

XON 

<00010001>B 

XOFF 

<00010011>B 

DLE EOT

 

<0**1**10>B 

ASB (1st byte) 

<0**1**00>B 

ASB (2nd to 4th bytes) 

<0**0****>B 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Summary of Contents for TH200

Page 1: ...TH200 High Speed Thermal Printer Programmer s Guide TH200 March 2005 ...

Page 2: ...ESC nL nH 17 ESC n 17 ESC y c1 c2 x1 d1 d y x1 xk d1 d y xk 18 ESC m nL nH d1 dk 20 ESC n 22 ESC 2 22 ESC 3 n 23 ESC n 23 ESC n 24 ESC 24 ESC D n1 nk NUL 25 ESC E n 25 ESC G n 26 ESC J n 26 ESC L 27 ESC M n 27 ESC R n 28 ESC S 28 ESC T n 29 ESC V n 30 ESC W xL xH yL yH dxL dxH dyL dyH 30 ESC nL nH 31 ESC a n 32 ESC c 3 n 33 ESC c 4 n 33 ESC c 5 n 34 ESC d n 34 ESC p m t1 t2 35 ESC t n 36 ESC n 37 ...

Page 3: ... m GS V m n 53 GS W nL nH 54 GS nL nH 55 GS r t m 56 GS a n 57 GS f n 59 GS h n 59 GS k m d1 dk NUL GS k m n d1 dn 60 GS r n 63 GS v 0 m xL xH yL yH d1 dk 64 GS w n 65 FS n 66 FS 67 FS n 67 FS 68 FS 2 c1 c2 d1 dk 68 FS C n 69 FS S n1 n2 70 FS W n 71 3 Character Code Tables 72 3 1 Page 0 PC437 USA 72 3 2 PAGE1 Katakana 73 3 3 Page 2 PC850 Multilingual 74 3 4 Page 3 PC860 Portuguese 75 3 5 Page 4 PC...

Page 4: ...ndix A Printable Area Cutting Positions 84 Appendix B FEED button menu 85 Appendix C Hexadecimal Dump mode 90 Appendix D Page Mode 91 Appendix E Miscellaneous Notes 95 Appendix F Marked Paper Specification 96 Appendix G Transmission Status Identification 97 Appendix H EEPROM Setting Table 98 Appendix I Example printing in page mode 100 Appendix J Code 128 bar code 103 ...

Page 5: ...SC Define user defined characters 18 ESC Select bit image mode 20 ESC n Turn underline mode on off 22 ESC 2 Select default line spacing 22 ESC 3 Set line spacing 23 ESC Select peripheral device 23 ESC Cancel user defined characters 24 ESC Initialize printer 24 ESC D Set horizontal tab positions 25 ESC E Turn emphasized mode on off 25 ESC G Turn double strike mode on off 26 ESC J Print and feed pap...

Page 6: ...absolute vertical print position in page mode 45 GS A Execute test print Disabled 46 GS Define downloaded bit image 47 GS Print downloaded bit image 48 GS Start end macro definition 48 GS B Turn white black reverse printing mode on off 49 GS H Select printing position of HRI characters 49 GS I Transmit printer ID 50 GS L Set left margin 51 GS P Set horizontal and vertical motion units 52 GS V Sele...

Page 7: ... FS Cancel Kanji character mode 68 FS 2 Define user defined Kanji characters 68 FS C Select Kanji character code system 69 FS S Set Kanji character spacing 70 FS W Turn quadruple size mode on off for Kanji characters 71 Notes Parameter Setting Set printer parameters Enabled only when the command is set at the beginning of a line Enabled only when data is not present in the printer buffer Ignored N...

Page 8: ...s k indicates contents of repeated k times Range Allowable ranges for the arguments Description Describes the command s function Details Describes the usage of the command in detail Notes Additional information on setting and using the printer command Default Default parameter values if any Reference Lists related commands Example Illustrations on command usage ...

Page 9: ... horizontal tab position for the paper roll is font A 12 24 every 8th character ESC D LF Print and line feed Code Description Notes Reference ASCII LF Hex 0A Decimal 10 Prints the data in the print buffer and feeds one line based on the current line spacing This command sets the print position to the beginning of the line ESC 2 ESC 3 FF Print and return to standard mode in page mode Code Descripti...

Page 10: ...ted in the previously specified printing area also exists in the currently specified printing area it is deleted ESC L ESC W DLE EOT n Real time status transmission Code Range Description Notes ASCII DLE EOT n Hex 10 04 n Decimal 16 4 n 1 n 4 Transmits the selected printer status specified by n in real time according to the following parameters n 1 Transmit printer status n 2 Transmit off line sta...

Page 11: ...enabled using the GS a command the status transmitted by the DLE EOT command and the ASB status must be differentiated n 1 Printer status Bit Off On Hex Decimal Function 0 Off 00 0 Not used Fixed to Off 1 On 02 2 Not used Fixed to On Off 00 0 Drawer open close signal is LOW connector 2 On 04 4 Drawer open close signal is HIGH connector Off 00 0 On line 3 On 08 8 Off line 4 On 10 16 Not used Fixed ...

Page 12: ...recting the cause of the error and executing DLE ENQ n 1 n 2 If an error due to a circuit failure e g wire break occurs it is impossible to recover Bit 6 When printing is stopped due to high print head temperature until the print head temperature drops sufficiently or when the paper roll cover is open during printing bit 6 is On n 4 Continuous paper sensor status Bit Off On Hex Decimal Function 0 ...

Page 13: ... sequence of 10 H 05 H n 1 n 2 is received Example In ESC m nL nH dk d1 10 H d2 05 H d3 01 H This command should not be contained within another command that consists of two or more bytes Example If you attempt to transmit ESC 3 n to the printer but DTR DSR for the host computer goes to MARK before n is transmitted and DLE ENQ 2 interrupts before n is received the code 10 H for DLE ENQ 2 is proces...

Page 14: ...receive buffer is full or there is an error status With a parallel interface model this command cannot be executed when the printer is busy If print data includes the same character strings as this command the printer performs the same operation specified by this command The user must consider this This command should not be used within the data sequence of another command that consists of 2 or mo...

Page 15: ...rtical motion units are specified by GS P Changing the horizontal or vertical motion unit does not affect the current right side spacing In standard mode the horizontal motion unit is used In page mode the horizontal or vertical motion unit differs in page mode depending on starting position of the printable area as follows 1 When the starting position is set to the upper left or lower right of th...

Page 16: ...On 80 128 Underline mode selected When both double height and double width modes are selected quadruple size Characters are printed The printer can underline all characters but can not underline the space set by HT or 90 clockwise rotated characters The thickness of the underline is that selected by ESC regardless of the character size When some characters in a line are double or more in height al...

Page 17: ...pending on the starting position of the printable area as follows 1 When the starting position is set to the upper left or lower right of the printable area using ESC T the horizontal motion unit x is used 2 When the starting position is set to the upper right or lower left of the printable area using ESC T the vertical motion unit y is used ESC GS GS GS P ESC n Select cancel user defined characte...

Page 18: ...code 20 H to 7F H 96 characters It is possible to define multiple characters for consecutive character codes If only one character is desired use c1 c2 d is the dot data for the characters The dot pattern is in the horizontal direction from the left side Any remaining dots on the right side are blank The data to define a user defined character is y x bytes Set a corresponding bit to 1 to print a d...

Page 19: ...Programmer s Guide TH200 19 When font B 9 17 is selected ...

Page 20: ...nL nH 256 If the value of m is out of the specified range nL and data following are processed as normal data The nL and nH indicate the number of dots of the bit image in the horizontal direction The number of dots is calculated by nL nH 256 If the bit image data input exceeds the number of dots to be printed on a line the excess data is ignored d indicates the bit image data Set a corresponding b...

Page 21: ...Programmer s Guide TH200 21 When 24 dot bit image is selected ...

Page 22: ... rotated characters and white black inverted characters When underline mode is turned off by setting the value of n to 0 or 48 the following data is not underlined and the underline thickness set before the mode is turned off does not change The default underline thickness is 1 dot Changing the character size does not affect the current underline thickness Underline mode can also be turned on or o...

Page 23: ... of the printable area using ESC T the vertical motion unit y is used When the starting position is set to the upper right or lower left of the print able area using ESC T the horizontal motion unit x is used The maximum paper feed amount is 1016 mm 40 inches Even if a paper feed amount of more than 1016 mm 40 inches is set the printer feeds the paper only 1016 mm 40 inches Line spacing equivalent...

Page 24: ...attern defined for the specified code in the font selected by ESC If a user defined character has not been defined for the specified character code the printer ignores this command ESC ESC ESC Initialize printer Code Description Notes ASCII ESC Hex 1B 40 Decimal 27 64 Clears the data in the print buffer and resets the printer mode to the mode that was in effect when the power was turned on The DIP...

Page 25: ...et Data exceeding 32 tab positions is processed as normal data Transmit n k in ascending order and place a NUL code 0 at the end When n k is less than or equal to the preceding value n k 1 tab setting is finished and the following data is processed as normal data ESC D NUL cancels all horizontal tab positions The previously specified horizontal tab positions do not change even if the character wid...

Page 26: ...inches After printing is completed this command sets the print starting position to the beginning of the line The paper feed amount set by this command does not affect the values set by ESC 2 or ESC 3 The horizontal and vertical motion units are specified by GS P In standard mode the printer uses the vertical motion unit y In page mode this command functions as follows depending on the starting po...

Page 27: ...d mode and page mode to those for page mode Set right side character spacing ESC SP FS S Select default line spacing ESC 2 ESC 3 Only value settings is possible for the following commands in page mode these commands are not executed Turn 90 clockwise rotation mode on off ESC V Select justification ESC a Turn upside down printing mode on off ESC Set left margin GS L Set printable area width GS W Th...

Page 28: ...ndard mode This command is effective only in page mode Data buffered in page mode are cleared This command sets the print position to the beginning of the line The printing area set by ESC W is initialized This command switches the settings for the following commands in which the values can be set independently in standard mode and page mode to those for standard mode Set right side character spac...

Page 29: ...does not affect printing in standard mode This command sets the position where data is buffered within the printing area set by ESC W Parameters for horizontal or vertical motion units x or y differ as follows depending on the starting position of the printing area If the starting position is the upper left or lower right of the printing area data is buffered in the direction perpendicular to the ...

Page 30: ...yH dxL dxH dyL dyH 255 except dxL dxH 0 or dyL dyH 0 The horizontal starting position vertical starting position printing area width and printing area height are defined as x0 y0 dx inch dy inch respectively Each setting for the printing area is calculated as follows x0 xL xH 256 horizontal motion unit y0 yL yH 256 vertical motion unit dx dxL dxH 256 horizontal motion unit dy dyL dyH 256 vertical ...

Page 31: ... area height When the horizontal starting position vertical starting position printing area width and printing area height are defined as X Y Dx and Dy respectively the printing area is set as shown in the figure below xL xH yL yH 0 dxL dxH dyL dyH is decided by printer configuration CAN ESC L ESC T GS P ESC nL nH Set relative print position Code Range Description Notes ASCII ESC nL nH Hex 1B 5C n...

Page 32: ...osition is set to the upper right or lower left of the printable area using ESC T the vertical motion unit y is used ESC GS P ESC a n Select justification Code Range Description Notes Default Example ASCII ESC a n Hex 1B 61 n Decimal 27 97 n 0 n 2 48 n 50 Aligns all the data in one line to the specified position n selects the justification as follows n Justification 0 48 Left justification 1 49 Ce...

Page 33: ...nd The paper end signal switching be delayed depending on the receive buffer state If either bit 0 or bit 1 is on the paper roll near end sensor is selected as the paper sensor outputting paper end signals When all the sensors are disabled the paper end signal always outputs a paper present status n 15 ESC c 4 n Select paper sensor s to stop printing Code Range Description Notes ASCII ESC c 4 n He...

Page 34: ...rinter cover is closed In this printer the panel button is the FEED button In the macro ready mode the FEED button is enabled regardless of the settings of this command however the paper cannot be fed by using this button n 0 ESC d n Print and feed n lines Code Range Description Notes Reference ASCII ESC d n Hex 1B 64 n Decimal 27 100 n 0 n 255 Prints the data in the print buffer and feeds n lines...

Page 35: ... 70 m t1 t2 Decimal 27 112 m t1 t2 m 0 1 48 49 0 t1 255 0 t2 255 Outputs the pulse specified by t1 and t2 to connector pin m as follows m Connector pin 0 48 Drawer kick out connector pin 2 1 49 Drawer kick out connector pin 5 The pulse ON time is t1 2 ms and the OFF time is t2 2 ms If t2 t1 the OFF time is t1 2 ms DLE DC4 ...

Page 36: ... n Hex 1B 74 n Decimal 27 116 n 0 n 7 Selects a page n from the character code table n Page 0 PC437 U S A Standard Europe 1 Katakana 2 PC850 Multilingual 3 PC860 Portuguese 4 PC863 Canadian French 5 PC865 Nordic 16 WPC1252 17 PC866 Cyrillic 2 18 PC852 Latin2 19 PC858 21 Thai Page Code 11 255 Space Page n 0 ...

Page 37: ...ing mode is turned off When the LSB of n is 1 upside down printing mode is turned on Only the lowest bit of n is valid This command is enabled only when processed at the beginning of a line in standard mode When this command is input in page mode the printer performs only internal flag operations This command does not affect printing in page mode In upside down printing mode the printer rotates th...

Page 38: ...d is available only when processed at the beginning of a line in standard mode This command is ignored in page mode When this command is received during macro definition the printer ends macro definition and begins executing this command If the values of the argument m the stored starting address a1 a2 a3 a4 and the number of the stored data nL nH are out of the specified range or if the stored st...

Page 39: ...bled Therefore the user cannot confirm changes in the printer status during these periods User NV memory means the memory area which is used for storing character font data in non volatile memory If the values of the argument m the stored starting address a1 a2 a3 a4 and the number of the stored data nL nH are out of the specified range or if the stored staring address a1 a2 a3 a4 the number of th...

Page 40: ...he specified NV bit image has not been defined In standard mode this command is effective only when there is no data in the print buffer This command is not affected by print modes emphasized double strike underline character size white black reverse printing or 90 rotated characters etc except upside down printing mode If the downloaded bit image to be printed exceeds one line the excess data is ...

Page 41: ...initializing the position of the printer head when the cover is open paper feeding by using the FEED button etc cannot be performed NV bit image means a bit image which is defined in a non volatile memory by FS q and printed by FS p In standard mode this command is effective only when processed at the beginning of the line This command is effective when 7 bytes FS yH is processed as a normal value...

Page 42: ... 128K bytes This command can define several NV bit images but cannot define a bit image data whose total capacity bit image data header exceeds 1M bytes 128K bytes The printer is busy immediately before writing into NV memory When this command is received during macro definition the printer ends macro definition and begins performing this command Once a NV bit image is defined it is not erased by ...

Page 43: ...times 6 1 horizontal number of times 6 Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7 as follows Bit Off On Hex Decimal Function 0 3 Character height selection See Table 2 4 7 Character width selection See Table 1 Table 1 Table 2 Character Width Selection Character Height Selection Hex Decimal Width Hex Decimal Height 00 0 1 normal 00 0 1 normal 10...

Page 44: ...al directions are based on the character orientation When characters are enlarged with different sizes on one line all the characters on the line are aligned at the baseline The ESC command can also turn double width and double height modes on or off However the setting of the last received command is effective n 0 ESC ...

Page 45: ...al motion unit exceeds the specified printing area this command is ignored The horizontal starting buffer position does not move The reference starting position is that specified by ESC T This command operates as follows depending on the starting position of the printing area specified by ESC T When the starting position is set to the upper left or lower right this command sets the absolute positi...

Page 46: ...1 Rolling pattern print This command is enabled only when processed at the beginning of a line in standard mode This command is no effect in page mode When this command is received during macro definition the printer ends macro definition and begins performing this command After the test print is finished the printer resets itself automatically Therefore the already defined data before this comman...

Page 47: ...f dots in the horizontal direction y specifies the number of dots in the vertical direction The number of dots in the horizontal direction is x 8 in the vertical direction it is y 8 If x y is out of the specified range this command is disabled The d indicates bit image data Data d specifies a bit printed to 1 and not printed to 0 The downloaded bit image definition is cleared when printer is reset...

Page 48: ... mode If the downloaded bit image to be printed exceeds the printable area the excess data is not printed GS GS Start end macro definition Code Description Notes Reference ASCII GS Hex 1D 3A Decimal 29 58 Starts or ends macro definition Macro definition starts when this command is received during normal operation Macro definition ends when this command is received during macro definition When GS i...

Page 49: ...ge bar code HRI characters and spacing skipped by HT ESC and ESC This command does not affect the space between lines White black reverse mode has a higher priority than underline mode Even if underline mode is on it is disabled but not canceled when white black reverse mode is selected n 0 GS H n Select printing position for HRI characters Code Range Description Notes Default Reference ASCII GS H...

Page 50: ...ed 1 ON 02 2 Auto cutter equipped 2 OFF 00 0 No direct connection with customer display 3 OFF 00 0 No MICR reader 4 OFF 00 0 Not used Fixed to Off 5 _ _ _ Undefined 6 _ _ _ Undefined 7 OFF 00 0 Not used Fixed to Off The printer ID is transmitted when the data in the receive buffer is developed Therefore there may be a time lag between receiving this command and transmitting the status depending on...

Page 51: ...command is effective only processed at the beginning of the line in standard mode If this command is input in page mode the printer performs only internal flag operations This command does not affect printing in page mode If the setting exceeds the printable area the maximum value of the printable area is used The horizontal and vertical motion units are specified by GS P Changing the horizontal a...

Page 52: ...0 clockwise rotation Commands using x ESC SP ESC ESC FS S GS L GS W Commands using y ESC 3 ESC J GS V In page mode the following command use x or y depending on character orientation When the print starting position is set to the upper left or lower right of the printing area using ESC T data is buffered in the direction perpendicular to the paper feed direction Commands using x ESC SP ESC ESC W E...

Page 53: ... of m selects the mode as follows M Print mode 0 48 Full cut 1 49 Partial cut one point left uncut 66 Feeds paper cutting position n vertical motion unit and cuts the paper partially one point left uncut This command is effective only processed at the beginning of a line When n 0 the printer feeds the paper to the cutting position and cuts it Normally the printer feeds the paper to cutting positio...

Page 54: ...inning of the line In page mode the printer performs only internal flag operations This command does not affect printing in page mode If the left margin printing area width exceeds the printable area printable area width left margin is used The horizontal and vertical motion units are specified by GS P Changing the horizontal and vertical motion units does not affect the current left margin The ho...

Page 55: ...nt downward nL nH 256 N When pitch N is specified to the movement upward the negative direction use the complement of 65536 When pitch N is specified to the movement upward nL nH 256 65536 N Any setting that exceeds the specified printing area is ignored This command functions as follows depending on the print starting position set by ESC T When the starting position is set to the upper left or lo...

Page 56: ...pecified by t When the LSB of m 1 After waiting for the period specified by t the PAPER OUT LED indicators blink and the printer waits for the FEED button to be pressed After the button is pressed the printer executes the macro once The printer repeats the operation r times The waiting time is t 100 ms for every macro execution If this command is received while a macro is being defined the macro d...

Page 57: ...ay change in this case because each status transmission represents the current status If all status items are disabled the ASB function is also disabled The following four status bytes are transmitted without confirming whether the host is ready to receive data The four status bytes must be consecutive except for the XOFF code Since this command is executed after the data is processed in the recei...

Page 58: ... possible to recover by correcting the cause of the error and executing DLE ENQ n 1 n 2 If an error due to a circuit failure e g wire break occurs it is impossible to recover Bit 6 When printing is stopped due to high print head temperature until the print head temperature drops sufficiently or when the paper roll cover is open during printing bit 6 is On Third byte paper sensor information Bit Of...

Page 59: ...printing a bar code n selects a font from the following table n Font 0 48 Font A 12 24 1 49 Font B 9 17 HRI indicates Human Readable Interpretation HRI characters are printed at the position specified by GS H n 0 GS H GS k GS h n Select bar code height Code Range Description Default Reference ASCII GS h n Hex 1D 68 n Decimal 29 104 n 1 n 255 Selects the height of the bar code n specifies the numbe...

Page 60: ...43 45 46 47 58 72 CODE93 1 n 255 0 d 127 73 CODE128 2 n 255 0 d 127 This command ends with a NUL code The number of data for ITF bar code must be even numbers When an odd number of data is input the printer ignores the last received data n indicates the number of bar code data and the printer processes n bytes from the next character data as bar code data If n is outside of the specified range the...

Page 61: ...hich selects Special characters are defined by combining two characters and one character The ASCII character is defined by transmitting twice consecutively Transmit data Specific character ASCII Hex Decimal SHIFT S 7B 53 123 83 CODE A A 7B 41 123 65 CODE B B 7B 42 123 66 CODE C C 7B 43 123 67 FNC1 1 7B 31 123 49 FNC2 2 7B 32 123 50 FNC3 3 7B 33 123 51 FNC4 4 7B 34 123 52 7B 7B 123 123 Example dat...

Page 62: ...for the function character is space HRI characters for the control character 00 H to 1F H and 7F H are not printed Be sure to keep spaces on both right and left sides of a bar code Spaces are different depending on the types of the bar code GS H GS f GS h GS w ...

Page 63: ... transmitted are shown below Paper sensor status n 1 49 Bit Off On Hex Decimal Status for ASB Off 00 0 Paper roll near end sensor paper adequate 0 1 On 03 3 Paper roll near end sensor paper near end Off 00 0 Paper roll end sensor paper adequate 2 3 On 0c 12 Paper roll end sensor paper near end 4 Off 00 0 Not used Fixed to Off 5 6 Undefined 7 Off 00 0 Not used Fixed to Off Bits 2 and 3 When the pap...

Page 64: ...ve only when there is no data in the print buffer This command has no effect in all print modes character size emphasized double strike upside down underline white black reverse printing etc for raster bit image Data outside the printing area is read in and discarded on a dot by dot basis The position at which subsequent characters are to be printed for raster bit image is specified by HT Horizont...

Page 65: ...ecifies the bar code width as follows Binary level Bar Code n Module Width mm for Multi level Bar Code Thin element width mm Thick element width mm 2 0 25 0 25 0 625 3 0 375 0 375 1 0 4 0 5 0 5 1 25 5 0 625 0 625 1 625 6 0 75 0 75 1 875 Multi level bar codes are as follows UPC A UPC E JAN13 EAN13 JAN8 EAN8 CODE93 CODE128 Binary level bar codes are as follows CODE39 ITF CODABAR n 2 GS k ...

Page 66: ...ight modes are set including right and left side character spacing quadruple size characters are printed The printer can underline all characters including right and left side character spacing but cannot underline the space set by HT and 90 clockwise rotated characters The thickness of the underline is that specified by FS regardless of the character size When some of the characters in a line are...

Page 67: ...the order of the first byte and second byte FS FS C FS n Turn underline mode on off for Kanji characters Code Range Description Notes Default Reference ASCII FS n Hex 1C 2D n Decimal 28 45 n 0 n 2 48 n 50 Turns underline mode for Kanji characters on or off based on the following values of n n Function 0 48 Turns off underline mode for Kanji characters 1 49 Turns on underline mode for Kanji charact...

Page 68: ...ed one byte at a time as ASCII code Kanji character mode is selected when the power is turned on FS FS C FS 2 c1 c2 d1 dk Define user defined Kanji characters Code Range Description Notes Default Reference ASCII FS 2 c1 c2 d1 dk Hex 1C 32 c1 c2 d1 dk Decimal 28 50 c1 c2 d1 dk c1 and c2 indicate character codes for the defined characters c1 FEH A1H c2 FEH 0 d 255 k 72 Defines user defined Kanji cha...

Page 69: ...e system Code Range Description Notes ASCII FS C n Hex 1C 43 n Decimal 28 67 n N 0 1 48 49 Selects a Kanji character code system based on the following values of n n Kanji System 0 48 JIS code 1 49 SHIFT JIS code This command is effective only for Japanese model ...

Page 70: ...n double width mode is set the left and right side character spacing is twice the normal value The horizontal and vertical motion units are set by GS P The previously specified character spacing does not change even if the horizontal or vertical motion unit is changed using GS P In standard mode the horizontal motion unit is used In page mode the horizontal or vertical motion unit differs in page ...

Page 71: ... is turned on Only the lowest bit of n is valid In quadruple size mode the printer prints the same size characters as when double width and double height modes are both turned on When quadruple size mode is turned off using this command the following characters are printed in normal size When some of the characters on a line are different in height all the characters on the line are aligned at the...

Page 72: ...Programmer s Guide TH200 72 3 Character Code Tables 3 1 Page 0 PC437 USA NOTES The character code tables show only character configurations They do not show the actual print ...

Page 73: ...Programmer s Guide TH200 73 pattern 3 2 PAGE1 Katakana ...

Page 74: ...Programmer s Guide TH200 74 3 3 Page 2 PC850 Multilingual ...

Page 75: ...Programmer s Guide TH200 75 3 4 Page 3 PC860 Portuguese ...

Page 76: ...Programmer s Guide TH200 76 3 5 Page 4 PC863 Canadian French ...

Page 77: ...Programmer s Guide TH200 77 3 6 Page 5 PC865 Nordic ...

Page 78: ...Programmer s Guide TH200 78 3 7 Page 18 PC852 Latin2 ...

Page 79: ...Programmer s Guide TH200 79 3 8 Page 19 PC858 ...

Page 80: ...Programmer s Guide TH200 80 3 9 Page 16 WPC1252 ...

Page 81: ...Programmer s Guide TH200 81 3 10 Page 17 PC866 Cyrillic 2 ...

Page 82: ...Programmer s Guide TH200 82 3 11 Thai character code 11 ...

Page 83: ...Programmer s Guide TH200 83 3 12 International Character Set ...

Page 84: ...Print area width changeable the default is 64mm L7 Right margin changeable the default is 9mm Printing and Cutting Positions L1 Paper f eed di recti on L2 Center of the pri nt dotl i ne Auto cutter bl ade posi ti on M anual cutter posi ti on L1 Approximate 34mm L2 Approximate 16mm Figure 1 7 1 Printing and Cutting Positions NOTES Numeric values used here are typical values the values may vary slig...

Page 85: ...ate The number following each function in the main menu shows the necessary times of pressing the FEED buttons to enable user s selection For example to configure printer the user needs to press the FEED button 6 times first and hold down the FEED button again for at least one second to enter the configure menu Below is a detailed description of the functions listed in the main menu 1 Print Self T...

Page 86: ...inter Setting and Test Pattern Configuration 3 Configuration Cutter Test 4 Half Cut Full Cut Test Sensor Test 5 1 Open Close Cover will toggle the Error LED On Off 2 Press Release Paper End Near End Sensor will toggle Error LED On Off Print Statistics 6 Print Statistics Figure 3 5 1 Main menu of configuration Exit Without Save 1 Exit With Save 2 Communication 3 SERIAL INTERFACE Back To Last 1 Baud...

Page 87: ...2 45 Bytes 3 Data Receive 8 DATA RECEIVE ERROR Back To Last Menu 1 Ignored 2 Prints 3 Mechanism Hardware 4 HARDWARE SETTINGS Back To Last 1 Mark Sensor 2 MARK SENSOR Disabled Back To Last Menu 1 Enable 2 Disable 3 Cutter 3 CUTTER Enabled Back To Last Menu 1 Enable 2 Disable 3 Buzzer 4 BUZZER Enabled Back To Last Menu 1 Enable 2 Disable 3 Power Supply 5 POWER SUPPLY Back To Last Menu 1 Normal 2 Low...

Page 88: ...0 mm 5 82 5 mm 6 Left Margin 4 LEFT MARGN 7mm Back To Last Menu 1 0mm 2 1mm 3 3mm 4 5mm 5 7mm 6 Right Margin 5 RIGHT MARGIN 9mm Back To Last Menu 1 0mm 2 1mm 3 3mm 4 5mm 5 7mm 6 9mm 9 CR Command 6 CR COMMAND Enabled Back To Last Menu 1 Enable 2 Disable 3 Code Page 7 CODE PAGE SETTING Back To Last Menu 1 PC437 2 PC850 3 PC852 4 PC858 5 PC860 6 PC863 7 PC865 8 PC866 9 PC1252 10 Katakana Japanese mod...

Page 89: ...s 6 PAPER NEAR END SETTINGS Back To Last 1 PAPER LOW 2 PAPER LOW ALARM Enabled Back To Last Menu 1 Enable 2 Disable 3 Stop Print when PAPER LOW 3 STOP PRINT WHEN PAPER LOW Enabled Back To Last Menu 1 Enable 2 Disable 3 Set Default Configuration 7 SET DEFAULT CONFIG Back To Last 1 Set Printer To Default Config 2 Figure 3 5 2 List of configuration ...

Page 90: ...p To terminate From this point on all data received by the printer will be printed in hexadecimal numbers and in its corresponding characters NOTES 1 Non printable characters will be printed as 2 In hexadecimal dump mode all commands other than DLE EOT DLE ENQ and DLE DC4 are not executed 3 Insufficient print data to fill the last line can be printed by pressing the FEED button 3 Ending hexadecima...

Page 91: ...llectively and sending an FF command restores the printer to standard mode after the received data is printed collectively Executing an ESC S command restores the printer to standard mode without printing the received data in page mode the received data is cleared from memory instead Figure 3 12 1 Shifting Between Standard Mode and Page Mode Setting Values in Standard and Page Modes 1 The availabl...

Page 92: ...ta point B in Figure 3 12 3 is aligned with the baseline However any Human Readable Interpretation HRI characters are printed under the baseline At the point labeled Point B if characters such as double height characters higher than normal size characters or downloaded bit image characters are received any part of the character higher than the normal size character is not printed 3 If the print da...

Page 93: ...for feeding Use the following commands ESC W xL xH yL yH dxL dxH dyL dyH ESC T n ESC 3 54 Set line spacing to be added LF GS 1 ESC 2 Reset the line spacing to 4 23 mm 1 6 NOTES Vertical and horizontal motion units are 1 360 in the vertical direction and 1 180 in the horizontal direction therefore the position you specify varies depending on the printing direction Setting the vertical motion unit t...

Page 94: ...Programmer s Guide TH200 94 Figure 3 12 3 Print Data Developing Position Figure 3 12 4 Downloaded Bit Image Developing Position ...

Page 95: ... bit image characters are printed paper is fed for 24 dots Refer to Table A 1 When only rotated characters are printed on one line paper feeding is executed as shown in Table A 1 2 When the printer goes to the standby data waiting state during printing it temporarily stops printing and feeding paper When data is transmitted and printing is executed paper may shift 1 to 3 dots from the print starti...

Page 96: ...the following To set paper type to marked paper by FEED button configuring the selection sequence is Configuration Hardware Setting Mark Sensor Enabled Save Settings Then switch on printer again to effect the setting When Mark Sensor mode is enabled the paper sensor will acted as a Mark Sensor When it detect no paper it will not take it as a real no paper state but to take it as a sensor is in a p...

Page 97: ...o Status Back ASB however process the consecutive three Nbyte code except for XOFF as ASB data after confirming the first byte of the ASB Otherwise the status transmitted by using the GS r and the status of the second and following bytes of the ASB cannot be differentiated Table G 1 Transmission Status Identification Command Function Status Reply GS I 0 0 B GS r 0 0 B XON 00010001 B XOFF 00010011 ...

Page 98: ... to Cutter 0x2A 0x5B Unit Dot Distance From Mark Sensor to TPH 0x2C 0x3F Unit Dot Rx buffer size 0X7D 0x00 0 4096 Bytes 1 45 Bytes Cutter 0x30 0x01 0 Disabled 1 Enabled Handshaking 0x40 0x00 0 DSR DTR 1 XON XOFF Stop printing when paper near end 0x44 0x00 0 No 1 Yes Left margin 0x4a 0x07 Unit mm Right margin 0x4e 0x09 Unit mm Warning when paper near end 0x54 0x01 0 Disabled 1 Enabled Buzzer 0x58 0...

Page 99: ... data string 0x1b 0x73 0x42 0x45 0x92 0x9a 0xDL see table 0xDH always 0x00 0xAD see table to printer 0xDL 0xDH are the low byte and high byte of a parameter 0xAD is the address in the NVR ram For instance Sending the string 0x1b 0x73 0x42 0x45 0x92 0x9a 0x01 0x00 0x16 via the serial interface to the printer will sets the baud rate of the printer to 19200 baud ...

Page 100: ...nding an FF f After printing the printer automatically returns to standard mode Example 1 Sample program in BASIC assumes transmission to the printer is already possible with file 1 open 100 PRINT 1 CHR H1B L 110 PRINT 1 CHR H1B W CHR 0 CHR 0 CHR 0 CHR 0 120 PRINT 1 CHR 180 CHR 0 CHR 204 CHR 1 130 PRINT 1 CHR H1B T CHR 0 140 PRINT 1 The Programme In Page Mode Test 150 PRINT 1 CHR H0C In the progra...

Page 101: ...R H1B L 110 PRINT 1 CHR H1B W CHR 0 CHR 0 CHR 0 CHR 0 120 PRINT 1 CHR 180 CHR 0 CHR 204 CHR 1 130 PRINT 1 CHR H1B T CHR 0 140 PRINT 1 The CAN Command Test In Page Mode 150 PRINT 1 CHR H0A 160 PRINT 1 ABCDEFGHIJKLMNOPQRST1234567890 170 PRINT 1 CHR H0C This example works as follows First transmit ESC L to switch to page mode line no 100 Then use ESC W to send 8 parameters from n1 to n8 to specify th...

Page 102: ... 0 180 PRINT 1 CHR 39 CHR 0 CHR 51 CHR 0 190 PRINT 1 CHR H18 200 PRINT 1 CHR H0C If the above program is included character string GH is deleted resulting in the printout shown in Figure 1 3 When an area is deleted with CAN the deleted part is left blank Figure 1 3 Page Mode Example 3 ...

Page 103: ...cessed as a character for code set A SHIFT characters cannot be used in code set C Code set selection character CODE A CODE B CODE C This character switches the following code set to code set A B or C Function character FNC1 FNC2 FNC3 FNC4 The usage of function characters depends on the application software In code set C only FNC1 is available K 2 Code Tables Printable characters in code set A Tra...

Page 104: ... 42 7B 43 123 51 123 52 123 83 123 66 123 67 Printable characters in code set B Transmit Data Transmit Data Transmit Data Character Hex Decimal Character Hex Decimal Character Hex Decimal SP 0 1 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 H I J K L M N O P Q R S T U V W X Y 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 72 73 7...

Page 105: ...123 52 123 83 123 65 123 67 Printable characters in code set C Transmit Data Transmit Data Transmit Data Character Hex Decimal Character Hex Decimal Character Hex Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 28 29 2A 2B 2C 2D 2E 2F 30 31 32 ...

Page 106: ... 24 25 26 27 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 98 99 FNC1 CODEA CODEB 62 63 7B 31 7B 41 7B 42 98 99 123 49 123 65 123 66 ...

Reviews: