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 #216 background imageLoading...
Page #216 background image
7. APPLICATION INSTRUCTIONS
7 14
MELSEC-A
Program Examples WXOR
(1) Program which performs exclusive OR of the data of D10 and that of D20, and
stores the result to D10 when XA turns on.
(2) Program which performs the exclusive OR of the data of X10 to 1B and data of
D33, and sends the result to the Y30 to 3B when XA turns on.
(3) Program which performs exclusive OR of the data of D10 and that of D20, and
stores the result to D33 when XA turns on.
(4) Program which performs exclusive OR of the data of X10 to 1B and the data of
D33, and sends the result to the Y30 to 3B when XA turns on.
X00A
0
P
WXOR D20 D10
Coding
0 LD X00A
1 WXORP D20 D10
6 END
X00A
0
PK3
WXOR X010 D33
PK3
MOV D33 Y030
Exclusive OR of the data of X10 to 1B and the
data of D33 is performed and the result is stored
into D33.
Data of D33 is sent to Y30 to 3B.
Coding
0 LD X00A
1 WXORP K3X010 D33
6 MOVP D33 K3Y030
11 END
X00A
0
P
WXOR D10 D20 D33
Coding
0 LD X00A
1 WXORP D10 D20 D33
8 END
X010
0
PK3 K3
WXOR X010 D33 Y030
Coding
0 LD X010
1 WXORP K3X010 D33 K3Y030
8 END

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