1Why OPC UA integration in GMP is a data-integrity problem, not just a socket connection.
OPC Unified Architecture (OPC UA) exposes live values from bioreactors, aseptic fillers, autoclaves, lyophilizers, cleanroom SCADA nodes and checkweighers through a standard information model. Yet simply reading a numeric value from an OPC UA server and writing it into an electronic batch record introduces silent failure modes unless the receiving workflow checks four fields defined in the OPC UA specification.
Under 21 CFR 211.68(b), input to and output from computer systems must be checked for accuracy in proportion to complexity and reliability.1 EU GMP Annex 11 section 5 similarly expects built-in checks for correct and secure entry and processing of critical data exchanged electronically between systems.2
| OPC UA specification field | What it actually means | Silent GMP failure if ignored | Spec reference |
|---|---|---|---|
NodeId + server identity | Identifies a node only within one OPC UA server instance | Mapping ns=2;s=Temp across two bioreactors without server/equipment identity merges readings from different vessels | OPC UA Part 3, 8.23 |
StatusCode (Good, Uncertain, Bad) | Communicates measurement quality severity | Recording a stale or sensor-fault Bad numeric payload as an in-process batch temperature; note servers without status support still return Good, so verify behavior with equipment engineering | OPC UA Part 4, 7.114 |
sourceTimestamp vs serverTimestamp | sourceTimestamp is when the field device produced the reading; serverTimestamp is when the server received it | Using server arrival time instead of source time can misalign a sterilization hold or buffer step; under Read, servers that cannot meet maxAge return best-effort older values | OPC UA Part 4, 5.11.2 and 7.115, |
EngineeringUnits property | Optional analog-item metadata stating measurement units | Assuming °C when a PLC exposes °F or assuming bar vs psi because EngineeringUnits is optional and frequently omitted on legacy PLCs | OPC UA Part 8, 5.3.2.26 |
AccessLevel attribute | Declares whether a variable supports read, write or historical access | Relying on an operator account with write access violates read-only separation between batch recording and real-time PLC control | OPC UA Part 3, 5.6.27 |
2Read-only shop-floor network architecture for cloud GxP platforms.
OT security teams rarely allow inbound firewall ports from the public internet into a GMP manufacturing VLAN. The standard defensible architecture places a lightweight edge collector inside the site OT/DMZ boundary with three strict constraints:
- Read-only OPC UA session. The collector connects with a dedicated read-only OPC UA service credential and certificate, inspecting
AccessLevelso the batch-record system can never alter PLC setpoints or interlocks.7 - Outbound HTTPS only. The site computer pushes captured readings outbound over TLS to the cloud GxP platform; no inbound plant firewall openings are needed.
- Explicit outage and staleness handling. When a PLC disconnects or returns a
BadorUncertainStatusCode, the receiving batch record must flag the missing or degraded evidence visibly rather than substituting zero or silently carrying forward a stale reading.
3Worked example: verifying a bioreactor OPC UA temperature and pH read.
Invented for illustration: Solara Biologics links Bioreactor BR-04 (OPC UA server opc.tcp://br04-plc.ot.local:4840) to its electronic batch record phase for inoculation check. Before production release, MSAT, OT and QA execute four verification checks:
| Check | Test condition | Expected GMP record behavior |
|---|---|---|
| Identity and unit lock | Read ns=3;s=BR04.PV.Temp and ns=3;s=BR04.PV.pH | Record stores server URI, NodeId, unit (°C and pH) confirmed against HMI display to 0.1 resolution |
Bad status rejection | Simulate disconnected RTD probe (StatusCode: BadSensorFailure) | Batch step rejects automatic capture, displays sensor fault status and prevents silent zero entry |
| Stale value check | Hold PLC value older than 60 seconds (sourceTimestamp lags read time) | Step flags stale reading and requires investigation or fresh confirmed read before proceeding |
| Outage recovery | Disconnect outbound WAN for 5 minutes during a batch step | Local collector queues or retries cleanly with original sourceTimestamp, creating zero duplicate readings on reconnect |
For dense continuous trends across a multi-day run, pair bounded point reads with historian phase extracts; see our PI Historian batch record workflow and DeltaV process data integration guide.
4How it runs in Seal.
Seal’s OPC UA integration guide captures bounded current readings (value, StatusCode, sourceTimestamp and server/node identity) from on-site equipment into your electronic batch records without writing back to the PLC. Explore step-by-step industrial and laboratory patterns in Seal’s integration workflows or connect your equipment team to review your specific PLC tags via book a demo.
Open the whole screen in a new tabAQuestions and answers
Does OPC UA require opening inbound firewall ports to the GMP plant network?
No. An on-site edge collector reads the local OPC UA server inside the OT or DMZ network and transmits captured readings outbound over TLS HTTPS to the cloud GxP system, avoiding inbound exposure.
Can we rely on OPC UA StatusCode Good to prove a sensor reading is valid?
Only after verifying the specific PLC or OPC UA server actually propagates sensor diagnostics. Under OPC UA Part 4, a server that does not implement status reporting still returns Good, so confirm fault behavior during OQ testing.
Why should a GMP record store sourceTimestamp instead of only serverTimestamp?
sourceTimestamp reflects when the field instrument or PLC produced the measurement, whereas serverTimestamp reflects when the OPC UA server received or sampled it. Comparing sourceTimestamp against the batch step window prevents stale values from being accepted as live.
Should an eBR write setpoints back to a PLC over OPC UA?
Start with read-only data capture so real-time equipment control and safety interlocks remain strictly inside the qualified PLC or DCS. Any bidirectional recipe download carries higher risk and requires dedicated validation and interlock verification.
References7 sources
References
- 121 CFR 211.68, Automatic, mechanical, and electronic equipment, paragraph (b), eCFR. https:/
/ www. ecfr. gov/ current/ title- 21/ section- 211. 68 (read 4 December 2026) - 2EudraLex Volume 4, Annex 11: Computerised Systems, European Commission, January 2011, section 5. https:/
/ health. ec. europa. eu/ system/ files/ 2016- 11/ annex11_ 01- 2011_ en_ 0. pdf (read 4 December 2026) - 3OPC UA Part 3: Address Space Model, section 8.2 NodeId, OPC Foundation, v1.05. https:/
/ reference. opcfoundation. org/ Core/ Part3/ v105/ docs/ 8. 2 (read 4 December 2026) - 4OPC UA Part 4: Services, section 7.11 DataValue, OPC Foundation, v1.05. https:/
/ reference. opcfoundation. org/ Core/ Part4/ v105/ docs/ 7. 11 (read 4 December 2026) - 5OPC UA Part 4: Services, section 5.11.2 Read, OPC Foundation, v1.05. https:/
/ reference. opcfoundation. org/ Core/ Part4/ v105/ docs/ 5. 11. 2 (read 4 December 2026) - 6OPC UA Part 8: DataAccess, section 5.3.2.2 EngineeringUnits, OPC Foundation, v1.05. https:/
/ reference. opcfoundation. org/ Core/ Part8/ v105/ docs/ 5. 3. 2. 2 (read 4 December 2026) - 7OPC UA Part 3: Address Space Model, section 5.6.2 Variable Attributes (AccessLevel), OPC Foundation, v1.05. https:/
/ reference. opcfoundation. org/ Core/ Part3/ v105/ docs/ 5. 6. 2 (read 4 December 2026)