Panasonic FP Series Programming Manual page 470

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F282_SCAL
The function renders the value y at position x by performing a linear interpolation based on the
Description
neighboring reference points Pw
reference point whose x value is smaller than the input value x, i.e. the function connects the
individual reference points in series and renders the output value y based on the input value x.
The function can be used for:
linearizing measured values, e.g. with non-linear sensors
rendering a heater's flow temperature y in relation to the outside temperature x
etc.
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F282_SCAL (see page 1323)
PLC types
Data types
Variable
Data type
INT
x
DUT
xy_data
INT
y
BOOL
EN
BOOL
ENO
Operands
For
x
y
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
Linearization of 16-bit data
and Pw+1
(xw, yw)
Function
Input value x
The first element of an DUT-type variable that contains the
xy value pairs.
Output value y
Activation of the function (when EN = TRUE, the function is
executed during each PLC cycle)
ENO is set to TRUE as soon the function is executed.
Helpful when cascading function blocks with EN functions.
Relay
WX
WY
WR
WL
-
WY
WR
WL
Set
permanently
for an instant
. In this example, w is the nearest
(xw+1, yw+1)
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
If
 the number of reference points is not
between 2 ... 100, or the x values are not
in ascending order (x1 < x2 < x3 < ...).
Arithmetic instructions
Constant
dec. or hex.
-
469

Advertisement

Table of Contents
loading

Table of Contents