26.10.2012 Views

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Floating-Point Math Instructions<br />

8.2 Evaluating the Bits of the Status Word with<br />

Floating-Point Math Instructions<br />

Description<br />

The basic arithmetic types influence the following bits in the Status word: CC 1 and<br />

CC 0, OV and OS.<br />

The following tables show the signal state of the bits in the status word for the results<br />

of instructions with floating-point numbers (32 bits):<br />

Valid Area for a Result CC 1 CC 0 OV OS<br />

+0, -0 (Null) 0 0 0 *<br />

-3.402823E+38 < result < -1.175494E-38 (negative number) 0 1 0 *<br />

+1.175494E-38 < result < 3.402824E+38 (positive number) 1 0 0 *<br />

* The OS bit is not affected by the result of the instruction.<br />

Invalid Area for a Result CC 1 CC 0 OV OS<br />

Underflow<br />

-1.175494E-38 < result < - 1.401298E-45 (negative number)<br />

0 0 1 1<br />

Underflow<br />

+1.401298E-45 < result < +1.175494E-38 (positive number)<br />

0 0 1 1<br />

Overflow<br />

Result < -3.402823E+38 (negative number)<br />

0 1 1 1<br />

Overflow<br />

Result > 3.402823E+38 (positive number)<br />

1 0 1 1<br />

Not a valid floating-point number or illegal instruction<br />

(input value outside the valid range)<br />

1 1 1 1<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) for S7-300 and S7-400 Programming<br />

8-2 A5E00706960-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!