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.3.2 -R Subtract ACCU 1 from ACCU 2 as a Floating-Point Number<br />

(32-Bit IEEE-FP)<br />

Format<br />

Description<br />

Result<br />

-R<br />

Status word<br />

-R (subtract 32-bit IEEE floating-point numbers) subtracts the contents of<br />

accumulator 1 from the contents of accumulator 2 and stores the result in<br />

accumulator 1. The contents of accumulator 1 and accumulator 2 are interpreted as<br />

32-bit IEEE floating-point numbers. The result is stored in accumulator 1. The<br />

instruction is executed without regard to, and without affecting, the RLO. The status<br />

bits CC 1, CC 0, OS, and OV are set as a function of the result of the instruction.<br />

The contents of accumulator 2 remain unchanged for CPUs with two ACCUs.<br />

The contents of accumulator 3 are copied into accumulator 2, and the contents of<br />

accumulator 4 are copied into accumulator 3 for CPUs with four ACCUs. The<br />

contents of accumulator 4 remain unchanged.<br />

The result in ACCU 1 is CC 1 CC 0 OV OS Note<br />

+qNaN 1 1 1 1<br />

+infinite 1 0 1 1 Overflow<br />

+normalized 1 0 0 -<br />

+denormalized 0 0 1 1 Underflow<br />

+zero 0 0 0 -<br />

-zero 0 0 0 -<br />

-denormalized 0 0 1 1 Underflow<br />

-normalized 0 1 0 -<br />

-infinite 0 1 1 1 Overflow<br />

-qNaN 1 1 1 1<br />

BR CC 1 CC 0 OV OS OR STA RLO /FC<br />

writes: - x x x x - - - -<br />

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

A5E00706960-01 8-5

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

Saved successfully!

Ooh no, something went wrong!