Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 264

Publication 1746-RM001A-US-P
B-8 BASIC Command, Statement, and CALL Quick Reference Guide
GET
Read console input device.
GET#
Read console input device connected to PRT2.
GET@
Read console input device connected to PRT1.
GOSUB Execute
subroutine.
GOTO
Go to program line number.
IDLE
Force module to enter “wait until interrupt
mode”.
IF-THEN-ELSE
Conditional test
INPL
Read line of characters from the program port
buffer.
INPL#
Read line of characters from port PRT2 buffer.
INPL@
Read line of characters from port PRT1 buffer.
INPS
Read string of characters from the program port
buffer.
INPS#
Read string of characters from port PRT2 buffer.
INPS@
Read string of characters from port PRT1 buffer.
INPUT
Input a string or variable.
INPUT#
Input a string or variable from port PRT2.
INPUT@
Input a string or variable from port PRT1.
INT( )
Integer
LD@
Load variable.
LEN
Read the number of bytes of memory in the
current selected program.
LET
Assign a variable or string a value (LET is
optional).
LIST
List program to the console devise.
*
LIST#
List program to serial printer.
*
LIST@
List program to device connected to port PRT1.
*
LOG( )
Natural log
MODE
Set port parameters of ports PRT1, PRT2, and
DH485.
MTOP
Read the last valid memory address.
NEW
Erase the program stored in RAM.
*
NEXT
Test for-next loop condition.
NOT( )
One’s complement
NULL
Set NULL count after carriage return-line feed.
*
Mnemonic
Required PUSHes or POPs
Description
Active In
Command
Mode
Only
Page