Jsr And Ret Parameters Passing Into Structures - Allen-Bradley ControlLogix 5570 Reference Manual

Table of Contents

Advertisement

Chapter 6
Instruction Execution
Language
Affected
Ladder Logic (RLL)
Structured Text (ST)
Function Blocks (FBD)
Sequential Function Chart (SFC)
Yes
(1) Only affects embedded Structured Text.
136

JSR and RET Parameters Passing Into Structures

Parameters that pass from JSR (into subroutine) and RET (back to JSR) only
use the size of the smaller structure (either source or destination) for the copy.
Copies that are made into smaller destinations no longer overrun target arrays
Yes
or structures.
Yes
Yes
JSR Return Par = Return_Par_Array[5]
(1)
RET Return Par = Test_Array[10]
Mitigation
N/A
Rockwell Automation Publication 1756-RM100F-EN-P - October 2018
5580/5380 Controllers
5570/5370 Controllers
JSR Return Par = Return_Par_Array[5]
RET Return Par = Test_Array[10]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents