background image

 

 

 

ESC/POS Command Manual 

44 

spacing specified by ESC 2 or ESC 3. 
—This command is enabled only when on data exists in the print buffer.   
When data exists in the print butter, the printer processes the data following m as normal data. 
—After printing bar code, this command sets the print position to the beginning of the line. 
—This  command  is  not  affected  by  print  modes  (emphasized,  double-strike,  underline, 
character size, white/black reverse printing, or 90˚ rotated character, etc), except for upside-
down printing mode. 

[Details in page made] 

—This  command  develops  bar  coed  data  in  the  print  buffer,  but  does  not  print  it.  After 
processing bar cod data, this command moves the print position to the right side dot of the bar 
code.   
—If  d  is  out  of  the  specified  rang,  the  printer  stops  command  processing  and  processes  the 
following data as normal data. In this case, the data butter position does 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 for bar code data buffer position. 

 
When CODE93 (m=72) is used :   

 

 

  —The printer prints an HRI character (□)as start character at the   

beginning of the HRI character string. 

 

 

  —The printer prints an HRI character(□)as a stop character at the end of   

the HRI character string. 

 

 

  —The printer HRI characters (■+an alphabetic character) as a control   

character(<00>H to <1F>H and <7F>H): 
 

Control character 

Control character 

ASC

 

Hex 

Decimal 

HRI character 

ASC

 

Hex 

Decimal 

HRI character 

NUL 

00 

■U 

DLE 

10 

16 

■P 

SOH 

01 

■A 

DC1 

11 

17 

■Q 

STX 

02 

■B 

DC2 

12 

18 

■R 

ETX 

03 

■C 

DC3 

13 

19 

■S 

EOT 

04 

■D 

DC4 

14 

20 

■T 

ENQ 

05 

■E 

NAK 

15 

21 

■U 

ACK 

06 

■F 

SYN 

16 

22 

■V 

BEL 

07 

■G 

ETB 

17 

23 

■W 

BS 

08 

■H 

CAN 

18 

24 

■X 

HT 

09 

■I 

EM 

19 

25 

■Y 

LF 

0A 

10 

■J 

SUB 

1A 

26 

■Z 

VT 

0B 

11 

■K 

ESC 

1B 

27 

■A 

FF 

0C 

12 

■L 

FS 

1C 

28 

■B 

CR 

0D 

13 

■M 

GS 

1D 

29 

■C 

SO 

0E 

14 

■N 

RS 

1E 

30 

■D 

SI 

0F 

15 

■0 

US 

1F 

31 

■E 

 

DEL 

7F 

127 

■T 

 
 
[Example]  Printing GS k 72    7    67    111    100    101    13    57    51 
 

Summary of Contents for LK-P SERIES

Page 1: ...LK P11 Mobile Receipt Printer ESC POS Command Manual SEWOO TECH CO LTD www miniprinter com...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: