background image

 

ESC % n

 ................................................................................................................................................................... 

18

 

ESC ? n

 .................................................................................................................................................................... 

19

 

ESC SP n

 .................................................................................................................................................................. 

19

 

CAN

 ......................................................................................................................................................................... 

19

 

ESC – n

 .................................................................................................................................................................... 

19

 

ESC E n

 .................................................................................................................................................................... 

20

 

ESC R n

 .................................................................................................................................................................... 

20

 

ESC M n

 ................................................................................................................................................................... 

21

 

ESC V n

 .................................................................................................................................................................... 

21

 

ESC { n

 ..................................................................................................................................................................... 

21

 

ESC G n

 ................................................................................................................................................................... 

22

 

GS B n

 ..................................................................................................................................................................... 

22

 

GS ! n

 ...................................................................................................................................................................... 

23

 

ESC t n

 ..................................................................................................................................................................... 

24

 

ESC &

 ...................................................................................................................................................................... 

25

 

6 Status Commands

 ....................................................................................................................... 

27

 

GS r n

 ...................................................................................................................................................................... 

27

 

ESC v

 ....................................................................................................................................................................... 

29

 

DLE EOT n

 ............................................................................................................................................................... 

30

 

7 Barcode Commands

 .................................................................................................................... 

33

 

GS h n

 ..................................................................................................................................................................... 

33

 

GS f n

 ...................................................................................................................................................................... 

33

 

GS H n

 ..................................................................................................................................................................... 

33

 

GS k

 ......................................................................................................................................................................... 

34

 

GS w n

 ..................................................................................................................................................................... 

35

 

GS ( k pL pH cn fn [parameters]

 .............................................................................................................................. 

36

 

<Function 065> GS ( k pL pH cn fn n    (cn = 48, fn = 65)

 ........................................................................................ 

37

 

<Function 066> GS ( k pL pH cn fn n    (cn = 48, fn = 66)

 ........................................................................................ 

37

 

<Function 067> GS ( k pL pH cn fn n    (cn = 48, fn = 67)

 ........................................................................................ 

37

 

<Function 068> GS ( k pL pH cn fn n    (cn = 48, fn = 68)

 ........................................................................................ 

38

 

<Function 069> GS ( k pL pH cn fn n    (cn = 48, fn = 69)

 ........................................................................................ 

38

 

<Function 080> GS ( k pL pH cn fn m d1…dk    (cn = 48, fn = 80)

 ........................................................................... 

39

 

<Function 081> GS ( k pL pH cn fn m    (cn = 48, fn = 81)

 ....................................................................................... 

40

 

<Function 082> GS ( k pL pH cn fn m    (cn = 48, fn = 82)

 ....................................................................................... 

40

 

<Function 167> GS ( k pL pH cn fn n    (cn = 49, fn = 67)

 ........................................................................................ 

41

 

<Function 169> GS ( k pL pH cn fn n    (cn = 49, fn = 69)

 ........................................................................................ 

41

 

<Function 180> GS ( k pL pH cn fn m d1…dk    (cn = 49, fn = 80)

 ........................................................................... 

42

 

<Function 181> GS ( k pL pH cn fn m    (cn = 49, fn = 81)

 ....................................................................................... 

42

 

<Function 182> GS ( k pL pH cn fn m    (cn = 49, fn = 82)

 ....................................................................................... 

43

 

8 Mechanical Control Commands

 ................................................................................................... 

44

 

GS V

 ........................................................................................................................................................................ 

44

 

ESC i

 ........................................................................................................................................................................ 

44

 

ESC m

 ...................................................................................................................................................................... 

45

 

ESC u

 ....................................................................................................................................................................... 

46

 

9 Line Spacing Commands

 .............................................................................................................. 

47

 

Summary of Contents for TP809

Page 1: ...TP809 Programming Manual Rev 1 2...

Page 2: ...14 PUBLICATION Yan Xiaomei Lin Yang Lin Yang 1 1 2018 11 28 Modify Function 065 066 067 068 069 080 081 082 167 169 180 182 Baochun Lin Lin Yang Lin Yang 1 2 2018 12 03 Add function ESC ESC 3 ESC S FS...

Page 3: ...part describes the command with ASCII code format HEX format and Decimal format 3 Range The range of the variable The range value is default as decimal digit For example 1 n 4 1 and 4 are decimal digi...

Page 4: ...pL pH m fn kc1 kc2 fn 66 5 Function 67 GS L pL pH m fn a kc1 kc2 b xL xH yL yH c d1 dk 1 c d1 dk b fn 67 6 Function 69 GS L pL pH m fn kc1 kc2 x y fn 69 7 Function 112 GS L pL pH m fn a bx by c xL xH...

Page 5: ...k pL pH cn fn n cn 48 fn 67 37 Function 068 GS k pL pH cn fn n cn 48 fn 68 38 Function 069 GS k pL pH cn fn n cn 48 fn 69 38 Function 080 GS k pL pH cn fn m d1 dk cn 48 fn 80 39 Function 081 GS k pL...

Page 6: ...ands 48 ESC S 48 11 KANJI Commands 49 FS 49 FS 50 FS 51 FS 52 FS 2 53 FS W 54 12 Other Commands 55 FS q n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n FS p n m obsolete command 55 GS v 0 m xL xH yL yH d1 d...

Page 7: ...l direction 0 8 dots single density 68 dpi 101 dpi 1 8 dots dual density 68 dpi 203 dpi 32 24 dot single density 203 dpi 101 dpi 33 24 dot double density 203 dpi 203 dpi Define downloaded bit image Fo...

Page 8: ...used for explanation Note that GS L and GS 8 L have the same function If the parameters in the Format column in the table below exceed 65533 bytes use GS 8 L The only differences between GS L and GS...

Page 9: ...a including the real time commands while the printer is BUSY When Function 48 51 or 64 is transmitted do not transmit the subsequent data until the status is received ESC POS Handshaking Protocol proc...

Page 10: ...data in the print buffer Format ASCII GS L pL pH m fn Hex 1D 28 4C pL pH m fn Decimal 29 40 76 pL pH m fn Range pL pH 256 2 pL 2 pH 0 m 48 fn 2 50 Description Prints the buffered graphics data stored...

Page 11: ...n 65 Function Delete all NV graphics data Format ASCII GS L pL pH m fn d1 d2 d3 Hex 1D 28 4C 05 00 30 41 43 4C 52 Decimal 29 40 76 5 0 48 65 67 76 82 Range pL pH 256 5 pL 5 pH 0 m 48 fn 65 d1 67 d2 76...

Page 12: ...selected 0 d 255 k int xL xH 256 7 8 yL yH 256 The entire capacity size 256 KB maximum Description Defines the NV graphics data raster format as a record specified by the key codes kc1 kc2 in the NV...

Page 13: ...L pH m fn kc1 kc2 x y Decimal 29 40 76 pL pH m fn kc1 kc2 x y Range pL pH 256 6 pL 6 pH 0 m 48 fn 69 32 kc1 126 32 kc2 126 x 1 2 y 1 2 Description Prints the NV graphics data defined by the key codes...

Page 14: ...cted 1 xL xH 256 2047 0 xL 255 0 xH 7 When single color print control is selected 1 yL yH 256 1662 0 yL 255 0 yH 6 when by 1 1 yL yH 256 831 0 yL 255 0 yH 3 when by 2 When two color print control is s...

Page 15: ...535 0 nL 255 0 nH 255 Description Moves the print position to nL nH 256 horizontal or vertical motion unit from the left edge of the print area ESC T n Function Select print direction in page mode For...

Page 16: ...on to nL nH 256 vertical or horizontal motion unit from the starting position set with ESC T ESC nL nH Function Set horizontal relative print position Format ASCII ESC nL nH Hex 1B 5C nL nH Decimal 27...

Page 17: ...model dxL dxH 256 384 dxL 104 dxH 4 58 mm paper width model dyL dyH 256 1662 dyL 126 dyH 6 Description In page mode sets the size and the logical origin of the print area xL xH specify the horizontal...

Page 18: ...k 00 Decimal 27 68 n1 nk 0 Range 1 n1 n2 nk 255 0 k 32 Default n 8 16 24 32 40 232 240 248 for Font A 12 24 in a standard character size width Description Sets horizontal tab positions n specifies the...

Page 19: ...el Description In standard mode sets the print area width to nL nH 256 horizontal motion unit GS nL nH Function Set relative vertical print position in page mode Format ASCII GS nL nH Hex 1D 5C nL nH...

Page 20: ...ent line spacing FF In page mode Function Print and return to standard mode in page mode Format ASCII FF Hex 0C Decimal 12 Description Prints all the data in the print buffer collectively and switches...

Page 21: ...print buffer and feeds the paper n vertical or horizontal motion unit Note The maximum paper feed amount is 1016 mm 40 ESC d n Function Print and feed n lines Format ASCII ESC d n Hex 1B 64 n Decimal...

Page 22: ...tes a specified test print pL pH specify pL pH 256 as the number of bytes after pH n and m n specifies the paper used for the test print m specifies a test pattern Note The printer executes software r...

Page 23: ...alue Setting value specified with GS E ESC L Function Select page mode Format ASCII ESC L Hex 1B 4C Decimal 27 76 Description Switches from standard mode to page mode ESC p m t1 t2 Function Generate p...

Page 24: ...00 0 Emphasized mode is turned off On 08 8 Emphasized mode is turned on 4 Off 00 0 Double height canceled On 10 16 Double height selected 5 Off 00 0 Double width canceled On 20 32 Double width selecte...

Page 25: ...de character spacing to n horizontal or vertical motion unit Note The maximum right side spacing is 31 875 mm 255 203 CAN Function Cancel print data in page mode Format ASCII CAN Hex 18 Decimal 24 Des...

Page 26: ...urns on emphasized mode ESC R n Function Select an international character set Format ASCII ESC R n Hex 1B 52 n Decimal 27 82 n Range 0 n 15 Default n 0 Other than the following models n 15 Simplified...

Page 27: ...n Decimal 27 86 n Range 0 n 2 48 n 50 Default n 0 Description In standard mode turns 90 clockwise rotation mode on or off for characters n Function 0 48 Turns off 90 clockwise rotation mode 1 49 2 50...

Page 28: ...he LSB of n is 0 turns off double strike mode When the LSB of n is 1 turns on double strike mode GS B n Function Turn white black reverse print mode on off Format ASCII GS B n Hex 1D 42 n Decimal 29 6...

Page 29: ...ication and width magnification n Bit Off On Hex Decimal Function 0 2 See table Height magnification Selects the height magnification 3 Off 00 0 Reserved 4 6 See table Width magnification Selects the...

Page 30: ...na 45 WPC1250 2 PC850 Multilingual 46 WPC1251 Cyrillic 3 PC860 Portuguese 47 WPC1253 4 PC863 Canadian French 48 WPC1254 5 PC865 Nordic 49 WPC1255 13 PC857 Turkish 50 WPC1256 14 PC737 Greek 51 WPC1257...

Page 31: ...inted to 0 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 When the value of y...

Page 32: ...TP809 Programming Manual 26...

Page 33: ...Drawer kick out connector status n 2 50 Note When this command is transmitted do not transmit the subsequent data until this status is received Bit Off On Hex Decimal Status 0 1 Off 00 0 Roll paper ne...

Page 34: ...tus 0 Off 00 0 Drawer kick out connector pin3 is LOW On 01 1 Drawer kick out connector pin3 is HIGH 1 3 Reserved 4 Off 00 0 Fixed 5 6 Reserved 7 Off 00 0 Fixed n Function 1 49 Transmits paper sensor s...

Page 35: ...e of data as follows Note This command is only valid for serial model Bit Off On Hex Decimal Status 0 1 Off 00 0 Roll paper near end sensor paper adequate On 03 3 Roll paper near end sensor paper near...

Page 36: ...ring matching this command Do not embed this command within another command Example Graphic data might include this command Transmit this command using the following method When this command is transm...

Page 37: ...f 00 0 Paper is not being fed with the paper FEED button On 08 8 Paper is being fed with the paper FEED button 4 On 10 16 Fixed 5 Off 00 0 No paper end stop On 20 32 Printing stopped due to paper end...

Page 38: ...On 02 2 Fixed 2 3 Off 00 0 Roll paper near end sensor paper adequate On 0C 12 Roll paper near end sensor paper near end 4 On 10 16 Fixed 5 6 Off 00 0 Roll paper end sensor paper sensor paper present O...

Page 39: ...0 1 48 49 Default n 0 Description Select a font for the HRI characters when printing a bar code n Font for the HRI characters 0 48 Character font A 12 24 1 49 Character font B 9 17 GS H n Function Se...

Page 40: ...f bytes of bar code data d specifies the bar code data For Function B Note n of Function B specifies the number of bytes of bar code data d specifies the bar code data Users must secure the quiet zone...

Page 41: ...dn 100 72 CODE93 1 n 255 0 d 127 73 CODE128 2 n 255 0 d 127 where d1 123 65 d2 67 GS w n Function Set bar code width Format ASCII GS w n Hex 1D 77 n Decimal 29 119 n Range 2 n 6 Range n 3 Description...

Page 42: ...pL pH cn fn n 065 PDF417 Set the number of columns in the data region 66 GS k pL pH cn fn n 066 PDF417 Set the number of rows 67 GS k pL pH cn fn n 067 PDF417 Set the width of the module 68 GS k pL p...

Page 43: ...n 65 Function PDF417 Set the number of columns in the data region Format ASCII GS k pL pH cn fn n Hex 1D 28 6B 03 00 30 41 n Decimal 29 40 107 3 0 48 65 n Range pL pH 256 3 pL 3 pH 0 cn 48 fn 65 0 n 3...

Page 44: ...te is set to n 10 The error correction levels in the following table are determined by the calculation Data codeword n 0 1 A Fractions of 0 5 and over are rounded up and others are truncated Function...

Page 45: ...rrection codewords 0 3 Error correction level1 4 4 10 Error correction level2 8 11 20 Error correction level3 16 21 45 Error correction level4 32 46 100 Error correction level5 64 101 200 Error correc...

Page 46: ...ecifications for PDF417 printing In standard mode symbols higher than 831 dots cannot be printed with this printer Function 082 GS k pL pH cn fn m cn 48 fn 82 Function PDF417 Transmit the size informa...

Page 47: ...n dots Function 169 GS k pL pH cn fn n cn 49 fn 69 Function QR Code Select the error correction level Format ASCII GS k pL pH cn fn n Hex 1D 28 6B 03 00 31 45 n Decimal 29 40 107 3 0 49 69 n Range pL...

Page 48: ...R Code symbol data d1 dk into the symbol storage area Function 181 GS k pL pH cn fn m cn 49 fn 81 Function QR Code Print the symbol data in the symbol storage area Format ASCII GS k pL pH cn fn m Hex...

Page 49: ...28 6B 03 00 31 52 m Decimal 29 40 107 3 0 49 82 m Range pL pH 256 3 pL 3 pH 0 cn 49 fn 82 m 48 Description Transmits the size information for the encoded QR Code symbol data in the symbol storage area...

Page 50: ...partial cut one point left uncut as follows m Function A 0 48 Executes a full cut cuts the paper completely 1 49 Executes a partial cut one point left uncut B 65 66 Feeds paper to cutting position n v...

Page 51: ...hree points left uncut Format ASCII ESC m Hex 1B 6D Decimal 27 109 Range None Default None Description Executes a partial cut of the roll paper Notes See GS V Function A for details The cutting shape...

Page 52: ...us as 1 byte of data Recommended Functions This command is supported only by some printer models but will not be supported by future models It is recommended to use GS r 2 to check the status and GS r...

Page 53: ...l motion unit is used for the print direction set by ESC T When the starting position is set to the upper left or lower right of the print area using ESC T the vertical motion unit is used When the st...

Page 54: ...ta in all the print areas is cleared the print area set by ESC W returns to the default value but the value set by ESC T is maintained The following commands switch the settings for standard mode beca...

Page 55: ...double height modes are specified quadruple size characters are printed When double height mode is selected in standard mode a character is enlarged in the paper feed direction and when double width m...

Page 56: ...6 Decimal 28 38 Description Selects Kanji character mode Notes This command can be used only for the Japanese Hangeul Simplified Chinese and Traditional Chinese models Settings of this command are eff...

Page 57: ...derline mode is specified 90 clockwise rotation characters white black reverse characters and spaces skipped by HT ESC or ESC are not underlined When a character size is changed an underline width is...

Page 58: ...2E Decimal 28 46 Description Cancels Kanji character mode Notes This command can be used only for the Japanese Hangeul Simplified Chinese and Traditional Chinese models Settings of this command are e...

Page 59: ...therefore it does not need to be transmitted Notes This command is effective only for the Japanese Simplified Chinese Traditional Chinese and Korean models The printer processes k byte data of d1 dk...

Page 60: ...al size is specified When the LSB of n is 1 quadruple size mode is turned on Notes Settings of this command affect multilingual characters and user defined characters When a double height mode is spec...

Page 61: ...mmand GS L Function 112 and 50 which is the upward compatible command replacing GS v 0 is recommended to use since GS v 0 is an obsolete command in the ESC POS command system Function Print raster bit...

Page 62: ...do not transmit data from the host computer while the printer is BUSY m Mode Vertical direction Horizontal direction 0 48 Normal 203dpi 203dpi 1 49 Double width 203dpi 101dpi 2 50 Double height 101dp...

Reviews: