Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 360

Advertising
background image

Quick Reference

Appendix E

E –4

Page

Description

BASIC

CTRL Q

restart a LIST or PRINT interrupted by CTRL-S

10 -5

CTRL S

interrupt the scrolling of code during a LIST or
PRINT

10 -6

DATA

specify the expressions that you can retrieve with a
READ

11 -6

DBY

retrieve/assign data to/from internal data memory

9 -18

DIM

reserve storage for arrays

11 -7

DIVIDE (/)

divide first expression by second expression

9 -5

DO-UNTIL

set up loop control

11 -8

DO-WHILE

set up loop control

11 -9

EDIT

access the BASIC line editor

10 -7

END

terminate program execution

11 -10

EOF

test for empty input buffer

9 -17

ERASE

delete BASIC program stored in EEPROM through
a PROG

10 -8

EXP

raise e to power of argument

9 -13

**

raise first expression by the power of the second
expression

9 -5

FREE

list available bytes in RAM

9 -17

FOR-TO-(STEP)-NEXT

set up loop control

11 -11

GET

read console input device

11 -12

GOSUB

transfer control to a subroutine

11 -13

GOTO

transfer control to line specified

11 -14

IDLE

forces module to wait for an interrupt

11 -14

IF-THEN-ELSE

set up a conditional test

11 -15

INPL

read entire line from program port buffer

11 -16

INPS

read an entire string from program port buffer

11 -16

INPUT

enter data from consoled device

11 -17

INT

return integer portion of expression

9 -12

LEN

list amount of bytes in current program

9 -17

LOG ( )

return the natural log of the argument

9 -13

LD@

retrieve floating point numbers stored with ST@

11 -18

LET

assign a variable to the value of an expression

11 -19

LIST

list the program code

10 -9

MODE

set port parameters for PRT1, PRT2, and DH485

11 -20

MTOP

return last valid memory address

9 -18

MULTIPLY (*)

multiply expressions together

9 -5

negation

9 -6

NEW

delete program and all variables currently stored in
RAM

10 -10

NEXT

returns FOR-TO-NEXT loop to beginning of loop

11 -21

NOT

returns the one’s complement or inverse of the
number

9 -11

NULL

set number of null characters to output after a
carriage return in a print statement

10 -10

ONDF1

enable or disable the DF1 packet interrupt capability

11 -22

ONERR

handle arithmetic errors during program execution

11 -23

Advertising