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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Conversion Instructions<br />

3.12 NEGR Negate Floating-Point Number (32-Bit, IEEE-FP)<br />

Format<br />

NEGR<br />

Description of instruction<br />

Status word<br />

Example<br />

NEGR (negate 32-bit IEEE floating-point number) negates the floating-point number<br />

(32-bit, IEEE-FP) in ACCU 1. The instruction inverts the state of bit 31 in ACCU 1<br />

(sign of the mantissa). The result is stored in accumulator 1.<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: ID 8 = 1.5E+02).<br />

NEGR //Negate floating-point number (32-bit, IEEE-FP); stores the result in ACCU<br />

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 />

3-12 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!