EasyManuals Logo

Mitsubishi MELSEC-A series Programming Manual

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
Page #221 background imageLoading...
Page #221 background image
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.

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-A series and is the answer not in the manual?

Mitsubishi MELSEC-A series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-A series
CategoryController
LanguageEnglish

Related product manuals