A SERVICE OF

logo

8. Function Commands
WXOR, WXORP
- 243 -
Execution conditions
The execution conditions for WXOR, WXORP are as follows.
Operation command OFF
WXOR
ON
Executed per scan
Executed per scan
WXORP
Program example
(1) Program to execute 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 WXOR D10 D20 D33
WXOR
D20
D10
D33
XA
10
15
(2) Program to execute 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 WXOR
K3X10
D33 D100
WXOR D33
K3X10
D100
XA
10
15