Double Precision To Single Precision Conversion (Edcon(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6.3.17
Double precision to Single precision conversion
(EDCON(P))
EDCON(P)
EDCON
EDCONP
Setting
Data
S
D
Function
Converts 64-bit floating-point real number specified for
number, and stores the conversion result to the device specified for
S
+3
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.
• The value of the specified device is not in the following range:
0,2
• The value of the designated device is
• The result exceeds the following range (Conversion results in an overflow):
128
2
Command
Command
: Conversion source data, or head number of the device where conversion source data is stored
S
(Real number (double precision))
: Head number of the device where the converted data is stored (Real number (single precision))
D
Internal Devices
R, ZR
Bit
Word
––
––
S
S
+2
+1
S
64-bit floating-point real number
-1022
| value of specified device |
| Conversion result |
High
Basic
performance
EDCON
EDCONP
J
\
U
\G
Bit
Word
––
––
into 32-bit floating-point real
S
D
+1
D
32-bit floating-point real number
1024
2
0.
EDCON(P)
Process
Redundant
Universal
LCPU
S
D
S
D
Constants
Zn
Other
E
––
––
––
––
.
D
(Error code: 4140)
(Error code: 4140)
(Error code: 4141)
6-105
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents