Mitsubishi Electric M800VW Series Programming Manual page 251

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.3 Data Conversion Instructions
EDCON, EDCONP: Conversion from double precision to single precision
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
EDCON
EDCONP
 Setting data
Setting data
Data to be converted, or the first number of the device where data to be converted
S
is stored.
The first number of the device that will store the converted data.
D
 Functions
EDCON
 Converts the 64-bit floating-point real number designated by (S) to a 32-bit floating-point real number, and stores the result
of the conversion at the device designated by (D).
S+3
S+2
S+1
S
64-bit floating-point real
number
 When setting input values from programming tools, rounding errors may occur.
For precautions when setting input values from programming tools, refer to "6.3.4 Single/Double-Precision Real Number
Data".
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The value of (S) is "-0", unnormalized number, nonnumeric, ± ∞ , or is outside the following range. (Error code: 35)
-1022
1024
0, 2
≤ | S | < 2
- The conversion result exceeds the following range. (When an overflow occurs) (Error code: 35)
| Operation result | < 2
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
D+1
D
32-bit floating-point real
number
128
Con-
Word devices
stant
D
R/ZR W SW SD
Z
230
Digit
Pointer
designa-
Index
tion
E
P
indicates the sign "EDCON".
S
D
P
S
D
Data type
Double precision real
number
Single precision real
number

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents