Standard function blocks
359
REAL24_TO_REAL
(10027)
Illustration
Execution time 1.20 µs
Operation Output (O) is the REAL equivalent of the REAL24 input (I).
The output value is limited to the maximum value of the data type range.
Example:
Inputs Input (I): REAL24
Outputs Output (O): REAL
REALn_TO_DINT
(10029)
Illustration
Execution time 6.45 µs
Operation Output (O) is the 32-bit integer equivalent of the REAL/REAL24 input (I). Output O1 is
the integer value and output O2 is the fractional value.
The output value is limited to the maximum value of the data type range.
Example (from REAL to DINT):
When I = 2.04998779297, O1 = 2 and O2 = 3276.
Inputs The input data type is selected by the user.
Input (I): REAL, REAL24
Outputs Output (O1, O2): DINT
REAL24_TO_REAL
90
TLA1 1 msec (1)
I
O
O(90)
I = 0010 0110 1111 1111 1111 1111 0000 0000
Integer value
Fractional value
O = 0000 0000 0010 0110 1111 1111 1111 1111
Integer value
Fractional value
REALn_TO_DINT
(REAL) 91
TLA1 1 msec (1)
I
O1
O1(91)
O2
O2(91)