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

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Logic Instructions

Example
0000
00
(273)
ZONE 0001 D00100 D00110

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
When CIO 000000 turns ON in the following example, one of the following will
occur:
If the binary content of CIO 0001 is less than zero, the result of CIO 0001 plus
D00100 will be output to D00110.
If the binary content of CIO 0001 is equal to zero, 0000 will be output to
D00110.
If the binary content of CIO 0001 is greater than the content of D00100, the
result of (CIO 0001 plus D00100) will be output to D00110.
CIO 0001
D00101 D00100
41F5
0500
0100
41F5 > 0
41F5 + 0500 = 46F5
D00110
46F5
The logic instructions perform logic operations on word data.
Operand Data Areas
I
1
I
R
2
I
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 115 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
CIO 0001
88CC
88CC < 0
88CC + FF9C = 8868
A50005 (>) ON
: Input 1
CIO, G, A, T, C, #, DM, DR, IR
: Input 2
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, DM, DR, IR
D00200
Section 5-25
Address Instruction
Operands
00000
LD
000000
00001
ZONE(273)
D00100
D00110
D00101 D00100
0100
FF9C
D00110
8868
A50007 (<) ON
A50008 (N) ON
Address
Instruction
Operands
00000
LD
00001
ANDW(130)
D00200
0001
1
000000
0010
0020
341

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents