Panasonic FP Series Programming Manual page 689

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
POU header
All input and output variables used for programming this function have been declared in the POU
header.
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.
Body
When the variable start is set to TRUE, the function is carried out. It converts the floating point
value -1.234 into the whole number value -2, which is transferred to the variable output_value at
the output. Since the whole number may not exceed the floating point value, the function rounds
down here.
LD
ST
When programming with structured text, enter the following:
IF
start
THEN
F327_INT(input_value, output_value);
END_IF;
688

Advertisement

Table of Contents
loading

Table of Contents