beautypg.com

Salter Brecknell CP80 User Manual

Page 6

background image

CP80 User Guide Page 6 of 11

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

4.1

CODES RECEIVED BY THE CP80

LF

0AH

Line Feed (Line Terminator)

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

Vertical TAB

Exactly equivalent to the command ESC,2AH. Fast feed of 30 (10x3) dot line pitches.

CR

0DH

Carriage Return (Line Terminator)

Works in an either/or way with LF. CR/LF pairs are treated as a single line terminator.

CAN

18H

(Real time) Abort printing and Reset

Executed immediately when received. Printing may be interrupted part way through a line.
All Print Mode settings are cleared.
The CP80is 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

Self Test, Fast Feed, Graphics and Print Mode Selection

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):

[ Self Test Print ]

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:

[ Fast Feed Command ]

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:

[ Dot Addressable Graphics Mode ]

The following 24 or 40 bytes are interpreted as graphics patterns.

Otherwise:

[ Print Mode Selection ]

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.