beautypg.com

Datamax-O'Neil PrintPAD AN-02 User Manual

Page 2

background image







ESC H n

(0x1B ‘H’ n)

Apply a vertical multiplier of n to the normal height of a
character – n = 0x02 will give double high characters, n =
0x03 will give triple high characters etc.

X

ESC I n

(ESC ‘I’ n)

If n = 0x01 or n = ‘1’ (0x31) will turn inverse (white on black
printing) ON and if n=0x00 or n = ‘0’ will turn inverse OFF

X X

ESC Q n1n2

(0x1B ‘Q’ n1n2)

When this command is received, the printer stops imaging
and starts advancing, looking for a “Q” mark, then going an
additional n1n2 dotlines after the “Q” mark is found

X X

ESC R n

(0x1B ‘R’ n)

Remaps some international characters when used with a
224 character CP437 font (Values below in HEX)
0 – USA 1 – France 2 – Germany
3 – UK 4 – Denmark 5 – Sweeden
6 – Italy 7 – Spain

X X

ESC V n1n2

Marks the beginning of a bitmap graphics image sent to the
printer. The n1n2 are the number of dotlines in the image,
the graphics image follows

ESC e

(0x1B ‘e’)

Marks the end of a print job for “Job Status Reporting” (see
ESC s n for start)

X X

ESC i

(0x1B ‘I’)

Thrown away (for compatibility with another printer)

X

ESC m

(0x1B ‘m’)

Thrown away (for compatibility with another printer)

X

ESC s n

(0x1B ‘s’ n)

Turns ON Job Status Reporting. The ‘n’ is a bit field that
allows various status to be reported to the host
automatically upon detection (e.g. paper out and end of
job)

X X

ESC t n

Can be used to cancel the printer system timeout. If n =
0x01 or ‘1’ (0x31), then the timeout is cancelled. If n =
0x00 or ‘0’ (0x30) then the timeout is enabled, which is the
default

X

ESC w n

(0x1B ‘w’ n)

Selects the font with a single character name of ‘n’. A list
of the values of n for each font is given in the self test and
in AN-3

X X

1 Note: A single LF, CR, or combinations of CRLF or LFCR are all considered line terminations and cause the printer to
print and advance

Example 1
To print a single line of data, send the string to print terminated by CR, LF, CRLF, or LFCR. For example, if you send the
8 ASCII characters A-H, followed by Carriage Return (0x0D) and Line Feed (0x0A) you will see a single printed line of text
containing ABCDEFGH:

ABCDEFGH 0x0D 0x0A

Example 2
To change to a different font, send ESC w followed by the single character font name as indicated on the self test printout
or in the documentation. For example, if you send the string from Example 1 followed by ESC w & IJKLMNOP you will
see A-H on one line in the default font (or whatever font was active from the last print job) followed by a second line in a
larger font. The ESC character is a single byte 0x1B

ABCDEFGH 0x0D 0x0A
0x1B w & IJKLMNOP 0x0D 0x0A

This manual is related to the following products: