Analysis and Implementation
A calculated titration curve with a modified logarithm base can be fitted in a spreadsheet to a real titration curve from a waste stream exhibiting the characteristics described above. For implementation in a control strategy, it’s more important that the slopes of these titration curves match over the expected range of pH than for the actual curves to match. This takes advantage of the PID initialization capabilities present in most modern DCS systems. In the system studied for this article, the Solver tool in Excel was used to adjust the logarithm base to minimize the squared error of the slopes between the real and calculated titration curves over the pH range of interest. The same technique can be used for primary influent streams that are good candidates for feedforward control.
For integration with PID control, separate characterization function blocks can be set up for the setpoint and process variable of the control loop using the same parameters (Figure 2). For feedforward control using an influent stream, a separate set of parameters would be needed because this stream only represents part of the overall influent. Flow measurements for the influent streams can be used if variable, or a design rate can be used in the characterization function block for streams with flows that don’t very appreciably.
|
FIGURE 2: PID pH CONTROL
|
|
|
To integrate with PID control, separate characterization function blocks can be set up for the setpoint and process variable of the control loop using the same parameters.
|
The overall effect is that the PID acts entirely on ion flow rate, which is linear, instead of pH. The PID block sees only effective ion flow for its setpoint, process variable, and any feedforward input. The operator interface, however, is still in pH units as far as the actual setpoint entry and process variable representation is concerned. Since the PID sees an essentially linear input, there is no longer any need for adaptive gain or gain scheduling. Also, if the pH loop is cascaded to a flow loop for neutralization, then calculation of a process gain for the loop is straightforward.
The PID initialization capabilities of modern DCS systems play an important role in dealing with positional inaccuracies in the calculated titration curve. When the PID is initialized by placing it in a mode higher than manual, the integral contribution is back calculated, and assumes any prior contribution from integral action and feedforward if enabled. This results in bumpless transfer to the higher mode. Proportional action will only result from subsequent changes in setpoint or process variable, and action from any feedforward connection will only result from subsequent changes in the feedforward signal. For this reason the accuracy of the slope of the calculated titration curve is far more important than its positional accuracy.
Precautions need to be taken when tuning this pH control strategy. Although gain adjustment strategies are no longer necessary, tuning needs to be in terms of the ion flow variables (or their percentage of scale) instead of pH. This would apply also to autotuners.
Further Enhancements
Although the technique of linearizing pH by modifying the logarithm base can be applicable to a wide variety of complex waste streams, an enhancement was added to provide more flexibility by accounting for the presence of a single weak acid in significant concentration. This would appear as one flat part of the titration curve, even though there may already be some flattening due to the presence of other acids. Adding a weak acid to the strong acid/base charge balance model provides two additional variables: the weak acid’s fraction in the influent and the dissociation constant, to better match the slopes of more complex real titration curves. This provides some additional flexibility at the cost of a slightly more complex characterization equation in the DCS system. Some examples indicating the wide range of titration curve shapes are shown in Figure 3. In a spreadsheet, these parameters can be varied manually to observe the effect on the calculated titration curve, or a tool such as Excel’s Solver can be used to adjust all three parameters to match the titration curve slopes.
|
FIGURE 3: EASY MODELING
|
|
|
The many titration curve shapes and their parameters on a spreadsheet can be varied manually to observe the effect on the calculated titration curve, or a tool such as Excel’s Solver can be used to adjust all three parameters to match the titration curve slopes.
|
In conclusion, pH control can be made more straightforward by linearizing the pH inputs to the control strategy, which includes the process variable and a feedforward, if present. If this can be done effectively, complex and maintenance-unfriendly gain adjustment strategies can be avoided. Waste streams are often complex mixtures that don’t have the sharply defined titration curve typical of strong acid/base neutralization or the pronounced plateau typical in the titration curves of weak or polyprotic acids. For these streams, simply modifying the logarithm base in the definition of pH to give a reasonably accurate calculated titration curve can be used to linearize the pH input. This pH characterization has only one parameter to be adjusted to fit different waste stream systems.
References:
-
Shinskey, F.G., “pH and pION Control in Process and Waste Streams,” Wiley and Sons, 1973.
-
McMillan, Gregory K. and Cameron, Robert A., “Advanced pH Measurement and Control,” 3rd Edition, ISA, 2005.
Robert C. Kelahan,
a consultant with more than 25 years experience in process control, specializes in advanced control and dynamic simulation. He can be reached at kelahan.rc@sbcglobal.net.