Logical And - Andw; Logical Or - Orw - Omron C200H Operation Manual

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Logic Instructions
Flags
5-19-2
LOGICAL AND – ANDW(34)
Description
Example
Flags
5-19-3
LOGICAL OR – ORW(35)
Description
Indirectly addressed DM word is non-existent. (Content of *DM word
ER:
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
Ladder Symbols
ANDW(34)
@ANDW(34)
I1
I2
R
When the execution condition is OFF, ANDW(34) is not executed. When the
execution condition is ON, ANDW(34) logically AND's the contents of I1 and
I2 bit-by-bit and places the result in R.
15
1
0
0
I1
15
0
1
0
I2
15
0
0
0
R
Indirectly addressed DM word is non-existent. (Content of *DM word
ER:
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
Ladder Symbols
ORW(35)
@ORW(35)
I1
I2
R
When the execution condition is OFF, ORW(35) is not executed. When the
execution condition is ON, ORW(35) logically OR's the contents of I1 and I2
bit-by-bit and places the result in R.
I1
I2
R
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
I1
I2
R
Section 5-19
Operand Data Areas
I1: Input 1
IR, SR, AR, DM, HR, TC, LR, #
I2: Input 2
IR, SR, AR, DM, HR, TC, LR, #
R: Result word
IR, AR, DM, HR, LR
00
0
1
1
0
0
1
00
0
1
0
1
0
1
00
0
1
0
0
0
1
Operand Data Areas
I1: Input 1
IR, SR, AR, DM, HR, TC, LR, #
I2: Input 2
IR, SR, AR, DM, HR, TC, LR, #
R: Result word
IR, AR, DM, HR, LR
185

Advertisement

Table of Contents
loading

Table of Contents