DINT_TO_INT
(10021)
Illustration
Execution time
Operation
Inputs
Outputs
DINT_TO_REALn
(10023)
Illustration
Execution time
Operation
Inputs
Outputs
0.53 µs
The output (O) value is a 16-bit integer value of the 32-bit integer input (I) value.
Examples:
I (31 bits + sign)
2147483647
-2147483648
0
Input (I): DINT
Output (O): INT
7.25 µs
The output (OUT) is the REAL/REAL24 equivalent of the input (IN). Input IN1 is the
integer value and input IN2 is the fractional value.
If one (or both) of the input values is negative, the output value is negative.
Example (from DINT to REAL):
When IN1 = 2 and IN2 = 3276, OUT = 2.04999.
The output value is limited to the maximum value of the selected data type range.
Input (IN1, IN2): DINT
The output data type is selected by the user.
Output (OUT): REAL, REAL24
O (15 bits + sign)
32767
-32767
0
Standard function blocks
279