Andw (And Word); Orw (Or Word); Xorw (Exclusive Or Word) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

8: B
OOLEAN
Introduction
Boolean computations use the AND, OR, and exclusive OR statements as carried out by the ANDW, ORW, and XORW instructions in
the word or double-word data, respectively.

ANDW (AND Word)

ANDW(*)
S1(R)
*****
S1 = 1
S2 = 1
D1 = 1

ORW (OR Word)

ORW(*)
S1(R)
*****
S1 = 1
S2 = 1
D1 = 1

XORW (Exclusive OR Word)

XORW(*)
S1(R)
*****
S1 = 1
S2 = 1
D1 = 0
C
OMPUTATION
S2(R)
D1(R)
REP
*****
*****
**
1
1
0
0
1
0
0
0
1
1
0
0
0
0
1
S2(R)
D1(R)
REP
*****
*****
**
1
1
0
0
1
0
0
0
1
1
1
1
0
1
1
S2(R)
D1(R)
REP
*****
*****
**
1
1
0
0
1
0
0
0
1
1
1
1
0
1
0
FC6A S
MICROS
ERIES
MART
I
NSTRUCTIONS
S1 · S2 → D1
When input is on, 16- or 32-bit data assigned by source devices S1 and S2
are ANDed, bit by bit. The result is set to destination device D1.
AND Truth Table
S1
0
0
1
1
S1 + S2 → D1
When input is on, 16- or 32-bit data assigned by source devices S1 and S2
are ORed, bit by bit. The result is set to destination device D1.
AND Truth Table
S1
0
0
1
1
S1
S2 → D1
When input is on, 16- or 32-bit data assigned by source devices S1 and S2
are exclusive ORed, bit by bit. The result is set to destination device D1.
AND Truth Table
S1
0
0
1
1
L
P
M
ADDER
ROGRAMMING
ANUAL
S2
D1
0
0
1
0
0
0
1
1
S2
D1
0
0
1
1
0
1
1
1
S2
D1
0
0
1
1
0
1
1
0
FC9Y-B1726
8-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents