253
ECON, ECONP
1
2
3
4
6
7
8
6.3 Data conversion instructions
6.3.16 ECON, ECONP
[Operation]
: Conversion source data, or head number of the device where conversion source data is stored (Real number (single precision))
: Head number of the device where the converted data is stored (Real number (double precision))
Function
Converts 32-bit floating-point real number specified for into 64-bit floating-point real number, and stores the conversion
result to the device specified for .
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.
6.3.16 ECON, ECONP Co nversion from Single precis ion to Double precision
6.3.16
ECON, ECONP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
E
Other
Bit Word Bit Word
–– –– ––
–– –– –– ––
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4140
The specified device value is not within the following range:
0, 2
-126
| Specified device value | < 2
128
The specified device value is 0, unnormalized number, nonnumeric,
and ± .
–– –– –– ––
000111111001000
000111011110011
001001110000111
0
0
1
1 1 0 0 0 0 0 0 0 1 0 000 0 0
0 0 1 1 1 0 1 1 0 0 1 010 1 0
1 0 0 1 1 0 0 1 1 0 0 110 0 1
BIN conversion
(when D0=3)
D200 BIN 8080
D202 BIN 9999
D201 BIN 7654
D100 BCD 8080
D102 BCD 9999
D101 BCD 7654
8192
4096
2048
1024
512
256
128
64
32
16
8
4
2
1
2000
1000
800
400
200
100
80
40
20
10
8
4
2
1
4000
8000
Universal
LCPU
Basic
High
performance
Process
Redundant
ECON
ECONP
S
D
S D
ECON
ECONP
Command
Command
S
D
S
D
S
D
+1
S S
32-bit floating-point real number
+3 +2
+1
DDD
D
64-bit floating-point real number