← Back to Blogs & Publications ProChem Software Industrial Control Room

ProChem: Closing the Loop Between Measurement and Control

What has to happen between a spectrum leaving the analyzer and a set point changing in the PLC: result validation, feedback and feedforward structure, limits and alarms, and the record that lets every decision be reconstructed — drawn from the PAT and ICH guidance, control-engineering texts and the alarm-management standard.

A measurement is not yet a control action

The FDA's PAT guidance describes process analytical technology as a system for designing, analysing and controlling manufacturing through timely measurements of critical quality and performance attributes, made during processing rather than afterwards [1]. The word that matters is controlling: a near-infrared analyzer that reports composition at every measurement cycle has produced only the first link of a chain. ICH Q8(R2) and ICH Q10 define a control strategy as a planned set of controls, derived from product and process understanding, that includes in-process controls together with the associated methods and frequency of monitoring and control [2][3]. In that framing the analyzer is one element; the validity checks on its result, the limits, the action taken and the record of that action are the rest. This article follows the chain from spectrum to actuator and asks what each link needs in order to be trusted. The vocabulary comes from chemical and pharmaceutical regulation, but the engineering is the same on a feed mill or a dairy line.

From spectrum to a result that may be acted on

The first requirement is that the number leaving the analyzer is a valid one. ASTM D6122 makes the point explicitly for multivariate infrared analyzers: a sample's spectrum must be shown to fall within the population used to build the calibration model, because applicability cannot be assumed, and a result computed from an outlying spectrum is invalid [4]. The practice also separates verifying that the instrument is performing from verifying that the model applies to the sample, and treats both as continuing checks rather than a one-off validation [4]. Vargas et al. describe how this looks on a commercial continuous tablet line: a diagnostic test confirms that powder is actually present at the probe window when a spectrum is taken, a PCA model checks that the blend resembles the calibration blends, and only then does the PLS model report a concentration; the three steps were integrated in one software platform that collected spectra and applied the models in real time, and during a 28-hour run of 12,633 spectra the PCA check detected an equipment malfunction that a concentration value alone would not have exposed [5].

Kourti argues that the full value of a real-time analyzer appears when its output is combined with the ordinary process measurements (temperature, flow, pressure) in a multivariate monitoring scheme, which improves the detection of abnormal conditions as well as process understanding [6]. The control system should therefore receive a status along with the composition value: valid or not, and if not, why.

Feedback, feedforward and the supervisory layer

Once a valid result exists, the question is what structure acts on it. Åström and Murray draw the basic distinction: feedback measures the output and corrects after a deviation has appeared, which makes it robust to uncertainty in the process model, whereas feedforward measures a disturbance and acts before it reaches the output, which requires a model of how that disturbance propagates [7]. Seborg et al. treat the two as complementary and describe the usual combination, feedforward from a measured upstream disturbance with feedback trim on the controlled variable, together with ratio and cascade configurations [8]. An NIR analyzer at raw-material intake is a feedforward sensor for the blending or dosing step downstream; the same analyzer on the product stream is a feedback sensor.

In practice the analyzer rarely drives a valve directly. Process-control texts describe a hierarchy in which fast regulatory loops in the PLC or DCS hold flows, levels and temperatures while a slower supervisory layer adjusts their set points [8]. A composition result that arrives once per measurement cycle, with the dead time of sampling and analysis added, belongs in that outer layer: cascade control, where the analyzer loop sets the set point of an inner flow loop, is the natural arrangement, and the time delay it introduces has to be accounted for in the design and tuning of the outer loop [8]. Singh et al. show, in a flowsheet simulation of a continuous granulation line, how nested PID loops in cascade and ratio schemes can be arranged for composition, granule and tablet attributes [9]. The PAT guidance adds a consequence for batch operation: within its framework a process end point is the achievement of the desired material attribute, not a fixed time [1]. How the set-point change is transported to the controller, and how the inner loop is tuned, are covered in the companion articles on PLC and SCADA integration and closed-loop dosing valves.

Limits, alarms and the failing result

Comparing a result against a specification limit is simple; deciding what the comparison should trigger is not. ANSI/ISA-18.2 defines an alarm as an audible or visible indication to the operator of an equipment malfunction, process deviation or abnormal condition that requires a timely response, and it requires a documented alarm philosophy against which every proposed alarm is rationalised: justified, documented with its set point, cause, consequence and operator action, then prioritised and classified [10]. Seborg et al. place alarm management within the layers of protection of a plant and treat it separately from abnormal-event detection [8]. For an analyzer the implication is that an out-of-specification result, an invalid-spectrum flag and an instrument fault are three different events with three different responses, and that only those requiring an operator action should become alarms.

The regulatory guidance on real-time release testing is instructive even outside pharmaceuticals. EMA's guideline states that when RTRT results fail or trend toward failure, the failure must be investigated and the release decision made on the basis of that investigation rather than by falling back on end-product testing; it also notes that the strategy may rest on process parameters, product attributes or both, and must be grounded in an understanding of how they relate [11]. Three practices follow:

  • A result reaches the controller only with a validity status attached; what happens to an invalid result (hold the last good value, or hand the loop back to the operator) is decided and written down in advance [4][5].
  • Specification limits, control limits and alarm set points are not the same number; each is justified separately, and alarms follow the ISA-18.2 philosophy so that operators are not flooded [10].
  • The regulatory loop in the PLC must behave sensibly if the supervisory set point stops updating; that is the point of the layered structure [8].

The record: audit trail and knowledge

Every step in the chain should be reconstructable afterwards. FDA's data-integrity guidance defines an audit trail as a secure, computer-generated, time-stamped electronic record that allows the course of events relating to the creation, modification or deletion of a record to be reconstructed, and it stresses that a data value is meaningless without its metadata: time stamp, user, instrument, units, the model used [12]. For an analyzer-driven loop that means the spectrum, the model version, the validity flags, the reported value, the limit in force and the set point sent are stored together, not in separate systems that cannot be joined later. ICH Q10 treats the systematic acquisition and analysis of such process data as knowledge management feeding continual improvement [3], and the PAT guidance describes continuous learning through data collection over the product life cycle as part of its framework [1].

Where ProChem sits in the loop

USTECH's ProChem software takes the results from its NIR analyzers, the inline ProLine2550 and ProLine17EC, shows them in real time, exports reports and passes them to the plant PLC over an Ethernet-based HTTP interface; the calibration models it runs are built in caliX. In the chain described above, ProChem therefore delivers the result; the limits, the alarm logic and any set-point change stay in the plant's PLC or control system. Which parameters can carry a control action, how the validity checks and limits are configured and where the analyzer sits in the control hierarchy are determined in a feasibility study with your own samples and your own process.

References

USTECH Innovations Logo

Discuss this application for your process

Our application team can walk through the method, share the supporting literature and discuss how it applies to your process.

Contact Us

Read Next

How NIR Analyzers Integrate with PLC and SCADA Systems: A Practical Overview
GUIDE

How NIR Analyzers Integrate with PLC and SCADA Systems: A Practical Overview

The integration options for inline NIR results: field protocols from the current loop to OPC UA, the value-status-timestamp record, where latency comes from, and how alarms, historians and cybersecurity are handled.

Read Guide
The Power of In-Line Analysis: A Paradigm Shift in Quality Control
ARTICLE

The Power of In-Line Analysis: A Paradigm Shift in Quality Control

What the shift from laboratory-based, reactive quality control to in-line measurement and control actually involves: the PAT framework, ICH vocabulary, real-time release testing and multivariate control loops.

Read Article