9
-
97
9.12.3Real number (E)
(1) Definition
The real number (E) is a device used to specify real numbers in sequence programs.
Note15
In sequence programs, specify it as E
(example: E1.234). (
(2) Specification range
(a) Real number setting range
-2
128
< Device -2
-126
,0 ,2
-126
Device < 2
128
(b) When an overflow or underflow has occurred
Table9.19 shows the operation of the CPU module when an overflow or underflow has occurred during
arithmetic operation.
*1: For the Process CPU, if the serial number (first five digits) is
"
07031
"
or earlier,
"
OPERATION ERROR
"
(error code: 4140)
occurs.
(c) When a special value
*1
is input
If operation is performed with input data that contains a special value, "OPERATION ERROR" (error code:
4140) occurs. (For the High Performance model QCPU, an error occurs only when the internal operation is set
to single precision.)
*1: The special values are -0, normalized 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.
10.2345 can be specified as E10.2345.
• Exponential expression ••• A numeric value is specified by (Value) 10
n
.
234 is specified as E1.234 + 3.
*1
*1: + 3 represents 10
3
in E1.234 + 3.
Note15
Figure 9.95 Real number specification
Table9.19 When an overflow or underflow has occurred
CPU module
Overflow
Underflow
Basic model QCPU
"OPERATION ERROR"
(error code: 4100)
"OPERATION ERROR"
(error code: 4100)
High Performance model QCPU
Process CPU
Turned to 0 without any error
*1
Redundant CPU
Note9.15
When using the real number operation function for the Basic model QCPU, check the versions of the CPU module and
GX Developer. (
Basic
X1
E1.234
D0
EMOVP
Example
Example
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......