Function manipulators, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 673

Advertising
background image

L-force | PLC Designer

PLC Designer Libraries



DMS 3.2 EN 02/2011 TD29

671

The function generator is again set to 0 as soon as RESET=TRUE.

Example in FBD:

19.2.6

Function Manipulators...

CHARCURVE

Provided by util.lib.

This function block serves to represent values, piece by piece, on a linear function:

IN of the type INT is fed with the value to be manipulated. The BYTE N designates the
number of points which defines the presentation function. This characteristic line is
then generated in an ARRAY P[0..10] with P of the type POINT which is a structure
based on two INT values (X and Y).

The output consists of OUT of the type INT, the manipulated value and BYTE ERR,
which will indicate an error if necessary.

The points P[0]..P[N-1] in the ARRAY must be sorted according to their X values,

otherwise ERR receives the value 1. If the input IN is not between P[0].X and P[N-1].X,
ERR=2 and OUT contains the corresponding limiting value P[0]. Y or P[N-1].Y.

If N lies outside of the allowed values which are between 2 and 11, then ERR=4.

Advertising