SUM_W: Summer
Original instructions
Function description
The function performs the weighted summation of 3 numerical input variables according to the underlying formula.
EN and ENO can be configured as additional parameters.
Formula
The function SUM_W operates as follows:
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD InputValue1
SUM_W InputValue2, InputValue3, Parameters
ST Result
Representation in ST
Representation:
Result := SUM_W (InputValue1, InputValue2, InputValue3,
                 Parameters);
Parameter description SUM_W
Description of input parameters:
Parameter
Data type
Description
InputValue1 bis InputValue3
Numerical variables to be processed
Parameters
Parameter
Description of output parameters:
Parameter
Data type
Description
Result
REAL
Result of the calculation
Parameter description Para_SUM_W
Data structure description
Element
Data type
Description
k1 to k3, c1
Calculation coefficients
Runtime error
An runtime error appears if a non floating point value is recorded or if there is a problem with a floating point calculation. The output Result will not be altered.
NOTE: For a list of all the block error messages and values, see Common Floating Point Errors.