beautypg.com

11 - statements, What’s in this chapter, Statements – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 153

background image

11

Chapter

11 -1

Statements

BASIC statements are programming instructions that control program flow
or manipulate I/O or memory. Every statement begins with a line number,
followed by a statement body, and terminated with a carriage return (CR)
or a colon (:) in case of multiple statements per line number. You execute
statements automatically within a BASIC program during Run mode. You
can also enter these statements from the command line in Command mode
to test/evaluate the execution of the statement. Chapter 7 gives you an
overview of how to use the different statements within your BASIC
program.

This chapter describes:

On page:

This chapter describes:

On page:

CALL

Ch. 12 & 13

LET

11 -19

CLEAR

11 -2

MODE

11 -20

CLEARI

11 -3

NEXT

11 -21

CLEARS

11 -3

ONDF1

11 -22

CLOCK0

11 -4

ONERR

11 -23

CLOCK1

11 -5

ON-GOSUB

11 -24

DATA

11 -6

ON-GOTO

11 -26

DIM

11 -7

ONTIME

11 -25

DO-UNTIL

11 -8

PH0. and PH1.

11 -27

DO-WHILE

11 -9

POP

11 -28

END

11 -10

PRINT

11 -29

FOR-TO-(STEP)-NEXT

11 -11

PUSH

11 -30

GET

11 -12

READ

11 -31

GOSUB

11 -13

REM

11 -32

GOTO

11 -14

RESTORE

11 -32

IDLE

11 -14

RETI

11 -33

IF-THEN-ELSE

11 -15

RETURN

11 -34

INPL

11 -16

ST@

11 -35

INPS

11 -16

STOP

11 -36

INPUT

11 -17

STRING

11 -37

LD@

11 -18

what’s next?

11 -38

What’s in This Chapter?

Chapter