Control-q, Edit, Control-q -8 edit -8 – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 48: Purpose, Syntax, Example

Advertising
background image

Publication 1746-RM001A-US-P

4-8 BASIC Commands

Control-Q

Purpose

Use the

[CTRL-Q]

command to restart a LIST command or PRINT output that is

interrupted by

[CTRL-S]

.

Syntax

[CTRL–Q]

Example

> LIST

1

REM EXAMPLE PROGRAM

10 A = 1

20 DO

[CTRL–S]

.

.

.

[CTRL–Q]

30 A = A+1

40 PRINT A

50 WHILE A < 20

READY

>

In this example, the output is suspended when

[CTRL–S]

is pressed. The output is

continued after

[CTRL–Q]

is pressed.

EDIT

Purpose

Use the EDIT command to access the BASIC line editor. Use this editor to edit a
line of the current program in RAM. Table 4.2 lists the BASIC editor operations.

Advertising