Panasonic FP Series Programming Manual page 473

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
F283_DSCAL
The function renders the value y at position x by performing a linear interpolation based on the
Description
neighboring reference points Pw(xw, yw) and Pw+1(xw+1, yw+1). In this example, w is the
nearest 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 s.
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.
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.
Availability of F283_DSCAL (see page 1323)
PLC types
Data types
Variable
Data type
DINT
x
DUT
xy_data
DINT
y
BOOL
EN
BOOL
ENO
Operands
For
x
y
472
Linearization of 32-bit data
Function
Input value x
The first element of a 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
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
Constant
dec. or hex.
-

Advertisement

Table of Contents
loading

Table of Contents