EasyManuals Logo
Home>IDEC>Controller>MICRO3

IDEC MICRO3 User Manual

IDEC MICRO3
235 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
Page #164 background imageLoading...
Page #164 background image
USERS MANUAL 12-1
12: BOOLEAN COMPUTATION INSTRUCTIONS
Introduction
Boolean computations use the AND, OR, and exclusive OR statements as carried out by the ANDW, ORW, and XORW
instructions, respectively. Since the Boolean computation is executed in each scan while the input is on, a level input or
pulse input should be used as required.
41 ANDW (AND Word)
42 ORW (OR Word)
43 XORW (Exclusive OR Word)
Key Operation
Press the ADV key, followed by the advanced instruction number.
ANDW S1(R)
*****
REP
**
D1(R)
****
S1 · S2 D1
When input is on, 16-bit word data designated by source operands
S1 and S2 are ANDed, bit by bit. The result is set to destination
operand D1.
S2(R)
*****
S1 = 1 1 1001
S2 = 1 0 1100
D1 = 1 0 1000
S1 S2 D1
000
010
100
111
ORW S1(R)
*****
REP
**
D1(R)
****
S1 + S2 D1
When input is on, 16-bit word data designated by source operands
S1 and S2 are ORed, bit by bit. The result is set to destination
operand D1.
S2(R)
*****
S1 = 1 1 1001
S2 = 1 0 1100
D1 = 1 1 1101
S1 S2 D1
000
011
101
111
XORW S1(R)
*****
REP
**
D1(R)
****
S1 S2 D1
When input is on, 16-bit word data designated by source operands
S1 and S2 are exclusive ORed, bit by bit. The result is set to desti-
nation operand D1.
S2(R)
*****
S1 = 1 1 1001
S2 = 1 0 1100
D1 = 0 1 0101
S1 S2 D1
000
011
101
110
ADV
1
BPS
1 S1
ANDW S2:
D1:
4
Enter operands S1, S2, and D1.
When repeat is required, press the REP key for the operand
to repeat, and enter the number of repeat cycles.
To exit, press the key.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICRO3 and is the answer not in the manual?

IDEC MICRO3 Specifications

General IconGeneral
BrandIDEC
ModelMICRO3
CategoryController
LanguageEnglish

Related product manuals