Logic Instructions; Logical And: Andw(130) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Logic Instructions

5-25 Logic Instructions

5-25-1 LOGICAL AND: ANDW(130)

Ladder Symbol
(130)
ANDW
I
1
Variations
j ANDW(130)
Description
Precautions
Flags
Example
0000
00
330
The logic instructions perform logic operations on word data.
Operand Data Areas
I
: Input 1
1
I
R
2
I
: Input 2
2
R: Result word
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
and I
and places the result in R.
2
Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R after execution.
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.
(130)
ANDW
0010
0020
D00200
15
CIO 0010
1
0
15
0
1
CIO 0020
15
0
0
D00200
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, DM, DR, IR
0
1
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
Section 5-25
Address
Instruction
Operands
00000
LD
00001
ANDW(130)
D00200
00
0
0
1
1
0
0
1
00
1
0
1
0
1
0
1
00
0
0
1
0
0
0
1
1
000000
0010
0020

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents