Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 264

Advertising
background image

Publication 1746-RM001A-US-P

B-8 BASIC Command, Statement, and CALL Quick Reference Guide

GET

Read console input device.

13-38

GET#

Read console input device connected to PRT2.

13-38

GET@

Read console input device connected to PRT1.

13-38

GOSUB Execute

subroutine.

8-11

GOTO

Go to program line number.

7-7

IDLE

Force module to enter “wait until interrupt
mode”.

4-10

IF-THEN-ELSE

Conditional test

7-8

INPL

Read line of characters from the program port
buffer.

13-39

INPL#

Read line of characters from port PRT2 buffer.

13-39

INPL@

Read line of characters from port PRT1 buffer.

13-39

INPS

Read string of characters from the program port
buffer.

13-40

INPS#

Read string of characters from port PRT2 buffer.

13-39

INPS@

Read string of characters from port PRT1 buffer.

13-39

INPUT

Input a string or variable.

13-40

INPUT#

Input a string or variable from port PRT2.

13-40

INPUT@

Input a string or variable from port PRT1.

13-40

INT( )

Integer

3-10

LD@

Load variable.

13-43

LEN

Read the number of bytes of memory in the
current selected program.

3-15

LET

Assign a variable or string a value (LET is
optional).

6-5

LIST

List program to the console devise.

*

4-11

LIST#

List program to serial printer.

*

4-12

LIST@

List program to device connected to port PRT1.

*

4-12

LOG( )

Natural log

3-11

MODE

Set port parameters of ports PRT1, PRT2, and
DH485.

4-12,

14-5

MTOP

Read the last valid memory address.

3-16

NEW

Erase the program stored in RAM.

*

4-14

NEXT

Test for-next loop condition.

7-9

NOT( )

One’s complement

3-9

NULL

Set NULL count after carriage return-line feed.

*

4-14

Mnemonic

Required PUSHes or POPs

Description

Active In

Command

Mode

Only

Page

Advertising