Mitsubishi Electric MELDAS 60 Series Programming Manual page 153

Plc programming
Hide thumbs Also See for MELDAS 60 Series:
Table of Contents

Advertisement

Program example
(1) Program to calculate D10 - D20 when XA turns ON and obtain an absolute value when the
results are negative.
XA
10
XA
15
D10
D20
<
-
D10
D20
M3
NEG D10
- 145 -
M3
M3 turns ON when D10 < D20
D10
D10-D20 is executed.
The absolute value (complement of 2)
when M3 turns ON is obtalned.
Coding
No. of
Com-
steps
mand
10
LD
11
AND<
14
OUT
15
LD
16
-
20
AND
21
NEG
23
NEG
Device
XA
D10
D20
M3
XA
D10
D20
D10
M3
D10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents