
12-7
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
12.6 Evaluating the Bits of the Status Word After Floating-Point
Instructions
The math instructions affect the following bits in the status word:
S CC 1 and CC 0
S OV
S OS
A hyphen (–) entered in a bit column of the table means that the bit in
question is not affected by the result of the integer math instruction.
Table 12-5 Signal State of Status Word Bits for Floating-Point Math Result
that is in Valid Range
Valid Range for a Floating-Point Result (32 Bits)
Bits of Status Word
a
ange
or a
oa
ng-
o
n
esu
s
CC 1 CC 0 OV OS
+0, -0 (zero) 0 0 0 –
-3.402823E+38 t Result t -1.175494E-38
(negative number)
0 1 0 –
+1.175494E–38 t Result t 3.402823E+38
(positive number)
1 0 0 –
Table 12-6 Signal State of Status Word Bits for Floating-Point Math Result
that is not in Valid Range
Range Not Valid for a Floating-Point Result
Bits of Status Word
(32 Bits)
CC 1 CC 0 OV OS
-1.175494E-38 t Result t -1.401298E-45
(negative number) Underflow
0 0 1 1
+1.401298E-45 t Result t +1.175494E-38
(positive number) Underflow
0 0 1 1
Result t -3.402823E+38
(negative number) Overflow
0 1 1 1
Result u -3.402823E+38
(positive number) Overflow
1 0 1 1
Result < -3.402823E+38
or Result > +3.402823E+38
no floating-point number
1 1 1 1
Description
Floating-Point Math Instructions
Kommentare zu diesen Handbüchern