7. APPLICATION INSTRUCTIONS
7
−
19
MELSEC-A
DXNR
(1) Program which compares the bit pattern of the 32-bit data of X20 to 3F and that
of the data of D16 and 17, and stores the number of the same bit patterns to
D18 when X6 turns on.
X006
0
P
K8
DXNR X020
D16
P
DSUM D16
Exclusive NOR of the 32-bit data of X20 to 3F
and the data of D16 and 17 is performed.
Among 32-bit data of D16 and 17, the total
number of "1" bits is stored into A0.
•
Coding
0 LD
X006
1 DXNRP K8X020
D16
10
DSUMP D16
13
MOVP
A0
D18
18
END
P
MOV A0 D18 Data of A0 is stored into D18.
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......