ESC Commands: Difference between revisions

From wizarPOS
Line 56: Line 56:
! CR !!   
! CR !!   
|-
|-
| Name|| Print and feed paper
| Name|| Carriage return
|-
|-
| Format|| ASCII   CR
| Format|| ASCII   CR

Revision as of 03:16, 18 April 2018

ESC Commands

HT

HT
Name Horizontal tab
Format ASCII HT

Hex 09

Decimal 9

Description Move the print position to the next tab position.
  • If no tab position is set (it is default setting), this command will be ignored
  • The tab position is set by ESC D
  • If the tab position exceeds the print area, printing position will be moved to the starting position of next line (Considering as a line is full, print the data and feed one line).


Reference ESC D

LF

LF
Name Print and feed paper
Format ASCII LF

Hex 0A

Decimal 10

Description Print the data in the printer buffer, then feed paper for one line

according to the current line space settings. After printing, the print

position moves to the beginning of the line.

Reference ESC 2,ESC 3

CR

CR
Name Carriage return
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference LF

ESC SP n

ESC SP n
Name Print and feed paper
Format ASCII ESC SP n

Hex 1B 20 n

Decimal 27 32 n

Description Set the right right-side character space is [n×0.125mm]
  • For double width mode, the character right margin is double than normal mode.
  • The command will not effective to Chinese characte
Default n=0

ESC ! n

ESC ! n
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3

CR

LF
Name Print and feed paper
Format ASCII CR

Hex 0D

Decimal 13

Description Adjust the print position to the starting position of this line and line

feed.

Reference ESC 2,ESC 3