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.5 ABS Absolute Value of a Floating-Point Number (32-Bit<br />

IEEE-FP)<br />

Format<br />

Description<br />

Status word<br />

Example<br />

ABS<br />

ABS (absolute value of a 32-bit IEEE FP) produces the absolute value of a<br />

floating-point number (32-bit IEEE floating-point number) in ACCU 1. The result is<br />

stored in accumulator 1. The instruction is executed without regard to, and without<br />

affecting, the status bits.<br />

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

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

<strong>STL</strong> Explanation<br />

L ID8 //Load value into ACCU 1 (example: ID8 = -1.5E+02).<br />

ABS //Form the absolute value; store the result in ACCU 1.<br />

T MD10 //Transfer result to MD10 (example: result = 1.5E+02).<br />

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

A5E00706960-01 8-9

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

Saved successfully!

Ooh no, something went wrong!