Mitsubishi Electric MELDAS C6 Programming Manual page 176

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

(3) The positive/negative of the data in S1, S2, S and D is determined with the highest-order bit
(B15).
B15
positive/negative
0
1
(4) The carry flag will not turn ON if the 0 bit underflows.
Execution conditions
The execution conditions for -, -P are as shown below.
Subtraction command OFF
-
-P
Program example
(1) Program to subtract the D10 BIN data from D3 and output to D20.
M0
10
(ON)
(2) Program to output the difference of the timer T3 setting value and current value to D20 BCD data.
X3
10
M0
13
(ON)
8. Function Commands
Judgment of
Positive
Negative
ON
Executed per scan
-
D3
D10
T3 K18000
MOV K18000 D2
-
D2
T3
BCD
D3
- 167 -
Get other manuals https://www.bkmanuals.com
–, –P
Executed per scan
Coding
No. of
steps
D20
10
11
15
Coding
No. of
steps
10
11
13
D3
14
17
D20
21
24
Com-
Device
mand
LD
M0
-
D3
D10
D20
Com-
Device
mand
LD
X3
K18000
OUT
T3
LD
M0
K18000
MOV
D2
-
D2
T3
D3
BCD
D3
D20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents