3
CONTROL CODE TABLES
Codes from 20H to FFH are printable characters. Codes from 00H to 1FH which are not listed below
are ignored. Codes forming part of an ESC sequence are exceptions to these rules and may be any
value.
All control codes, except the 'CAN' code, are executed when they fall through the data buffer at
printing time.
3.1
CODES RECEIVED BY THE Ap890
LF
0AH
Works in an either/or way with CR: CR/LF pairs are treated as a single line terminator. Line
terminators immediately following full print lines are ignored.
VTAB
0BH
Exactly equivalent to the command ESC,2AH. Fast feed of 30 (10x3) dot line pitches.
CR
0DH
Works in an either/or way with LF. CR/LF pairs are treated as a single line terminator.
CAN
18H
Executed immediately when received. Printing may be interrupted part way through a line.
All Print Mode settings are cleared.
The Ap890-B is actually RESET when the CAN code is received, so any data sent immediately
following the CAN code will be lost. The printer transmits an XON character when it is ready to
receive data again.
ESC,n
1BH,n
N.B. All ESC sequences should appear at the start of a logical line. If one is received within a
normal printable line a line terminator will automatically be inserted before it.
If n is an ESC character (1BH):
A self test print is produced. This consists of a line reporting the Firmware Version number,
and a single dump of the entire character set.
Otherwise, if bit 5 of n is set:
The least significant 5 bits of n (bits 4 through 0) are used as a binary count for a fast feed
operation, encoding the number of 3 dot pitches the paper to be fed.
Otherwise, if bit 1 of n is set:
The following 24 or 40 bytes are interpreted as graphics patterns. See section '2.5 Dot
Addressable Graphics' for details.
Otherwise:
n is interpreted as follows:
Bit 0 Select(1) or Clear(0) Inverted Print Mode
Bit 1 Must be zero
Bit 2 Select(1) or Clear(0) Double Width Mode
Bit 3 Select(1) or Clear(0) Double Height Mode
Bit 4 Ignored
Bit 5 Must be zero
Bit 6 Ignored
Bit 7 Ignored
Print Modes may be combined as required, but affect entire print lines. It is not possible, for
example, to mix Double Width and Normal Width text on the same print line.
Each of these Print Modes remains in force until actively cancelled, or the printer enters
sleep mode.
Line Feed (Line Terminator)
Vertical TAB
Carriage Return (Line Terminator)
(Real time) Abort printing and Reset
Self Test, Fast Feed, Graphics and Print Mode Selection
[ Self Test Print ]
[ Fast Feed Command ]
[ Dot Addressable Graphics Mode ]
[ Print Mode Selection ]
Ap890 and Ap892 User Guide Page 5 of 12
Need help?
Do you have a question about the Ap890 and is the answer not in the manual?
Questions and answers