Call 121 – get slc processor program id number, Call 121 – get slc processor program id number -19, Syntax – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 149: Example, Purpose

Advertising
background image

Publication 1746-RM001A-US-P

Status Functions 11-19

that corresponds to the module input and output buffers, as shown in the table
below:

You must PUSH the decimal equivalent of the areas of the input and output
buffers that you want to clear. For example to clear the SLC M0 and SLC M1 files
you would PUSH the value 3. The module sets bits 0 and 1 true and clears the SLC
M0 and M1 file areas of the input and output buffers.

Syntax

PUSH [decimal equivalent]
CALL 120

Example

>1

REM EXAMPLE PROGRAM

>10 PUSH 3 : REM CLEAR SLC MO AND M1 FILES

>20 CALL 120

>30 END

CALL 121 – Get SLC
Processor Program ID
Number

Purpose

Use CALL 121 to get the ID number of the active SLC processor program. This
routine has no input arguments and one output argument. The output argument is
an integer value between 0 and 65536 that corresponds to the program ID number
of the active program on the SLC processor.

Table 11.4 Information for Clearing Input and Output Buffer

Bit

Decimal Equivalent

Module Input and Output Buffer Areas

0

1

SLC M0 File

1

2

SLC M1 File

2

4

SLC Output Image Table

3

8

SLC Input Image Table

4

16

Common Interface Input File

5

32

Common Interface Output File

6

Not Used

7

Not Used

These bits set TRUE

Push 3 = 0 0 0 0 0 0 1 1

SLC M1 File Bit

SLC M0 File Bit

Advertising