Mitsubishi Electric MELDAS C6 Programming Manual page 178

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

(2) -2147483648 to 2147483647 (BIN 32-bit) can be designated in S1, S2 and S.
(3) The positive/negative of the data in S1, S2, S and D is determined with the highest-order bit
(B31).
B31
positive/negative
0
1
(4) The carry flag will not turn ON if the 0th bit underflows.
Execution conditions
The execution conditions for D-, D-P are as shown below.
Subtraction command OFF
D-
D-P
Program example
(1) Program to subtract the D0, 1 data from the D10, 11 data when X1 turns ON, and output the
results to D99, 100. Program to subtract the D0, 1 data from D10, 11 data when X2 turns ON, and
output the results to D97, 98.
X1
10
X2
15
8. Function Commands
D–, D–P
Judgment of
Positive
Negative
ON
Executed per scan
D-
D10
D-
D10
- 169 -
Get other manuals https://www.bkmanuals.com
Executed per scan
Subtract D0, 1 from D10,11,
D0
D99
and store the results in D99,100
Subtract D0, 1 from D10,11,
D0
D97
and store the results in D97,98
Coding
No. of
steps
10
LD
11
D-
15
LD
16
D-
20
Com-
Device
mand
X1
D10
D0
D99
X2
D10
D0
D97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents