Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 360

Quick Reference
Appendix E
E –4
Page
Description
BASIC
CTRL Q
restart a LIST or PRINT interrupted by CTRL-S
CTRL S
interrupt the scrolling of code during a LIST or
PRINT
DATA
specify the expressions that you can retrieve with a
READ
DBY
retrieve/assign data to/from internal data memory
DIM
reserve storage for arrays
DIVIDE (/)
divide first expression by second expression
DO-UNTIL
set up loop control
DO-WHILE
set up loop control
EDIT
access the BASIC line editor
END
terminate program execution
EOF
test for empty input buffer
ERASE
delete BASIC program stored in EEPROM through
a PROG
EXP
raise e to power of argument
**
raise first expression by the power of the second
expression
FREE
list available bytes in RAM
FOR-TO-(STEP)-NEXT
set up loop control
GET
read console input device
GOSUB
transfer control to a subroutine
GOTO
transfer control to line specified
IDLE
forces module to wait for an interrupt
IF-THEN-ELSE
set up a conditional test
INPL
read entire line from program port buffer
INPS
read an entire string from program port buffer
INPUT
enter data from consoled device
INT
return integer portion of expression
LEN
list amount of bytes in current program
LOG ( )
return the natural log of the argument
LD@
retrieve floating point numbers stored with ST@
LET
assign a variable to the value of an expression
LIST
list the program code
MODE
set port parameters for PRT1, PRT2, and DH485
MTOP
return last valid memory address
MULTIPLY (*)
multiply expressions together
–
negation
NEW
delete program and all variables currently stored in
RAM
NEXT
returns FOR-TO-NEXT loop to beginning of loop
NOT
returns the one’s complement or inverse of the
number
NULL
set number of null characters to output after a
carriage return in a print statement
ONDF1
enable or disable the DF1 packet interrupt capability
ONERR
handle arithmetic errors during program execution