8. Function Commands
WXNR, WXNRP
- 247 -
Execution conditions
The execution conditions for WXNR, WXNRP are as follows.
Operation command OFF
WXNR
ON
Executed per scan
Executed per scan
WXNRP
Program example
(1) Program to execute non-exclusive OR 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 WXNR D10 D20 D33
WXNR
D20
D10
D33
XA
10
15
(2) Program to execute non-exclusive OR of the X10 to 1B data and D33 data when XA turns ON,
and to output the results to D100.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 WXNR
K3X10
D33 D100
WXNR D33
K3X10
D100
XA
10
15