Format for control code descriptions – Printronix ANSI Printer User Manual

Page 28

Advertising
background image

28

Chapter

2

Configuring The ANSI Emulation

NOTE: Channel 12 is always used with the VT character. See Chapter 3,

“Vertical Page Formatting,” for more details.

Format For Control Code Descriptions

The following information is listed for each control code (where applicable):

Name

The title or function of the command.

ASCII Code The ASCII mnemonic for the command is shown for the printer

and the ANSI protocol. Command sequences are in 7-bit (ASCII)
form.

Hex Code

The code or command sequence in hexadecimal numbers.

Dec Code

The code or command sequence in decimal numbers.

Expression The control codes used in the BASIC programming language.

Purpose

The function(s) of the control code.

Discussion A discussion of the uses of the code or command sequence,

including exceptions or limitations to its use.

Example

A sample program written in BASIC programming language is
provided when it is possible to illustrate the effect of a control
code or if a specific syntax is required.

Examples are shown below of escape sequences as written in the text, shown
with parameters filled in, and written in the BASIC program language.

Tab Clear

ESC [p1 g
ESC[3g
LPRINT CHR$(27);“[3g”

Horizontal Tabs Set

ESC [p1;p2...pn u
ESC[648;1386;2808u
LPRINT CHR$(27);“[648;1386;2808u”

Expand Characters

ESC [p1;p2 SP B
ESC[200;200 B
LPRINT CHR$(27);“[200;200 B”

NOTE: If you specify parameters for a control code other than the ones

defined in the control code description, unpredictable results may
occur.

NOTE: Throughout this chapter the term “decipoints” is used. A decipoint

equals 1/720 inch and is used as a standard of measurement for
parameters associated with distances.

Advertising