EasyManuals Logo

Panasonic FP Series User Manual

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #474 background imageLoading...
Page #474 background image
Arithmetic instructions
473
Part III FP Instructions
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the number of reference points is not
between 2 ... 100, or the x values are not
in ascending order (x1 < x2 < x3 < ...).
Limitations of the output value y:
If the input value x is smaller than the x-coordinate of the first reference point (P1: x < x1), the
output y is set to the first reference point’s y-coordinate (output y = y1, horizontal dashed line in the
graph’s upper left corner).
If the input value x is greater than the x-coordinate of the last reference point (P8: x > x8), the
output y is set to the last reference point’s y-coordinate (output y = y8, horizontal dashed line in the
graphic’s upper right corner).
DUT for the xy value pairs (reference points P1, P2, ...):
The reference points (P1, P2, ...) are copied to the function via a DUT-type variable that contains
the number of reference points and the xy value pairs (number; x1, x2, ...; y1, y2; ...).
Structure of the DUT:
1. Entry: Variable of the data type INT that contains the number of reference points.
The number of reference points (xy value pairs) can be anywhere between 2 ... 100. In the graph, eight reference points (P1 ... P8) are used.
2. Entry: Variable of the data type ARRAY [0..z] OF DINT that contains the x
values.
Here
z
represents the place marker for the number of reference points (see entry 1).
3. Entry: Variable of the data type ARRAY [0..z] OF DINT that contains the y
values.
Here
z
represents the place marker for the number of reference points (see entry 1).
Important information:
x values
The x values have to be entered in an ascending order (x1 < x2 < x3 < ...). If the x values are the
same (e.g. x2 = x3 = x4) the reference points P2(x2,y2) and P3(x3,y3) are ignored.
Overflow of the function:
In order to avoid an overflow in the calculation, neighboring reference points must fulfill the
following conditions:
|ya - yb| < 2147483647
|x - xb| < 2147483647
|(ya - yb)*(x - xb)| < 2147483647
|xa - xb| < 2147483647
Accuracy of the calculation:
This function can only process whole numbers. Numbers that follow the decimal point are cut out
when calculating the value y. For example, if at the position x, y = 511,13, the function returns the
Error flags

Table of Contents

Other manuals for Panasonic FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Panasonic FP Series and is the answer not in the manual?

Panasonic FP Series Specifications

General IconGeneral
MountingDIN rail
TypePLC
Communication InterfaceRS-232, RS-485, Ethernet (depending on model)
Input Voltage100-240V AC or 24V DC (depending on model)
Output TypeRelay, Transistor
I/O PointsVaries by model
Operating Temperature0°C to 55°C
DimensionsVaries by model
WeightVaries by model

Related product manuals