background image

                                                                                              TP809 Programming Manual

 

 

 

1 Bit Image Commands 

 

Select bit

-

image mode

 

[Format]

 

ASCII

 

ESC 

 

 

m nL nH d1...dk

 

 

Hex

 

1B 

 

2A 

 

m nL nH d1...dk

 

 

Decimal

 

27 

 

42 

 

m nL nH d1...dk

 

[Range]

 

m = 0, 1, 32, 33

 

 

1 ≤ (nL + nH × 256) ≤ 2047

 

 

(0 ≤ nL ≤ 255, 0 ≤ nH ≤ 7)

 

 

0 ≤ d ≤ 255

 

 

k = nL + nH × 256    [when m = 0, 1]

 

 

k = (nL + nH × 256) × 3    [when m = 32, 33]

 

[Description]

 

• Stores the bit image data in the print buffer using the bit image mode specified by m.

 

 

• nL, nH specifies the number of dots of the image data in the horizontal direction as (nL 

+ nH × 256). 

 

 

• d specifies the bit image data (column format).

 

 

m

 

Bit image mode

 

Vertical direction

 

Horizontal 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

 

[Format]

 

ASCII

 

GS   

 

*   

 

 

  y    d1...dk

 

 

Hex

 

1D 

 

2A    x 

 

  y    d1...dk

 

 

Decimal

 

29 

 

42    x 

 

  y    d1...dk

 

[Range]

 

1 ≤ x ≤ 255

 

 

1 ≤ y ≤ 48    [where 1 ≤ x × y ≤ 1536]

 

 

0 ≤ d ≤ 255

 

 

k = x × y × 8

 

[Description]

 

• Defines the downloaded bit image in the downloaded graphic area.

 

 

• x specifies the number of bytes in the horizontal direction as x bytes. 

 

 

• y specifies the number of bytes in the vertical direction as y bytes.

 

 

• d specifies the defined data (column format).

 

[Note]

 

•A  downloaded  bit  image  and  user

-

defined  characters(ESC  &)  cannot  be  defined 

simultaneously.When this command is executed,all user

-

defined characters are deleted.

 

 

 

Содержание TP809

Страница 1: ...TP809 Programming Manual Rev 1 2...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 32: ...TP809 Programming Manual 26...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: