Ext_Routine_Control Structure - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)
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

EXT_ROUTINE_CONTROL Structure

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
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
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.
ladder programs)
Chapter 11
463

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents