FX Series Programmable Controlers Applied Instructions 5
5-36
5.3.7 WAND (FNC 26)
Operation:
The bit patterns of the two source devices are
analyzed (the contents of S
2is compared against
the contents of S
1). The result of the logical AND
analysis is stored in the destination device (D).
The following rules are used to determine the result of a logical AND operation. This takes
place for every bit contained within the source devices:
General rule: (S
1) Bit n WAND (S2)Bitn=(D)Bitn
1 WAND 1 = 1 0 WAND 1 = 0
1 WAND 0 = 0 0 WAND 0 = 0
Mnemonic Function
Operands
Program steps
S1 S2 D
WAND
FNC 26
(
Logical
word AND)
AlogicalANDis
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:
7steps
DAND,
DANDP:
13 steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X0
WAND D 10 D 12 D 14
[ S1 ] [ D ][ S2 ]