Project: Biopharmaceutical filtration automation, August 8, 2005


August 9, 2005

Over the past week we have been involved with process simulations to allow developers to run sequences, test alarm conditions, execute recipes, and generate operational data that can be used for development of data analysis applications for this project. Historically, we have developed simulations inside the control system. Recently, however, we have developed a simple simulation application in VB.Net that uses OPC to manipulate module parameters based upon a simulation calculation defined by the user. The application reads user-defined OPC inputs, performs a simulation calculation, and writes to OPC outputs based upon the calculation results. Calculations are written in VB Script and the entire simulation is saved to disk as an XML file. However the simulation is written, the purpose is not to verify proper I/O connectivity, but verify software functionality of control modules, interlocks, graphics, equipment sequences, phases, and recipes.

We always parameterize simulations that allow us to speed up or slow down the response. For this process, a typical batch may take two days—much too long for effective testing. We'll tune our simulation so a batch can be filtered in a few minutes or as long as a couple of hours.

Liquid flows are the easiest of analog processes to simulate. A flow controller PID output can be used to represent the flow transmitter signal after proper range scaling between the two values. Personally, I like to add a simple non-linear relationship to make the simulation a bit more life-like. The value is calculated as the SIN of the PID output rescaled between 0 and PI/2. The result is a value between 0 and 1 that follows a non-linear path.

Simulate a discrete valve by adding a time delay after a change of state from the valve control module output. The time delay should be easily configurable to permit simulating valve failures or slow acting valves. It may be tempting to have a single time constant for all valves, but eventually you'll want different values for different valves, therefore I recommend on having a unique time delay for each individual valve.

Temperature simulations are also relatively simple to simulate by calculating a temperature increment for each simulation scan. The increment is a number to add or subtract from the current temperature to create the new temperature value. On each scan, the temperature is increased or decreased by an increment. The increment should generally be the combination of multiple increments, each representing a process condition that influences temperature. For example, nearly every temperature simulation we include an ambient effect that will eventually bring the temperature to ambient conditions if no other driving force is active. The increment can be calculated as follows:

Da = Ka x (Tc– Ta)


  • Da is an incremental change to the process temperature caused by ambient conditions;

  • Ka is the relative ambient driving force (a parameter to be tuned by trial and error to get a realistic ambient effect relative to other temperature effects);

  • Tc is the current process temperature; and

  • Ta is the ambient temperature which can be a static value of say 20 °C.

The same calculation will be used for any other process condition that affects the process temperature such as jacket heating/cooling with steam or glycol. Each process effect will have a unique Ka and Ta that can be tuned to impart the desired response.

Next week we’ll address HMI aspects of this project.

No comments
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Additive manufacturing benefits; HMI and sensor tips; System integrator advice; Innovations from the industry
Robotic safety, collaboration, standards; DCS migration tips; IT/OT convergence; 2017 Control Engineering Salary and Career Survey
Integrated mobility; Artificial intelligence; Predictive motion control; Sensors and control system inputs; Asset Management; Cybersecurity
Featured articles highlight technologies that enable the Industrial Internet of Things, IIoT-related products and strategies to get data more easily to the user.
This article collection contains several articles on how automation and controls are helping human-machine interface (HMI) hardware and software advance.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Mobility as the means to offshore innovation; Preventing another Deepwater Horizon; ROVs as subsea robots; SCADA and the radio spectrum
Future of oil and gas projects; Reservoir models; The importance of SCADA to oil and gas
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me