Panasonic FP Series Programming Manual page 475

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
value 511.
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help.
DUT
In the DUT Pool, the number of reference points and the xy value pairs are declared.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Here the input variable measured_value was declared, corresponding to the type of the DUT
defined above. Assigning the x values and y values was done in the POU header. However, you
can change the x values and y values in the body by assigning a value to the variable, e.g.
Measuredvalues.Y_Values[3] for y3.
Body
When the variable start is set to TRUE, the function is carried out. For the input value at position
x, the output value y is calculated via linear interpolation between the neighboring reference points
stored in the variable measured value.
LD
ST
IF
start
THEN
F283_DSCAL(input_value, measured_value.referencepoints, output_value);
END_IF;
474

Advertisement

Table of Contents
loading

Table of Contents