
6-15
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
Tables 6-10 through 6-15 list the significance of CC 1 and CC 0 after your
program executes certain instructions.
Table 6-10 CC 1 and CC 0 after Math Instructions, without Overflow
CC 1 CC 0 Explanation
0 0 Result = 0
0 1 Result < 0
1 0 Result > 0
Table 6-11 CC 1 and CC 0 after Integer Math Instructions, with Overflow
CC 1 CC 0 Explanation
0 0 Negative range overflow in Add Integer and Add Double Integer
0 1
Negative range overflow in Multiply Integer and Multiply
Double Integer
Positive range overflow in Add Integer, Subtract Integer, Add
Double Integer, Subtract Double Integer, Twos Complement
Integer, and Twos Complement Double Integer
1 0
Positive range overflow in Multiply Integer and Multiply Double
Integer, Divide Integer, and Divide Double Integer
Negative range overflow in Add Integer, Subtract Integer, Add
Double Integer, and Subtract Double Integer
1 1
Division by 0 in Divide Integer, Divide Double Integer, and
Return Fraction Double Integer
Table 6-12 CC 1 and CC 0 after Floating-Point Math Instructions, with Overflow
CC 1
CC 0 Explanation
0 0 Gradual underflow
0 1 Negative range overflow
1 0 Positive range overflow
1 1 Illegal operation
Configuration and Elements of Ladder Logic
Comentários a estes Manuais