Standard function blocks
355
DINT_TO_INT
(10021)
Illustration
Execution time 0.53 µs
Operation The output (O) value is a 16-bit integer value of the 32-bit integer input (I) value.
Examples:
Inputs Input (I): DINT
Outputs Output (O): INT
DINT_TO_REALn
(10023)
Illustration
Execution time 7.25 µs
Operation 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.
Inputs Input (IN1, IN2): DINT
Outputs The output data type is selected by the user.
Output (OUT): REAL, REAL24
DINT_TO_INT
84
TLA1 1 msec (1)
I
O
O(84)
I (31 bits + sign) O (15 bits + sign)
2147483647 32767
-2147483648 -32767
00
DINT_TO_REALn
(REAL) 85
TLA1 1 msec (1)
IN1
IN2
OUT
OUT(85)