Mitsubishi MELSEC Q Series Programming Manual page 253

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

ED-
(1) Subtracts a 64-bit floating decimal point type real number designated by
floating decimal point type real number designated by
designated by
D
+3
D
+2
64-bit floating-point
real number
(2) Values which can be designated at
-1022
0, 2
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The contents of the designated device or the result of the addition are not "0", or not within
the following range:
-1022
0, 2
• The value of the designated device is
• The result of addition/subtraction exceeds the following range (Operation results in an
overflow):
1024
2
Program Example
(1) The following program adds the 64-bit floating decimal point type real numbers at D3 to D6
and the 64-bit floating decimal point type real numbers at D10 to D13 when X20 goes ON,
and stores the result at D3 to D6.
[Ladder Mode]
[Operation]
D6 D5
(2) The following program subtracts the 64-bit floating decimal point type real number at D10 to
D13 from the 64-bit floating decimal point type real numbers at D20 to D23, and stores the
result of the subtraction at D20 to D23.
[Ladder Mode]
[Operation]
D23 D22
.
D
D
+1
D
S
+3
S
+2
64-bit floating-point
real number
S
| Designated value (stored value) | < 2
| Contents of designated device | < 2
| Result of operation |
D4
D3
D13 D12
5961.437
12003.200
D21
D20
D13 D12
97365.203
76059.797
, and stores the result at a device
S
S
+1
S
D
+3
64-bit floating-point
real number
and
and which can be stored, are as follows:
D
1024
1024
0.
[List Mode]
Instruction
Step
D11
D10
D6 D5
17964.637
[List Mode]
Instruction
Step
D11
D10
D23 D22
21305.406
ED+(P),ED-(P)
and a 64-bit
D
D
+2
D
+1
D
(Error code: 4140)
(Error code: 4140)
(Error code: 4141)
Device
D4
D3
Device
D21
D20
6-51
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents