8. Function Commands
DXNR, DXNRP
- 249 -
Execution conditions
The execution conditions for DXNR, DXNRP are as follows.
Operation command OFF
DXNR
ON
Executed per scan
Executed per scan
DXNRP
Program example
(1) Program to compare the X20 to 3F 32-bit data and the D9, 10 data when X6 turns ON, and to
store the No. of matched bits in D16.
K8X20
DXNR D9
X6
10
DSUM
D9
Non-exclusive OR the X20 to 3F 32-bit
data and D9, 10 data.
Store the total No. of "1" bits of
the D9 32-bit data in D16.
D16
Coding
No. of
steps
Com-
mand
Device
10 LD X6
11 DXNR
K8X20
D9
14 DSUM D9 D16
18