background image

 

 

 

ESC/POS Command Manual 

27 

CP862 

Hebrew 

CP864 

Arabic 

CP866 

Cyrillic 

CP1252 

Latin1(Spanish) 

CP1253 

Greek 

ISO8859 

Latin5(Turkish) 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ESC { 

 
[Name]       

Turns on/off upside-down printing mode 

 
[Format]                 

ASCII 

  ESC        {           

Hex            1B           7B         

Decimal    27          123 

 

[Range] 

 

 n 

 255 

 
[Description] 

Turns upside-down printing mode on or off. 
—When the LSB of 

n

 is 0, upside-down printing mode is turned off. 

—When the LSB of 

n

 is 1, upside-down printing mode is turned on. 

 
[Details] 

 

—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 the line to be printed by 180˚ and 
  then prints it. 
 

[Default]       

n

 = 0 

 
[Example]   

 

 

 
 
 
 

Содержание LK-P SERIES

Страница 1: ...LK P11 Mobile Receipt Printer ESC POS Command Manual SEWOO TECH CO LTD www miniprinter com...

Страница 2: ...feed paper using minimum units 24 ESC L Select page mode 25 ESC M Select character font 26 ESC R Select international character set 27 ESC S Select standard mode 28 ESC T Select print direction in pag...

Страница 3: ...ESC POS Command Manual 3 52 GS r Transmit status 53 GS v 0 Print raster bit image 54 GS w Set bar code width...

Страница 4: ...numbers k indicates the contents of the should be repeated k times Range The allowable range for the arguments Description Description of the command function Details If necessary provides important...

Страница 5: ...print buffer full printing of the current line and horizontal tab processing from the beginning of the next line The default setting of the horizontal tab position for the paper roll is font A 12 x 24...

Страница 6: ...d only in page mode Reference ESC FF ESC L ESC S CAN Name Cancel print data in page mode Format ASCII CAN Hex 18 Decimal 24 Description In page mode delete all the print data in the current printable...

Страница 7: ...r 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 then DLE EOT 3 interrupts before n is received the cod...

Страница 8: ...0 Not used Fixed to Off 1 On 02 2 Not used Fixed to On Off 00 0 Paper roll sensor paper adequate 2 3 On 0C 12 Paper roll end detected by the paper roll sensor 4 On 10 16 Not used Fixed to On Off 00 0...

Страница 9: ...etails This command is enabled only in page mode After printing the printer does not clear the buffered data setting value for ESC T and ESC W and the position for buffering character data Reference F...

Страница 10: ...On Hex Decimal Function Off 00 0 Character font A 12x24 0 On 01 1 Character font B 9x17 1 Undefined 2 Undefined Off 00 0 Emphasized mode not selected 3 On 08 8 Emphasized mode selected Off 00 0 Doubl...

Страница 11: ...print position is nL nH x 256 x vertical or horizontal motion unit inches Settings outside the specified printable area are ignored In page mode the horizontal or vertical motion unit differs dependin...

Страница 12: ...s from ASCII code 20 H to 7E 95characters 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 T...

Страница 13: ...ESC POS Command Manual 13 ESC m nL nH d1 dk Name 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...

Страница 14: ...data is ignored d indicates the bit image data Set a corresponding bit of 1 to print a dot or to 0 to not print a dot If the width of the printing area set by GS L and GS W less than the width requir...

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

Страница 16: ...r only 1016 mm 40 Default Line space is equivalent to approximately 4 23 mm 1 6 Reference ESC 2 ESC n Name Cancel user defined characters Format ASCII ESC n Hex 1B 3F n Decimal 27 63 n Range 32 n 126...

Страница 17: ...ing of the line The character width includes the right side character spacing and double width characters are set with twice the width of normal characters This command cancels the previous horizontal...

Страница 18: ...d ESC Turn on and off emphasized mode in the same way Be careful when this command is used with ESC Default n 0 Reference ESC ESC G n Name Turn on off double strike mode Format ASCII ESC G n Hex 1B 47...

Страница 19: ...rence ESC L Name Select page mode Format ASCII ESC L Hex 1B 4C Decimal 27 76 Description Switches from standard mode to page mode Details This command is enabled only when input at the beginning of a...

Страница 20: ...unction 0 48 Character font A 12 X 24 Selected 1 49 Character font B 9 X 24 Selected Details The ESC command can also select the character fonts However the setting of the last received command is eff...

Страница 21: ...e Data buffered in page mode and the printable area developed in page mode are cleared This command is switches the setting for the following command in which the values can be set independently in st...

Страница 22: ...figure 3 51 Top to bottom Upper right D in the figure Details When the command is input in standard mode the printer executes only internal flag operation This command does not affect printing in stan...

Страница 23: ...width commands in normal mode This command affects printing in standard mode However the setting is always effective Default n 0 Reference ESC ESC ESC W xL xH yL yH dxL dxH dyL dyH Name Set printing...

Страница 24: ...rintable area the printing area height is automatically set to vertical printable area vertical starting position Use the horizontal motion unit for setting the horizontal starting position area width...

Страница 25: ...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 Reference ESC ESC a n Name Select justification Format ASCII ES...

Страница 26: ...the paper feed amount n x line spacing of more than 1016 mm 40 is specified the printer feeds the paper only 1016 mm 40 Reference ESC 2 ESC 3 ESC t n Name Select character code table Format ASCII ESC...

Страница 27: ...of n is 0 upside down printing mode is turned off When the LSB of n is 1 upside down printing mode is turned on Details Only the lowest bit of n is valid This command is enabled only when processed a...

Страница 28: ...m m Mode Vertical Dot Density Horizontal Dot Density 0 48 Normal 180 dpi 180 dpi 1 49 Double width 180 dpi 90 dpi 2 50 Double height 90 dpi 180 dpi 3 51 Quadruple 90 dpi 90 dpi dpi dots per 25 4mm 1 D...

Страница 29: ...rea width cannot be extended by one line vertically the left margin is reduced to accommodate one line vertically If the downloaded bit image to be printed exceeds one line the excess data is not prin...

Страница 30: ...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 In page mode this command is not effective This command is...

Страница 31: ...fied 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 not erased by performing ESC reset and...

Страница 32: ...r of times 8 1 horizontal number of times 8 Description Selects the character height using bits 0 to 3 and selects the character width using bits 4 to 7 as follows Bit Off On Hex Decimal Function 0 1...

Страница 33: ...des on or off However the setting of the last received command is effective Default n 0 Reference ESC GS nL nH Name Set absolute vertical print position in page made Format ASCII GS nL nH Hex 1D 24 nL...

Страница 34: ...ion y indicates he number of dots in the vertical direction Details The number of dots in the horizontal direction is x x 8 in the vertical direction it is y x 8 If x x y is out of the specified range...

Страница 35: ...ored if a downloaded bit image has not been defined In standard mode this command is effective only when the on data exists in the print buffer This command is not affected by print modes emphasized d...

Страница 36: ...lack reverse printing mode is on it also applied to character spacing set by ESC SP This command does not affect bit image user defined bit image bar code HRI characters and spacing skipped by HT ESC...

Страница 37: ...L nH 256 horizontal motion unit inches Printable area Left margin Printing width Details This command is effective only of the beginning of a line If this command is input in page made the printer per...

Страница 38: ...g in page mode If the left margin printing area width exceeds the printable area printable area width left margin is used The horizontal motion unit x is used for calculating the printing area width T...

Страница 39: ...dot Downloaded bit image GS Double width mode or Quadruple mode 2 dots Normal mode or Double height mode 1 dot NV bit image FS p Double width mode or Quadruple mode 2 dots Normal mode or Double height...

Страница 40: ...s in the table above are enabled the printer transmits the status when this command is executed The printer automatically transmits the status whenever the enabled status item changes The disabled sta...

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

Страница 42: ...ils HRI means Human Readable Interpretation HRI characters are printed of the position specified by GS H Default n 0 Reference GS H GS k GS h n Name Select bar code height Format ASCII GS h n Hex 1D 6...

Страница 43: ...e bar code system used is UPC A or UPC E the printer prints the bar code data after receiving 12 bytes bar code data and processes the following data as normal data When the bar code system used is JA...

Страница 44: ...es not change If bar code width exceeds the printing area the printer does not print the bar code but moves the data buffer position to the left side out of the printing area Refer to Figure 3 12 3 fo...

Страница 45: ...3 7B 33 123 51 FNC4 4 7B 34 123 52 7B 7B 123 123 Example Example data for printing No 123456 In this example the printer first prints No using CODE B then prints the following numbers using CODE C GS...

Страница 46: ...ransmits only 1 byte without confirming the condition of the DSR signal This command is executed when the data in the receive buffer is developed Therefore there may be a time lag between receiving th...

Страница 47: ...de this command is effective 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 reve...

Страница 48: ...a dot GS w n Name Set bar code width Format ASCII GS w n Hex 1D 77 n Decimal 29 119 n Range 2 n 6 Description Set the horizontal size of the bar code n specifies the bar code width as follows Binary...

Отзывы: