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.4 XOW Exclusive OR Word (16-Bit)<br />

Format<br />

XOW<br />

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

XOR (Exclusive Or)<br />

XOW (XOR 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 XOR. A bit in the<br />

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

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

remain unchanged. The status bit CC 1 is set as a result of the operation (CC 1 = 1 if<br />

result is unequal to zero). The status word bits CC 0 and OV are reset to 0.<br />

You can use the Exclusive OR function several times. The result of logic operation is<br />

then "1" if an impair number of checked addresses ist "1".<br />

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

XOW : Combines ACCU 1-L 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-6 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!