Mitsubishi MELSEC-Q Series Programming Manual page 205

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

E-(P)
(1) Subtracts the floating-point real number specified for
specified for
(2) Values which can be specified for
-126
0, 2
| specified value (storing value) | < 2
Operation Error
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The value of the specified device is outside the following range.
-126
0, 2
(For High Performance model QCPU)
• The value of the specified device is -0.
(For High Performance model QCPU)
*1 : There are CPU modules that will not result in an operation error if -0 is specified.
Refer to Section 3.4.4 for details.
• The operation result exceeds the following range. (An overflow occurs.)
(For Universal model QCPU only)
128
2
| operation result |
• The value of the specified device is -0, unnormalized number, nonnumeric or ±∞.
(For Universal model QCPU only)
Program Example
(1) In the following program, the floating-point real number Var_D3 is added to the floating-point
real number Var_D10 when X20 turns ON, and the result is stored to Var_R0.
[Structured ladder]
[Operation]
Var_D3
5961.437
, and stores the result to the variable specified for
s2
s1
Floating-point
Floating-point
real number
real number
,
s2
s1
| value of the specified device | < 2
Var_D10
12003.200
6.2.9 Floating-point data addition and subtraction (single precision)
and the floating-point real number
s1
d
s2
Floating-point
real number
and
, and which can be stored, are as follows.
d
128
128
*1
Var_R0
17964.637
6.2 Arithmetic Operation Instructions
E+, E-
.
d
(Error code: 4100)
(Error code: 4100)
(Error code: 4141)
(Error code: 4140)
6-43
6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents