beautypg.com

Execution control and interrupt support functions, Chapter 8, Chapter – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 97

background image

1

Publication 1746-RM001A-US-P

Chapter

8

Execution Control and Interrupt Support
Functions

This chapter describes and illustrates commands that control data flow and
program transfer between ROM and RAM within the BASIC program or from the
command line. Table 8.1 lists the corresponding mnemonics.

Table 8.1 Chapter Reference Guide

If you need (to)

Use this
mnemonic

Page

Enable the interrupt capability when a DF1 packet is received.

CALL 16

8-2

Disable the DF1 packet interrupt capability.

CALL 17

8-3

Enable the SLC processor interrupt capability.

CALL 20

8-3

Disable the SLC processor interrupt capability.

CALL 21

8-4

Generate an interrupt to the SLC processor.

CALL 26

8-4

Initiate transactions defined by CALLs 27, 28, 122, and 123.

CALL 38

8-5

ROM to RAM program transfer

CALL 70

8-8

ROM/RAM to ROM program transfer

CALL 71

8-9

RAM/ROM return

CALL 72

8-9

Execute a subroutine.

GOSUB

8-11

Go to line number when an error is detected.

ONERR

8-12

Conditional GOSUB

ON-GOSUB

8-14

Generate an interrupt when TIME is equal to or greater than
ONTIME argument-line number.

ONTIME

8-14

POP argument stack to variables.

POP

8-17

PUSH expressions on argument stack.

PUSH

8-15

Return from interrupt.

RETI

8-18

RETURN from subroutine.

RETURN

8-18

Break program execution.

STOP

8-20