Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
WAND, WANDP
- 235 -
(2) The bits other than designated digit are operated as 0.
(Refer to program example (2).)
Execution conditions
The execution conditions for WAND, WANDP are as follows.
Operation command OFF
WAND
ON
Executed per scan
Executed per scan
WANDP
Program example
(1) Program to execute logical AND of the D10 data and D20 data when XA turns ON, and to store
the results in D33.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 WAND D10 D20 D33
WAND D20
D10
D33
XA
10
15
(2) Program to execute logical AND of the X10 to 1B data and D33 data when XA turns ON, and to
output the results to D50.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 WAND K3X10 D33 D50
WAND
D33
K3X10 D50
XA
10
15
X1B to 10
0
0
01100111000100
WAND
11 0 0110011001101
00 0 0100011000100
D50
D33
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
X1B X1A X19 X18 X17 X16 X15 X14 X13 X12 X11 X10
Interpreted as 0