Call an external routine, Jump to external routine (jxr), Operands – Rockwell Automation 1789-L10_L30_L60 SoftLogix 5800 System User Manual User Manual

Page 112: Jump to external routine (jxr) operands

Advertising
background image

112

Rockwell Automation Publication 1789-UM002J-EN-P - December 2012

Chapter 6

Execute External Routines

Call an External Routine

Use the Jump to External Routine ( JXR) instruction to call the external routine
from a ladder routine in your project. The JXR instruction supports multiple
parameters so you can pass values between the ladder routine and the
external routine.

Jump to External Routine (JXR)

The JXR instruction executes an external routine. This instruction is supported
only by the SoftLogix5800 controllers.

Operands

Table 7 - Relay Ladder

.

Operand

Type

Format

Description

External routine name

ROUTINE

Name

External routine to execute.

External routine control

EXT_ROUTINE_CONTROL

Tag

See

page 113

.

Parameter

BOOL
SINT
INT
DINT
REAL
Structure

Immediate
Tag
Array tag

Data from this routine that you want to copy to a variable in the external routine:
Parameters are optional.
Enter multiple parameters, if needed.
You can have as many as 10 parameters.

Return parameter

BOOL
SINT
INT
DINT
REAL

Tag

Tag in this routine to which you want to copy a result of the external routine:
The return parameter is optional.
You can have only one return parameter.

Advertising