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.

13 Word Logic Instructions<br />

13.1 Overview of Word Logic Instructions<br />

Description<br />

Word logic instructions compare pairs of words (16 bits) and double words (32 bits)<br />

bit by bit, according to Boolean logic. Each word or double word must be in one of the<br />

two accumulators.<br />

For words, the contents of the low word of accumulator 2 is combined with the<br />

contents of the low word of accumulator 1. The result of the combination is stored in<br />

the low word of accumulator 1, overwriting the old contents.<br />

For double words, the contents of accumulator 2 is combined with the contents of<br />

accumulator 1. The result of the combination is stored in accumulator 1, overwriting<br />

the old contents.<br />

If the result does not equal 0, bit CC 1 of the status word is set to "1". If the result<br />

does equal 0, bit CC 1 of the status word is set to "0".<br />

The following instructions are available for performing Word Logic operations:<br />

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

• OW OR Word (16-Bit)<br />

• XOW Exclusive OR Word (16-Bit)<br />

• AD AND Double Word (32-Bit)<br />

• OD OR Double Word (32-Bit)<br />

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

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

A5E00706960-01 13-1

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

Saved successfully!

Ooh no, something went wrong!