« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
12-1
12: 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 data type, respectively.
ANDW (AND Word)
ORW (OR Word)
XORW (Exclusive OR Word)
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
FC4A-C24R2/C
FC4A-D20K3/S3
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
X
X
X
X
S1
·
S2
→
D1
When input is on, 16-bit data designated by source operands S1
and S2 are ANDed, bit by bit. The result is set to destination
operand D1.
S1 =
1
1
1
0
0
1
S2 =
1
0
1
1
0
0
D1 =
1
0
1
0
0
0
S1
S2
D1
0
0
0
0
1
0
1
0
0
1
1
1
REP
**
S1(R)
*****
D1(R)
*****
ANDW(W)
S2(R)
*****
S1 + S2
→
D1
When input is on, 16-bit data designated by source operands S1
and S2 are ORed, bit by bit. The result is set to destination oper-
and D1.
S1 =
1
1
1
0
0
1
S2 =
1
0
1
1
0
0
D1 =
1
1
1
1
0
1
S1
S2
D1
0
0
0
0
1
1
1
0
1
1
1
1
REP
**
S1(R)
*****
D1(R)
*****
ORW(W)
S2(R)
*****
S1
⊕
S2
→
D1
When input is on, 16-bit data designated by source operands S1
and S2 are exclusive ORed, bit by bit. The result is set to desti-
nation operand D1.
S1 =
1
1
1
0
0
1
S2 =
1
0
1
1
0
0
D1 =
0
1
0
1
0
1
S1
S2
D1
0
0
0
0
1
1
1
0
1
1
1
0
REP
**
S1(R)
*****
D1(R)
*****
XORW(W)
S2(R)
*****
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...