PCC-IV Instruction Manual (Rev. 0.1)
Page 6-21
Section 6
– Blockware Functions
Technical Reference
F52
[WSUM] Weighted Sum
Function
WSUM
computes the following "Weighted Sum" equation:
Output = ((Input A) * K1) + ((Input B) * K2) + ((Input C) * K3) + K4
Configured with three Inputs and using the default parameters,
WSUM
adds the three Inputs.
WSUM
does not
require three active Inputs, connect un-used Inputs to dummy Block 0 (
A0
function, or 0%). Constants K1 through
K4 allow
WSUM
to be used for addition, subtraction, averaging, and scaling.
WSUM
Examples:
Application
Desired
equation
Actual equation
K1
K2
K3
K4
Addition
A + B
(A*1.000)+(B*1.000)+((0%)*1.000)+0.00
1.000
1.000
n/a
0.00
Addition
A + B + C
(A*1.000)+(B*1.000)+(C*1.000)+0.00
1.000
1.000
1.000
0.00
Subtraction
A - B
(A*1.000)+(B*-1.00)+((0%)*1.000)+0.00
1.000
-1.000
n/a
0.00
Averaging
(A + B) / 2
(A*0.500)+(B*0.500)+((0%)*1.000)+0.00
0.500
0.500
n/a
0.00
Averaging
(A+B+C) / 3
(A*0.333)+(B*0.333)+(C*0.333)+0.00
0.333
0.333
0.333
0.00
Scaling:
0-100% xmtr
Input is equivalent
to 50-75%
setpoint
0.25A + 50
(A*0.25)+(B*1.00)+((0%)*1.00)+50.00
0.250
n/a
n/a
50.00
Addition with
Scaling
(Weighted Sum)
A: 0-100% = 0-50
gpm
B: 0-100% = 0-
150 gpm
C: 0-100% = 0-
200 gpm
Output: 0-100% =
0-400 gpm
0.125A +
0.375B +
0.500C
(A*0.125)+(B*0.375)+(C*0.500)+0.00
0.125
0.375
0.500
0.00
Inputs /- 327% are acceptable, and the Block Output is limited to +/- 327%.
---------------------------------------------------------------------------------------------
NAME: WSUM SINGLE USE FUNCTION: N OUTPUT TYPE: A
---------------------------------------------------------------------------------------------
Input Type Description Notes
_____________________________________________________________________________________________
1 A A INPUT
2 A B INPUT
3 A C INPUT
Parameter Description Default Max Min Code Notes
_____________________________________________________________________________________________
1 K1 1.000 10.000 -10.000 2
2 K2 1.000 10.000 -10.000 2
3 K3 1.000 10.000 -10.000 2
4 K4 0.00 199.99 -199.99 2