Standard function blocks
315
Operation The output (O) value is a 32-bit integer value of the 16-bit integer input (I) value.
Inputs Input (I): INT
Outputs Output (O): DINT
REAL_TO_REAL24
(10026)
Illustration
Execution time 1.35 µs
Operation Output (O) is the REAL24 equivalent of the REAL input (I).
The output value is limited to the maximum value of the data type.
Example:
Inputs Input (I): REAL
Outputs Output (O): REAL24
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:
IO
32767 32767
-32767 -32767
00
REAL_TO_REAL24
89
TLA1 1 msec (1)
I
O
O(89)
I = 0000 0000 0010 0110 1111 1111 1111 1111
Integer value
Fractional value
O = 0010 0110 1111 1111 1111 1111 0000 0000
Integer value
Fractional value
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