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 #223 background imageLoading...
Page #223 background image
7. APPLICATION INSTRUCTIONS
7 21
MELSEC-A
Program Example NEG
(1) Program which calculates "D10 - D20" when XA turns on, and obtains the
absolute value when the result is negative.
(
)
X00A
0
< D10 D20
P
- D20 D10
When D10 < D20, M3 turns on.
D10 – D20 is executed.
Coding
0 LD X00A
1 AND< D10 D20
6 OUT M3
7 LD X00A
8 -P D20 D10
13 AND M3
14 NEGP D10
17 END
P
NEG D10
When M3 is on, absolute value (2’s complement)
is obtained.
M3
X00A
7
M3

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