Configuring a pH Control System using National Instruments Products
Overview
Most process plants generate a wastewater effluent that must be neutralized prior to discharge or reuse. Consequently, pH control is needed in just about every process plant, and yet a large percentage of pH loops perform poorly. Results are inferior product quality, environmental pollution, and material waste. With ever increasing pressure to improve plant efficiency and tighter regulations in environmental protection, effective and continuous pH control is highly desirable.
CyboSoft, a NI Alliance Partner in Rancho Cordova, California offers an innovative Model-Free Adaptive (MFA) control solution for controlling pH processes without having to build process models and retune controller parameters. The MFA pH controller can effectively control a wide range of pH processes within the full pH range. It is useful for wastewater neutralization and also enables automatic control of acid or alkaline concentration, both of which are critical quality variables for the chemical process industry.
Leveraging National Instruments LabVIEW Real-Time development environment, the embedded MFA pH controller can run in a PC or be downloaded into NI’s FieldPoint distributed I/O or PXI instruments.
Table of Contents
Challenges in pH Control
A strong-acid-strong-base pH process is highly nonlinear. The pH value versus the reagent flow has a logarithmic relationship. Away from neutrality, the process gain is relatively small. Near neutrality where pH=7, the process gain can be a few thousand times higher. It is impossible for a fixed controller like PID to effectively control this process. In practice, most pH loops are in a “bang-bang” type of control with pumps cycling on and off, which causes large oscillations. Since acid and caustic neutralize each other, over-dosing acid and caustic is prohibitively expensive. Statistics show that a poorly controlled pH process can cost tens of thousands of dollars in chemical usage each month, not counting the penalties imposed by violating EPA or local government discharge codes.
MFA pH Controller vs. PID Controller
The following trends in LabVIEW show the MFA pH controller (top) is able to control the pH in its full range when the pH setpoint is changed from 7 to 12 and back to 7. PID (bottom) is either sluggish or oscillating.

MFA pH Controller Configuration in LabVIEW
As shown in the following bitmap, one can easily enter Break Point A and B to define the estimated shape of the titration curve of the pH process. Then the MFA controller gain Kc for the flat portion and steep slope can be entered. For example, the controller gain for the flat portion is set to1 for a strong-acid-strong-base pH process. The estimated gain for the steep slope can then be set to 0.001, which is 1000 times smaller. Due to the adaptive capability of the MFA pH controller, the shape of the titration curve does not have to be accurately estimated, and, in actual applications, the shape can vary in real-time. Lastly, the flow rate and the pH value of the inflows may vary significantly, and even with these large disturbances, the MFA pH controller will be effective.

This user-friendly and robust solution can be easily implemented. No special knowledge or experience with advanced control or process modeling is required. Truly automated production operations can be achieved by using NI’s FieldPoint and CyboSoft’s embedded MFA pH controllers. Difficult pH loops can be effectively controlled and immediate savings in chemical reagents and elimination of violation penalties will be realized.
Software
The following table lists the required embedded MFA control software to be ordered from CyboSoft. A SISO (single-input-single-output) MFA controller can be configured as one of the following MFA controllers.
· SISO MFA to replace PID to eliminate manual tuning,
· Nonlinear MFA to control nonlinear processes,
· MFA pH controller to control pH processes,
· Feedforward MFA to deal with measurable disturbances,
· Anti-delay MFA to control processes with large time delays, and
· Robust MFA to protect the process variable from running outside certain boundaries.
CyboSoft Part Number | Product Description |
CLP-01-10 | 1-10 SISO MFA Controller |
FieldPoint Based Remote I/O Configuration
NI Part Number | Product Description |
| 777517-00 | FP-1000 RS232/RS485 Network Interface for FieldPoint |
| 777519-01 | FP-TB-1 Universal Terminal Base |
| 777518-600 | FP-AIO-600 8 Channel Combination Analog Input/Output Module |
| 777567-01 | PS-1 Power Supply 120 VAC input, 20vdc 0.8 Amps Output |
FieldPoint Based Controller Configuration
NI Part Number | Product Description |
| 777792-21 | FP 2010 LabVIEW RT Network Module, Expanded Memory |
| 777519-01 | FP-TB-1 Universal Terminal Base |
| 777518-300 | FP-DI 300 8 Channel 24vdc Discrete Input Module |
| 777518-600 | FP-AIO-600 8 Channel Combination Analog Input/Output Module |
| 777585-01 | PS-3 Power Supply 120vac Input, 13.8VDC 4 amp Output |
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
