![Omron CVM1D Operation Manual Download Page 335](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532335.webp)
(130)
ANDW
0010
0020
D00200
0000
00
330
5-25 Logic Instructions
The logic instructions perform logic operations on word data.
5-25-1 LOGICAL AND: ANDW(130)
Variations
j
ANDW(130)
(130)
ANDW
I
1
I
2
R
I
2
: Input 2
CIO, G, A, T, C, #, DM, DR, IR
R: Result word
CIO, G, A, DM, DR, IR
I
1
: Input 1
CIO, G, A, T, C, #, DM, DR, IR
Operand Data Areas
Ladder Symbol
When the execution condition is OFF, ANDW(130) is not executed. When the
execution condition is ON, ANDW(130) logically AND’s corresponding bits of I
1
and I
2
and places the result in R.
Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R after execution.
Example
When CIO 000000 is ON in the following example, the logical AND is taken of
corresponding bits in CIO 0010 and CIO 0020 and the results is placed in corre-
sponding bits of D00200.
Address
Instruction
Operands
00000
LD
000000
00001
ANDW(130)
0010
0020
D00200
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
15
00
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
15
00
15
00
CIO 0010
CIO 0020
D00200
Description
Precautions
Logic Instructions
Section 5-25
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...