Description; Arithmetic Status Flags - Allen-Bradley SoftLogix 5800 User Manual

Table of Contents

Advertisement

Table 8 - EXT_ROUTINE_CONTROL Structure
Mnemonic
Data Type
ErrorCode
SINT
NumParams
SINT
ParameterDefs
EXT_ROUTINE_
PARAMETERS[10]
ReturnParamDef
EXT_ROUTIN_
PARAMETERS
EN
BOOL
ReturnsValue
BOOL
DN
BOOL
ER
BOOL
FirstScan
BOOL
EnableOut
BOOL
EnableIn
BOOL
User1
BOOL
User0
BOOL
ScanType1
BOOL
ScanType0
BOOL

Description

If an error occurs, this value identifies the error. Valid values are
from 0...255.
This value indicates the number of parameters associated with
this instruction.
This array contains definitions of the parameters to pass to the
external routine. The instruction can pass as many as 10
parameters.
This value contains definitions of the return parameter from
the external routine. There is only one return parameter.
When set, the enable bit indicates that the JXR instruction is
enabled.
If set, this bit indicates that a return parameter was entered for
the instruction. If cleared, this bit indicates that no return
parameter was entered for the instruction.
The done bit is set when the external routine has executed
once to completion.
The error bit is set if an error occurs. The instruction stops
executing until the program clears the error bit.
This bit identifies whether this is the first scan after switching
the controller to Run mode. Use FirstScan to initialize the
external routine, if needed.
Enable output.
Enable input.
These bits are available for the user. The controller does not
initialize these bits.
These bits identify the current scan type:
Bit Values
Scan Type
00
Normal
01
Pre Scan
10
Post Scan
(not applicable to relay ladder programs)
Description
The JXR instruction is similar to the Jump to Subroutine ( JSR) instruction. The
JXR instruction initiates the execution of the specified external routine:
• The external routine executes one time.
• After the external routine executes, logic execution returns to the routine
that contains the JXR instruction.

Arithmetic Status Flags

Arithmetic status flags are not affected.
Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
Execute External Routines
Implementation
There are no predefined error codes. The developer of the
external routine must provide the error codes.
Display only - this information is derived from the
instruction entry.
Display only - this information is derived from the
instruction entry.
Display only - this information is derived from the
instruction entry.
The external routine sets this bit.
Display only - this information is derived from the
instruction entry.
The external routine sets this bit.
The external routine sets this bit.
The controller sets this bit to reflect scan status.
The external routine sets this bit.
The controller sets this bit to reflect rung-condition-in. The
instruction executes regardless of rung condition. The
developer of the external routine should monitor this status
and act accordingly.
Either the external routine or the user program can set these
bits.
The controller sets these bits to reflect scan status.
Chapter 6
113

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents