![Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual Download Page 404](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-r-r00cpu/melsec-iq-r-r00cpu_user-manual_239139404.webp)
402
25 CONSTANTS
25.3 Real Constant (E)
25.3
Real Constant (E)
Use this type of constants when specifying a real number in a program. There are two types of real numbers: single-precision
real number and double-precision real number. Specify it using E
character. (e.g. E1.234).
Setting range for real numbers
The setting ranges are different between the single-precision real number and double-precision real number.
Specification range for single-precision real numbers
The following is the specification range for single-precision real numbers.
-2
128
< device
-2
-126
, 0, 2
-126
device < 2
128
(E-3.438 to E-1.17549435-38, 0, E1.17549435-38 to E3.438)
Specification range for double-precision real number
The following is the specification range for single-precision real numbers.
-2
1024
< device
-2
-1022
, 0, 2
-1022
device < 2
1024
(E-1.797693134308 to E-2.2250738585072014-308, 0, E2.2250738585072014-308 to
E1.797693134308)
For the number of significant digits and input range of real number data input by the engineering tool, refer to
the following.
MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks)
Processing when operation is in progress
This section describes the processing when operation is in progress.
When overflow and/or underflow occurs:
If an overflow and/or underflow occurs when the operation is in progress, the following process is performed:
• When overflow occurs: An error is returned.
• When underflow occurs: 0 is returned (no error occurs).
When a special value is input:
When a special value
*1
is used for the input data operation, an error is returned. Note that when "-0" is generated during the
operation is in progress, it is handled as "+0," and therefore "-0" is not returned as an operation result.
*1 The special values include -0, denormalized number, nonnumeric number, and
.
25.4
Character String Constant
The character string can be specified by enclosing it with single quotation marks (' ') or double quotation marks (" "). (Example:
"ABCDE") Note that the NULL character (00H) becomes the termination character.
For details on character string data, refer to the following.
MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks)
Summary of Contents for MELSEC iQ-R-R00CPU
Page 2: ......
Page 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Page 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Page 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Page 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Page 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Page 1027: ......