
Rockwell Automation Publication 1756-RM100F-EN-P - October 2018
131
Instruction Execution
Chapter 6
Subroutines Do Not Affect Math Status Flags
Subroutines are not considered MSF producers, so they do not preserve math
status flags across calls. The JSR, SBR, RET, FOR, BRK instructions are not
math status flags producers. FOR and BRK instructions do not affect math
status flags because they do not pass any parameters.
The JSR instruction saves (and reinitializes) the flags on entry and restores
them after the subroutine returns. Also, the SBR, RET, FOR, and BRK
instructions do not change the flags.
This implementation affects the JSR and FOR instructions. FOR is only
available in RLL.
Mitigation
N/A
Language
Affected
Ladder Logic (RLL)
Yes
Structured Text (ST)
No
Function Blocks (FBD)
No
Sequential Function Chart (SFC) Yes
(1)
(1) Only affects embedded Structured Text.
5580/5380 Controllers
5570/5370 Controllers
Содержание Studio 5000 Logix Emulate
Страница 8: ...8 Rockwell Automation Publication 1756 RM100F EN P October 2018 Table of Contents Notes...
Страница 16: ...16 Rockwell Automation Publication 1756 RM100F EN P October 2018 Chapter 1 BeforeYou Begin a Migration Notes...
Страница 170: ...170 Rockwell Automation Publication 1756 RM100F EN P October 2018 Index Notes...
Страница 171: ......