beautypg.com

4 programming, 1 introduction, 2 control commands – AMT Datasouth 41AY89AR777 User Manual

Page 60: 4 programming -1, Introduction -1, Control commands -1

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

4 PROGRAMMING

4.1 INTRODUCTION

This section describes printer graphics and the control codes and escape
sequences that are used to control the printer through the communications
interface.

4.2 CONTROL COMMANDS

Various features of the printer may be controlled using ASCII standard control
commands, (see Table 4.1). These features may be controlled through the user

program or the user may control these same features in real time from the
terminal. For example, to command a line feed in a BASIC program the user

would enter CHR$(10), where 10 is the decimal value for the ASCII character
LF (Line Feed). To command a line feed in real time from the terminal, the user
would enter CRTL J.

The characters shown in the control character column are what the user will see
printed when the printer is in display mode.

Table 4.1 Control Commands

Control

Code

Description

Control

Character

Decimal

Value

CTRLG

Beil

4

7

CRTLH

Back Space

%

8

CRTLI

Horizontal Tab

^1-

9

CRTLJ

Line Feed

V

10

CRTLK

Vertical Tab

V

T

11

CRTLL

Form Feed

1-

12

CRTLM

Carriage Return

'

k

13

CRTLN

Shift-out of normal print

to double wide

%

14

CRTLO

Shift-in to normal print

15

CRTLQ

X-on

'^1

17

CRTLS

X-off

IX

19

4-1

This manual is related to the following products: