Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 94

Advertising
background image

Publication 1746-RM001A-US-P

7-10 Control Functions

Example

>1

REM EXAMPLE PROGRAM

>5

E=0 : C=10 : D=2

>10 FOR A=E TO C STEP D

>20 PRINT A

>30 NEXT A

>40 END

>RUN

0

2

4

6

8

10

READY

>

>NEW

>1

REM EXAMPLE PROGRAM

>10 FOR I = 0 TO 8 STEP 2

>20 PRINT I

>30 NEXT I

>40 END

>RUN

0

2

4

6

8

Advertising