Real Number (E) - Mitsubishi Electric melsec q00ujcpu User Manual

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

9.13.3 Real number (E)

(1) Definition
The real number (E) is a device used to specify real numbers in sequence programs.
In sequence programs, specify it as E
(2) Specification range
(a) Real number setting range
• For single-precision floating-point data
128
-2
< Device
• For double-precision floating-point data
1024
-2
< Device
(b) When an overflow or underflow has occurred
Table9.12 shows the operation of the CPU module when an overflow or underflow has occurred during
arithmetic operation.
OPERATION ERROR (error code: 4141)
(c) When a special value
If operation is performed with input data that contains a special value, "OPERATION ERROR" (error code:
4140) occurs.
*1: The special values are -0, unnormalized numbers, nonnumeric characters, and
(3) Specification method
Real numbers can be specified in sequence programs by the following expressions.
• Normal expression ••• A numeric value can be specified as it is.
Example
• Exponential expression ••• A numeric value is specified by (Value)
Example
*1: + 3 represents 10
9 - 82
(example: E1.234). (
X1
Figure 9.95 Real number specification
-126
-126
-2
, 0, 2
Device < 2
-1022
-1022
-2
, 0, 2
Table9.12 When an overflow or underflow has occurred
Overflow
*1
is input
10.2345 can be specified as E10.2345.
1234 is specified as E1.234 + 3.
3
in E1.234 + 3.
Section 2.4.4)
EMOVP
E1.234 D0
128
1024
Device < 2
*1
Underflow
Turned to 0 without any error
.
n
10
.

Advertisement

Table of Contents
loading

Table of Contents