Conversion instructions
692
Part III FP Instructions
In this example, the input variable input_value is declared. However, you can write a constant
directly at the input contact of the function instead.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
The value 1234.888 is assigned to the variable input_value. When the variable start is set to
TRUE, the function is carried out. It rounds down the input_value after the decimal point and
returns the result (here: 1234.000) at the variable output_value.
LD
ST
When programming with structured text, enter the following:
input_value:=1234.888;
IF start THEN
F333_FINT(input_value, output_value);
END_IF;