WXOR
- 145 -
Program example
(1) Program that executes exclusive OR of the D10 data and D20 data when XA turns ON, and
stores 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 that executes exclusive OR of the X10 to 1B data and D33 data when XA turns ON, and
outputs 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