Description
Original instructions
Function description
This function block can be used to change the value range of a numerical variable.
EN and ENO can be configured as additional parameters.
Formula
The function block carries out the following calculation:
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL SCALING_Instance (IN:=DigitalVariable, 
    PARA:=Parameters, OUT=>ScalingOutput, 
    STATUS=>StatusWord)
Representation in ST
Representation:
SCALING_Instance (IN:=DigitalVariable, PARA:=Parameters, 
    OUT=>ScalingOutput, STATUS=>StatusWord) ;
Parameter description SCALING
Input parameter description:
Parameter
Data type
Meaning
IN
Numerical variable to be scaled
PARA
Parameter
Output parameter description:
Parameter
Data type
Meaning
OUT
REAL
Scaled output value
STATUS
Status word
Parameter description Para_SCALING
Data structure description
Element
Data type
Meaning
in_min
Lower limit of the input scale
in_max
REAL
Upper limit of the input scale
out_min
REAL
Lower limit of the output scale
out_max
REAL
Upper limit of the output scale
clip
"1": the value of the OUT output is limited by out_min and out_max.