132 Rockwell Automation Publication 1756-RM100F-EN-P - October 2018
Chapter 6 Instruction Execution
Carry Flag
Only the ADD and SUB instructions that specify integer operands can affect
the carry bit. This lets you perform chain calculations to support larger
(unsupported) data types (Add low, Add_with_carry high).
The carry flag is limited to only those operations that are relevant. This
simplifies its use and that of math status flags in general.
This implementation affects all instructions that can set math status flags.
Mitigation
Look for references to s:c in the user project and verify that the logic functions
as intended.
Language Affected
Ladder Logic (RLL) Yes
Struc tured Text (ST) Yes
Function Blocks (FBD) No
Sequential Function Chart (SFC) Yes
(1)
(1) Only affects embedded Structured Text.
5580/5380 Controllers 5570/5370 Controllers
Use of the ADD and SUB operators has no effect on the
carry bit.
Only ADD and SUB instructions with integer operands
can affect the Carry flag.
Many math instructions can set the Carry bit.