FX Series Programmable Controlers Applied Instructions 5
5-37
5.3.8 WOR (FNC 27)
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 OR
analysis is stored in the destination device (D).
The following rules are used to determine the result of a logical OR operation. This takes place
for every bit contained within the source devices:
General rule: (S
1)BitnWOR(S2)Bitn=(D)Bitn
1WOR1=1 0WOR1=1
1WOR0=1 0WOR0=0
Mnemonic Function
Operands
Program steps
S1 S2 D
WOR
FNC 27
(
Logical
word OR)
AlogicalORis
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:
7steps
DOR,
DORP:
13 steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X1
WOR D 10 D 12 D 14
[ S1 ] [ D ][ S2 ]