L9_RET: Return from a Subroutine (1 Node)
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9_RET function block may be used to conditionally return the logic scan to the node immediately following the most recently executed L9_JSR block. This function block can be implemented only from within the subroutine segment.
NOTE: If a subroutine does not contain a L9_RET block, either a L9_LAB block or the end-of-subroutine segment (whichever comes first) serves as the default return from the subroutine
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = return to previous logic
ON returns the logic scan to the node immediately following the most recently executed L9_JSR function block or to the point where the interrupt occurred in the logic scan.
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
CONST
UINT
1
constant value (can not be changed)
Output Pin
Name
Data Type
Address Range
Meaning
Top
ERR
BOOL
ON = event in the specified subroutine