Panasonic FP Series Programming Manual page 472

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

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
In the POU header, all input and output variables are declared that are used for programming this
function.
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.X_Values[1] for x.
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 of the neighboring reference points stored in
the variable measured_value.
LD
ST
IF
start
THEN
F282_SCAL(input_value, measured_value.referencepoints, output_value);
END_IF;
Arithmetic instructions
471

Advertisement

Table of Contents
loading

Table of Contents