Professional Documents
Culture Documents
Linear Calibration Using SETPOINT and SPAN: William Sims, Controls Principal Engineer September 22, 2011 (v1.0)
Linear Calibration Using SETPOINT and SPAN: William Sims, Controls Principal Engineer September 22, 2011 (v1.0)
1
The intent of the calibration procedure is to establish a linear relationship across the entire range
of target dispense quantities. The calibration procedure compensates for deviations in the system
introduced by the physical properties of the machine. The algorithm used is derived from the
slope-intercept form (y=mx+b) where a target value (x) is entered by the operator, and the actual
value (y) is produced by the machine. Setpoint (b) and span (m) values are used to compensate
for error.
The procedure starts by determining the target low (TL) and target high (TH) values that establish
the operable range of the machine. The TL value should be 10% below the smallest target charge
size and TH should be 10% above the largest charge size.
TH
TL
Target
1 2
Figure 1
After the target low and target high quantities have been established, collect three samples from
the machine at the low and high target points. Average each set of values to establish an average
actual low (AL) and average actual high (AH) value. The Figure 2 shows the target and actual
values charted.
Actual AH
TH
AL
TL
Target
1 2
Figure 2
2
Figure 2 represents the amount of deviation in the system between the target values that you are
trying to achieve and actual values that the machine is producing. Correcting this deviation is a
two step process. The SPAN factor is used to change the slope of the line making the two lines
parallel. The SETPOINT factor is used to offset the actual line so that both the actual and target
are at the same position.
Actual
AH1
TH
AL1
TL
Target
1 2
Figure 3
Use the following formula and the values represented in Figure 1 to generate a SPAN factor.
SPAN factor = ( AH - AL ) / ( TH - TL )
NOTE: To achieve greater accuracy, the SETPOINT factor should be calculated by collecting
additional samples at the target high and low values.
Formula for calculating SETPOINT with new sample values (Empirical Method); shown in
Figure 3.
SETPOINT factor = [ ( TH – AH1 ) + ( TL- AL1 ) ] / 2
Formula for calculating SETPOINT with original sample values (Theoretical Method); shown in
Figure 2.
SETPOINT factor = [ ( TH – ( AH / SPAN ) ) + ( TL- ( AL / SPAN ) ) ] / 2
3
After the SETPOINT value is entered. The two lines on the graph should be at the same position
as shown in the Figure 4.
Actual
Target
1 2
Figure 4
Example:
Target Low (TL) = 300 grams
Target High (TH) = 2000 grams
SPAN factor = ( AH - AL ) / ( TH - TL )
SPAN factor = ( 2000.7 – 295.5 ) / ( 2000 - 300 ) = 1705.2 / 1700 = 1.003
SPAN factor = 1.003
Formula for calculating SETPOINT with new sample values (Empirical Method).
SETPOINT factor = [ ( TH – AH1 ) + ( TL- AL1 ) ] / 2
SETPOINT factor = [ ( 2000 – 1994.6 ) + ( 300 - 294.6 ) ] / 2 = 5.4
SETPOINT factor = 5.4
Formula for calculating SETPOINT with original sample values (Theoretical Method).
SETPOINT factor = [ ( TH – ( AH / SPAN ) ) + ( TL- ( AL / SPAN ) ) ] / 2
SETPOINT factor = [ ( 2000 – ( 2000.7 / 1.003 ) ) + ( 300- ( 295.5 / 1.003 ) ) ] / 2
SETPOINT factor = [ ( 2000 – 1994.6 ) + ( 300 - 294.6 ) ] / 2 = 5.4
SETPOINT factor = 5.4
Proof
Target = (Actual / Span) + Setpoint
300 = (295.5 / 1.003) + 5.4 or 2000 = (2000.7 / 1.003) + 5.4
4
Deriving the Equation
When calibrating the machine, the Target and Actual values are used to calculate the setpoint and
span values. When the flow meter is controlling the output, the Target is the amount that is
expected from the machine and the Actual is what the machine dispensed when the Target was
requested. Based on the calibration method, the following formula is used to achieve the Target
using the Actual with the calculated setpoint and span values.
Since the “Actual” used in the equation is the result of the performance of the machine, we solve
for Actual to derive the equation to compensate the value being dispensed.
The “Actual” becomes our Actual Dispensed value and the “Target” is the (Pulses / K-Factor)
value. After calibrating the value from the flow meter, the Actual Dispensed should reflect what
is being dispensed from the flow meter. The Actual Dispensed value can then be used to
compare with the requested dispense amount when controlling the amount of fluid dispensed.
When using a device to monitor the flow, the device must be calibrated to read what is actually
being dispensed. The Target is the verification value on the scale and the Actual is the value the
device is displaying.