251
5-22-3 LOGICAL OR – ORW(35)
I1:
Input 1
IR, SR, AR, DM, HR, TC, LR, #
I2
: Input 2
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R: Result word
IR, SR, AR, DM, HR, LR
ORW(35)
I1
I2
R
@ORW(35)
I1
I2
R
Description
When the execution condition is OFF
, OR
W(35) is not executed. When the ex
-
ecution condition is ON, ORW(35) logically OR’s the contents of I1 and I2
bit-by-bit and places the result in R.
10 0110 0110011001
15 00
01 0101 0101010101
11 0111 0111011101
15 00
15 00
I1
I2
R
Flags ER: Indirectly
addressed
DM word is non-existent. (Content of
:
DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ: ON when the result is 0.
Example
Logic Instructions Section 5-22