FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
8-1
8: B
OOLEAN
C
OMPUTATION
I
NSTRUCTIONS
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)
ORW (OR Word)
XORW (Exclusive OR Word)
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.
S1 =
1
1
1
0
0
1
S2 =
1
0
1
1
0
0
D1 =
1
0
1
0
0
0
REP
**
S1(R)
*****
D1(R)
*****
ANDW(*)
S2(R)
*****
AND Truth Table
S1
S2
D1
0
0
0
0
1
0
1
0
0
1
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.
S1 =
1
1
1
0
0
1
S2 =
1
0
1
1
0
0
D1 =
1
1
1
1
0
1
REP
**
S1(R)
*****
D1(R)
*****
ORW(*)
S2(R)
*****
AND Truth Table
S1
S2
D1
0
0
0
0
1
1
1
0
1
1
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.
⊕
S1 =
1
1
1
0
0
1
S2 =
1
0
1
1
0
0
D1 =
0
1
0
1
0
1
REP
**
S1(R)
*****
D1(R)
*****
XORW(*)
S2(R)
*****
AND Truth Table
S1
S2
D1
0
0
0
0
1
1
1
0
1
1
1
0
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...