Standard function blocks
356
DINT_TO_REALn_SIMP
(10022)
Illustration
Execution time 6.53 µs
Operation The output (O) is the REAL/REAL24 equivalent of the input (I) divided by the scale input
(SCALE).
Error codes indicated at the error output (ERRC) are as follows:
Example (from DINT to REAL24):
When I = 205 and SCALE = 100, I/SCALE = 205 /100 = 2.05 and O = 2.04999.
Inputs Input (I): DINT
Scale input (SCALE): DINT
Outputs The output data type is selected by the user.
Output (O): REAL, REAL24
Error output (ERRC): DINT
DINT_TO_REALn_SIMP
(REAL) 86
TLA1 1 msec (1)
I
SCALE
O
O(86)
ERR C
ERR C(86)
Error code Description
0No error
1001 The calculated REAL/REAL24 value exceeds the minimum value of
the selected data type range. The output is set to the minimum value.
1002 The calculated REAL/REAL24 value exceeds the maximum value of
the selected data type range. The output is set to the maximum
value.
1003 The SCALE input is 0. The output is set to 0.
1004 Incorrect SCALE input, i.e. the scale input is < 0 or is not a factor of
10.