EasyManua.ls Logo

Mitsubishi MELSEC-A series - Page 217

Mitsubishi MELSEC-A series
508 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7. APPLICATION INSTRUCTIONS
7 15
MELSEC-A
DXOR
(1) Program which compares the 32-bit data of X20 to 3F and the bit pattern of data
of D9 and 10, and stores the number of different bits to D16 when X6 turns on.
X006
0
P K8
DXOR X020 D9
P
DSUM D9
Exclusive OR of the 32-bit data of X20 to 3F and
the data of D9 and 10 is performed.
Comparing 32-bit data of D9 and 10, the total
number of "1" bits is stored into A0.
Coding
0 LD X006
1 DXORP K8X020 D9
10 DSUMP D9
13 MOVP A0 D16
18 END
P
MOV A0 D16
Data of A0 is stored into D16.

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Related product manuals