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

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
CLEAR
MODE
CLEARI
NEXT
CLEARS
ONDF1
CLOCK0
ONERR
CLOCK1
ON-GOSUB
DATA
ON-GOTO
DIM
ONTIME
DO-UNTIL
PH0. and PH1.
DO-WHILE
POP
END
FOR-TO-(STEP)-NEXT
PUSH
GET
READ
GOSUB
REM
GOTO
RESTORE
IDLE
RETI
IF-THEN-ELSE
RETURN
INPL
ST@
INPS
STOP
INPUT
STRING
LD@
what’s next?
What’s in This Chapter?
Chapter