Mitsubishi MELSEC-A Series Programming Manual page 217

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS
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
P
K8
0
DXOR
X020
MOV
• Coding
0
LD
1
DXORP K8X020
10
DSUMP D9
13
MOVP
18
END
Exclusive OR of the 32-bit data of X20 to 3F and
D9
the data of D9 and 10 is performed.
P
Comparing 32-bit data of D9 and 10, the total
DSUM
D9
number of "1" bits is stored into A0.
P
A0
D16
Data of A0 is stored into D16.
X006
D9
A0
D16
7 − 15
MELSEC-A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents