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.

Word Logic Instructions<br />

13.7 XOD Exclusive OR Double Word (32-Bit)<br />

Format<br />

XOD<br />

XOD <br />

Address Data type Description<br />

DWORD,<br />

32-bit constant<br />

Description of instruction<br />

Status word<br />

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

XOR (Exclusive Or).<br />

XOD (XOR double word) combines the contents of ACCU 1 with ACCU 2 or a 32-bit<br />

constant bit by bit according to the Boolean logic operation XOR (Exclusive Or). A bit<br />

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

double words combined in the logic operation is "1". The result is stored in ACCU 1.<br />

ACCU 2 remains unchanged. The status bit CC 1 is set as a result of the operation<br />

(CC 1 = 1 if result is not equal to zero). The status word bits CC 0 and OV are reset to<br />

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

XOD: Combines ACCU 1 with ACCU 2.<br />

XOD : Combines ACCU 1 with a 32-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-12 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!