ESC/ P Command Reference

Table Of Contents
ESC a Specify alignment
[ASCII] ESC a n
[Decimal] 27 97 n
[Hexadecimal] 1B 61 n
[Parameters] 0n3 or “0”n“3
[Description]
The data is printed aligned as follows according to the value of n.
n=0 or 48(“0”) specifies left alignment
n=1 or 49(“1”) specifies center alignment
n=2 or 50(“2”) specifies right alignment
n=3 or 51(“3”) specifies nothing
The default setting is n = 0.
Data is aligned between the left and right margins with CR, LF, and FF code input and
buffer printing.
If the alignment setting is not at the beginning of the line, the alignment is set after a line
feed.
The beginning of the line indicates the left margin position for left alignment;
for right and center alignment, it means that no image or character is entered on the line.
HT, ESC \, ESC $ are ignored when n = 1 or n = 2.
If the print media is continuous length label, the print direction is landscape, and the
page length is not set, commands specifying alignment are ignored.
50