Mitsubishi Electric M800VW Series Programming Manual page 248

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
DINTD
 Converts the 64-bit floating-point real number designated by (S) to BIN 32-bit data, and stores the result at the device num-
ber designated by (D).
S+3
S+2
S+1
S
64-bit floating-point real
number
 64-bit floating-point real numbers between -2147483648 to 2147483647 can be designated by (S+3), (S+2), (S+1), and (S).
 Stores integer values stored at (D+1) and (D) as BIN 32-bit values.
 After conversion, the first digit after the decimal point of the 64-bit floating-point real number is rounded off.
 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
- When using the INTD instruction, the 64-bit floating-point data designated by (S) is outside the range of -32768 to
32767. (Error code: 34)
- When using the DINTD instruction, the 64-bit floating-point data designated by (S) is outside the range of -2147483648
to 2147483647. (Error code: 34)
D+1
D
Upper 16 bits Lower 16 bits
BIN 32 bits
227
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents