Logic Instructions - Omron SYSMAC CS Series Instruction & Reference Manual

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions

Logic Instructions

ANDW/ANDL
Instruction
LOGICAL AND
DOUBLE LOGICAL AND
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
I
Input 1
1
I
Input 2
2
R
Result word
 Operand Specifications
Word addresses
Area
CIO
WR
HR
I
, I
1
2
ANDW
OK
OK
OK
R
I
, I
1
2
ANDL
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Negative Flag
354
Mnemonic
Variations
ANDW
@ANDW
ANDL
@ANDL
ANDW
ANDW(034)
I
: Input 1
I
1
1
I
: Input 2
I
2
2
R: Result word
R
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Label
ER
OFF
=
• ON when the result is 0.
• OFF in all other cases.
N
• ON when the leftmost bit of R is 1.
• OFF in all other cases.
Function
code
Takes the logical AND of corresponding bits in
034
single words of word data and/or constants.
Takes the logical AND of corresponding bits in
610
double words of word data and/or constants.
Subroutines
OK
Data type
ANDW
WORD
DWORD
WORD
DWORD
WORD
DWORD
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
ANDL
ANDL(610)
I
: Input 1
I
1
1
I
: Input 2
I
2
2
R: Result word
R
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
ANDL
ANDW
ANDL
1
1
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
---
OK
---
---
---
2
2
2
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents