FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
9-1
9: 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 type, respectively.
ANDW (AND Word)
ORW (OR Word)
XORW (Exclusive OR Word)
Applicable CPU Modules
S1 · S2
D1
When input is on, 16- or 32-bit data designated 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)
*****
0
0
1
1
0
1
0
1
0
0
0
1
S1
S2
D1
S1 + S2
D1
When input is on, 16- or 32-bit data designated 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)
*****
0
0
1
1
0
1
0
1
0
1
1
1
S1
S2
D1
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
S1
S2
D1
When input is on, 16- or 32-bit data designated 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)
*****
0
0
1
1
0
1
0
1
0
1
1
0
S1
S2
D1
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...