Mitsubishi Electric M800VW Series Programming Manual page 245

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
DINT
 Converts the 32-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+1
S
32-bit floating-point real
number
 32-bit floating-point real numbers between -2147483648 to 2147483647 can be designated by (S) and (S+1).
 Stores integer values stored at (D) and (D+1) as BIN 32-bit values.
 After conversion, the first digit after the decimal point of the 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 designated device value is not within the following range. (Error code: 35)
-126
0, 2
≤ | Designated device value | < 2
- The designated device value is "-0", unnormalized number, nonnumeric, or ± ∞ . (Error code: 35)
- When using the INT instruction, the 32-bit floating-point data designated by (S) is outside the range of -32768 to 32767.
(Error code: 34)
- When using the DINT instruction, the 32-bit floating-point data designated by (S) is outside the range of -2147483648 to
2147483647. (Error code: 34)
IB-1501667-B
D+1
D
Upper 16 bits Lower 16 bits
BIN 32 bits
128
224

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents