Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-30
5.3.7 WAND (FNC 26)
Operation:
The bit patterns of the two source devices are
anal
y
zed (the contents of S
2
is compared a
g
ainst
the contents of S
1
). The result of the lo
g
ical AND
anal
y
sis is stored in the destination device (D).
The followin
g
rules are used to determine the result of a lo
g
ical AND operation. This takes
place for ever
y
bit contained within the source devices:
General rule: (S
1
) Bit n WAND (S
2
) Bit n = (D) Bit n
1 WAND 1 = 1 0 WAND 1 = 0
1 WAND 0 = 0 0 WAND 0 = 0
5.3.8 WOR (FNC 27)
Operation:
The bit patterns of the two source devices are
anal
y
zed (the contents of S
2
is compared a
g
ainst
the contents of S
1
). The result of the lo
g
ical OR
anal
y
sis is stored in the destination device (D).
The followin
g
rules are used to determine the result of a lo
g
ical OR operation. This takes place
for ever
y
bit contained within the source devices:
General rule: (S
1
) Bit n WOR (S
2
) Bit n = (D) Bit n
1 WOR 1 = 1 0 WOR 1 = 1
1 WOR 0 = 1 0 WOR 0 = 0
Mnemonic Function
Operands
Program steps
S1 S2 D
WAND
FNC 26
(
Lo
g
ical
word AND)
A lo
g
ical AND is
performed on the
source devices -
result stored at
destination
K, H,
KnX, KnY,
KnM, KnS,
T, C, D, V, Z
KnY, KnM, KnS,
T, C, D, V, Z
WAND,WANDP:
7 steps
DAND,
DANDP:
13 steps
Mnemonic Function
Operands
Program steps
S1 S2 D
WOR
FNC 27
(
Lo
g
ical
word OR)
A lo
g
ical OR is
performed on the
source devices -
result stored at
destination
K,H,
KnX,KnY, KnM, KnS,
T, C, D, V, Z
KnY, KnM, KnS,
T, C, D, V, Z
WOR,WORP:
7 steps
DOR,
DORP:
13 steps
X0
WAND D 10 D 12 D 14
[ S1 ] [ D ][ S2 ]
X1
WOR D 10 D 12 D 14
[ S1 ] [ D ][ S2 ]