
136
Rockwell Automation Publication 1756-RM100F-EN-P - October 2018
Chapter 6
Instruction Execution
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
or structures.
Mitigation
N/A
Language
Affected
Ladder Logic (RLL)
Yes
Structured Text (ST)
Yes
Function Blocks (FBD)
Yes
Sequential Function Chart (SFC)
Yes
(1)
(1) Only affects embedded Structured Text.
5580/5380 Controllers
5570/5370 Controllers
JSR Return Par = Return_Par_Array[5]
RET Return Par = Test_Array[10]
JSR Return Par = Return_Par_Array[5]
RET Return Par = Test_Array[10]