Basic statements, commands, and operators, Basic line length – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 16

Advertising
background image

Publication 1746-RM001A-US-P

1-2 Language Elements

Typically, the line numbers of a program start out looking like the first column and
end up looking something like the second column below:

#1

#2

10

5

20

7

30

10

40

15

50

20

60

30

70

35

80

40

.

.

.

.

.

.

BASIC Statements, Commands, and Operators

BASIC program lines consist of a BASIC line number and BASIC statements and
operators. Depending on the logic of your program, there may be more than one
statement on a line. If so, each must be separated by a colon (:).

BASIC Line Length

A BASIC program line always begins with a line number and must contain at least
one character, but no more than 68 characters. A program line ends when you press

[RETURN]

.

IMPORTANT

Reuse of an existing line number causes all of the information
referenced by the original line number to be lost. Be careful
when entering numbers in the Command mode, as you may
accidentally erase some program lines. You may delete an
existing line by retyping it with no information following it and
pressing

[RETURN]

.

Advertising