EasyManua.ls Logo

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

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
(273)
ZONE 0001 D00100 D00110
0000
00
(130)
ANDW 0010 0020 D00200
0000
00
341
Example 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.
Address Instruction Operands
00000 LD 000000
00001 ZONE(273)
0001
D00100
D00110
0500
CIO 0001
41F5
D00110
46F5
0100
41F5 > 0
FF9C
A50005 (>) ON
D00101 D00100
41F5 + 0500 = 46F5
0100
CIO 0001
D00110
8868
88CC < 0
A50007 (<) ON
D00101 D00100
88CC
88CC + FF9C = 8868
A50008 (N) ON
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 AreasLadder 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 115 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
Description
Precautions
Logic Instructions Section 5-25

Table of Contents

Related product manuals