
L-force | PLC Designer
PLC Designer Libraries
DMS 3.2 EN 02/2011 TD29 663
Block in FBD: Example: Integration of a linear function:
LIN_TRAFO
This function block (util.lib. transforms a REAL-value, which lies in a value range
defined by a lower and upper limit value, to a REAL-value which lies correspondingly in
another range also defined by a lower and upper limit. The following equation is basis
of the conversion:
(IN - IN_MIN) : (IN_MAX - IN) = (OUT - OUT_MIN) : (OUT_MAX - OUT)
Input variables:
Variable Data type Description
IN REAL Input value
IN_MIN REAL Lower limit of input value range
IN_MAX REAL Upper limit of input value range
OUT_MIN REAL Lower limit of output value range
OUT_MAX REAL Upper limit of output value range
Output variables:
Variable Data type Description
OUT REAL Output value
ERROR BOOL Error occurred: TRUE, if IN_MIN = IN_MAX, or if IN is outside of the
specified input value range
Kommentare zu diesen Handbüchern