Mitsubishi Electric MELDAS C6 Programming Manual page 206

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

Program example
(1) Program to subtract D20 from D10 when XA turns ON and obtain an absolute value when the
results are negative.
XA
10
XA
15
8. Function Commands
DNEG, DNEGP
D10
D20
D<
D-
D20
D10
M3
DNEG
- 197 -
Get other manuals https://www.bkmanuals.com
M3
M3 turns ON when D10, 11 < D20, 21
D10
Subtracts D20, 21 from D10, 11.
D10
The absolute value (complement of 2)
when M3 turns ON is obtained.
Coding
No. of
Com-
steps
mand
10
LD
11
ANDD< D10
14
OUT
15
LD
16
D-
20
AND
21
DNEG
23
Device
XA
D20
M3
XA
D10
D20
D10
M3
D10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents