10.4.6.1 Parameters of the Truncate Function
Input/ Output
Choices
Description
enable flow
When the function is enabled, the conversion is
performed.
IN
R, AI, AQ, constant
IN contains a reference for the real value to be
truncated.
ok
flow, none
The OK output is energized when the function is
performed without error, unless the value is out of
range or IN is NaN.
Q
R, AI, AQ
For integer only: I, Q, M,
T, G
Q contains the truncated INT or DINT value of the
original value in IN.
10.4.6.2 Example
In the example, the displayed constant is truncated and the integer result 562 is placed in
%T0001.
Instruction Set Reference GFK-1503E User Manual 161
For public disclosure