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.

Conversion Instructions<br />

3.8 INVI Ones Complement Integer (16-Bit)<br />

Format<br />

Description<br />

Status word<br />

Example<br />

INVI<br />

INVI (ones complement integer) forms the ones complement of the 16-bit value in<br />

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

replace ones and ones replace zeros. The result is stored in the low word of<br />

accumulator 1.<br />

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

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

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

L IW8 //Load value into ACCU 1-L.<br />

INVI //Form ones complement 16-bit.<br />

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

Contents ACCU1-L<br />

Bit 15 . . . . . . . . . . 0<br />

before execution of INVI 0110 0011 1010 1110<br />

after execution of INVI 1001 1100 0101 0001<br />

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

3-8 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!