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.9 INVD Ones Complement Double Integer (32-Bit)<br />

Format<br />

Description<br />

Status word<br />

Example<br />

INVD<br />

INVD (ones complement double integer) forms the ones complement of the 32-bit<br />

value in ACCU 1. Forming the ones complement inverts the value bit by bit, that is,<br />

zeros replace ones, and ones replace zeros. 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.<br />

INVD //Form ones complement (32-bit).<br />

T MD10 //Transfer result to MD10.<br />

Contents ACCU1-H ACCU1-L<br />

Bit 31 . .<br />

.<br />

. . . . . . .<br />

16<br />

15 . .<br />

.<br />

. . . . . . . 0<br />

before execution of INVD 0110 1111 1000 1100 0110 0011 1010 1110<br />

after execution of INVD 1001 0000 0111 0011 1001 1100 0101 0001<br />

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

A5E00706960-01 3-9

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

Saved successfully!

Ooh no, something went wrong!