Call 75 – check slc 500 controller cpu status, Call 75 – check slc 500 controller cpu status -7, Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 137: Syntax, Example
Advertising
Publication 1746-RM001A-US-P
Status Functions 11-7
CALL 75 – Check SLC 500
Controller CPU Status
Purpose
Use CALL 75 to check the mode (Run/Program/Test) of the SLC processor. No
PUSHes are required. One POP is required.
In SLC 5/01 mode of operation, the POPped values are:
•
0 - SLC processor in Run mode
•
1 - SLC processor not in Run mode
In SLC 5/02 mode of operation, the POPped values are:
•
0 - SLC processor in Run mode
•
1 - SLC processor in Program mode
•
2 - SLC processor in Test mode
Syntax
CALL 75
POP [processor mode]
Example
>1
REM EXAMPLE PROGRAM
>100 CALL 75
>110 POP S
>120 IF (S=0) THEN PRINT “SLC IS IN RUN MODE”
>130 IF (S=1) THEN PRINT “SLC IS NOT IN RUN MODE”
>140 IS (S=2) THEN PRINT “SLC IS IN TEST MODE”
READY
>RUN
SLC IS IN RUN MODE
READY
>
Advertising