Code

Symbol

Description

Value

Value

Name

(Dec)

(Hex)

 

 

 

 

 

 

 

Carriage

CR

Moves the current print position to the left

13

0D

Return

 

margin of the current line.

 

 

 

 

 

 

 

Double-

SO

Prints all characters in double-width

14

0E

Wide

 

mode.

 

 

Printing by

 

 

 

 

Line

 

 

 

 

 

 

 

 

 

Condensed

SI

Condenses printing from 10 characters per

15

0F

Printing

 

inch (cpi) to 17.1 and 12 cpi to 20.

 

 

 

 

 

 

 

Select

DC1

Selects the printer.

17

11

Printer

 

 

 

 

 

 

 

 

 

Select 10

DC2

Returns condensed printing to normal (10

18

12

cpi

 

cpi)

 

 

 

 

 

 

 

Deselect

DC3

Signals the printer to stop accepting data

19

13

Printer

 

from the computer. This control code has

 

 

 

 

no effect on the parallel interface.

 

 

 

 

 

 

 

Cancel

DC4

Cancels double-width printing mode and

20

14

Double-

 

returns printing to normal.

 

 

Wide

 

 

 

 

Printing by

 

 

 

 

Line

 

 

 

 

 

 

 

 

 

Cancel

CAN

Clears current line buffer of data already

24

18

Data

 

received to print on the current line since

 

 

 

 

last Form Feed, Line Feed, Carrier Return,

 

 

 

 

or Cancel.

 

 

 

 

 

 

 

Space

SP

Moves the print position one character

32

20

space to the right.

 

 

 

 

 

 

 

 

 

 

 

Escape Sequences

An escape sequence (two or more characters of information) lets you change the way the printer is currently printing. Like a control code, it gives you control over the printed output. The escape sequence begins with the character ESC (decimal 027, hexadecimal 1B). The printer recognizes this character as the beginning of a printer command signalling that the information that follows is control information and not data to be printed.

Printer Command Parameters

A command parameter sets the value for a command. This value stays constant until either a different value resets the command or a command resets the printer to its default values. For example, after the printer receives a command

28

Section 3: IBM Emulation Mode Printer Commands

Page 28
Image 28
Lexmark 249X, 248X manual Escape Sequences, Printer Command Parameters