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.

Word Logic Instructions<br />

13.2 AW AND Word (16-Bit)<br />

Format<br />

AW<br />

AW <br />

Address Data type Description<br />

WORD,<br />

16-bit constant<br />

Description of instruction<br />

Status word<br />

Bit pattern to be combined with ACCU 1-L by<br />

AND<br />

AW (AND word) combines the contents of ACCU 1-L with ACCU 2-L or a 16<br />

bit-constant bit by bit according to the Boolean logic operation AND. A bit in the result<br />

word is "1" only when the corresponding bits of both words combined in the logic<br />

operation are "1". The result is stored in ACCU 1-L. ACCU 1-H and ACCU 2 (and<br />

ACCU 3 and ACCU 4 for CPUs with four ACCUs) remain unchanged. The status bit<br />

CC 1 is set as a result of the operation (CC 1 = 1 if result is unequal to zero). The<br />

status word bits CC 0 and OV are reset to 0.<br />

AW: Combines ACCU 1-L with ACCU 2-L.<br />

AW : Combines ACCU 1 with a 16-bit constant.<br />

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

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

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

13-2 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!