Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 361

Quick Reference
Appendix E
E –5
Page
Description
BASIC
ON-GOSUB
transfer control to subroutine when expression
following ON is encountered
ON-GOTO
transfer control to line specified when expression
following ON is encountered
ONTIME
use to compensate for incompatibility between
timers/counters on the microprocessor and the
BASIC module
.OR.
combine the first expression with the second
expression using .OR.
PI
store constant. PI
PH0. and PH1.
direct BASIC module to print a number in
hexadecimal format to a console device
POP
remove value from argument stack
output value to the console device
PROG
program resident EEPROM with current program in
RAM
PROG1
program resident EEPROM with port information for
all three ports as well as MTOP information
PROG2
program resident EEPROM with port information for
all three ports as well as MTOP information and
execute first program in the EEPROM
PUSH
place expression on argument stack
RAM
select current program out of RAM
READ
retrieve expressions specified in DATA statement
REM
specify a comment line in BASIC program
REN
renumber program lines
RESTORE
reset internal pointer to beginning of data to read it
again
RETI
exit from an interrupt that is processed
RETURN
return control back to program after executing a
GOSUB
RND
return a pseudo–random number
ROM
select current program out of EEPROM or EPROM
RROM
select and run current program out of EEPROM or
EPROM
RUN
set variables to zero, clear BASIC evoked interrupts,
and begin program execution with the first line
number of selected program
SGN
return the sign of argument
SIN
return the sine of argument
SQR
return the square root of the argument
SNGLSTP
initiate single-step execution
ST@
store floating point numbers to a specified address
STOP
break program execution at specific points in the
program
STRING
allocate memory for strings
SUBTRACT (–)
subtract one expression from another
TAN
return the tangent of argument
TIME
read/assign the free running clock