Chapter 7. dec lg / compaq lg plus emulation, Control code definitions – Genicom GEK 00031B User Manual

Page 155

Advertising
background image

GEK-00029A

5000 Series Programmer’s Manual

155

CHAPTER 7. DEC LG / COMPAQ LG PLUS

EMULATION

CONTROL CODE DEFINITIONS

The control codes are single character action codes in the range
0 - 31 decimal in the ASCII code chart. The following are those codes,

which are relevant to this emulation.

BEL

Bell: The printer's audible alarm will sound for 1/2 second when the
bell code is received by the printer.

Decimal:

7

Hex:

07H

BASIC:

CHR$(7);

BS

Backspace (08H): The backspace code will set the active print position
one character position to the left at the current CPI, unless the new
location precedes the left margin. In this case, the active position will
be set to the left margin.
Indeterminate conditions: If the right margin has been exceeded

the backspace is ignored.

Decimal:

8

Hex:

08H

BASIC:

CHR$(8);

HT

Horizontal Tab: HT will set the active print position to the next
horizontal tab position.
Indeterminate conditions: If there are tab(s) set but no tab(s) are
set between the active print position and the right margin, the active
print position will advance to the right margin.

If there are no tabs set, the active print position will advance to the
right margin.

Decimal:

9

Hex:

09H

BASIC:

CHR$(9);

LF

Line Feed (0AH): Line terminator. LF will advance the active print
position to the next line. If the enabled via the menu, the printer will
execute a carriage return prior to executing the LF.

Decimal:

10

Hex:

0AH

BASIC:

CHR$(10);

NOTE

The emulation initially sets a horizontal tab stop every eight

characters.

Advertising