Skip to main content

How do you integrate OPC UA equipment into GMP batch records?

Integrating OPC UA equipment into GMP batch records requires resolving every reading by server endpoint and NodeId, inspecting StatusCode severity before accepting a value, capturing both sourceTimestamp and engineering units and keeping the plant-to-cloud bridge read-only over outbound HTTPS. Under 21 CFR 211.68(b) and EU GMP Annex 11 section 5, automated data transfer replaces error-prone manual transcription only when accuracy, quality flags and network-outage behavior are verified.Checked against its sources on 4 December 2026. How these answers are made

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

Table 1. Core OPC UA data-model attributes that must be verified before linking equipment readings to GMP records.
OPC UA specification fieldWhat it actually meansSilent GMP failure if ignoredSpec reference
NodeId + server identityIdentifies a node only within one OPC UA server instanceMapping ns=2;s=Temp across two bioreactors without server/equipment identity merges readings from different vesselsOPC UA Part 3, 8.23
StatusCode (Good, Uncertain, Bad)Communicates measurement quality severityRecording 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 engineeringOPC UA Part 4, 7.114
sourceTimestamp vs serverTimestampsourceTimestamp is when the field device produced the reading; serverTimestamp is when the server received itUsing 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 valuesOPC UA Part 4, 5.11.2 and 7.115,4
EngineeringUnits propertyOptional analog-item metadata stating measurement unitsAssuming °C when a PLC exposes °F or assuming bar vs psi because EngineeringUnits is optional and frequently omitted on legacy PLCsOPC UA Part 8, 5.3.2.26
AccessLevel attributeDeclares whether a variable supports read, write or historical accessRelying on an operator account with write access violates read-only separation between batch recording and real-time PLC controlOPC 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:

  1. Read-only OPC UA session. The collector connects with a dedicated read-only OPC UA service credential and certificate, inspecting AccessLevel so the batch-record system can never alter PLC setpoints or interlocks.7
  2. Outbound HTTPS only. The site computer pushes captured readings outbound over TLS to the cloud GxP platform; no inbound plant firewall openings are needed.
  3. Explicit outage and staleness handling. When a PLC disconnects or returns a Bad or Uncertain StatusCode, 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:

Table 2. Example OPC UA verification protocol for a GMP batch step (invented for illustration).
CheckTest conditionExpected GMP record behavior
Identity and unit lockRead ns=3;s=BR04.PV.Temp and ns=3;s=BR04.PV.pHRecord stores server URI, NodeId, unit (°C and pH) confirmed against HMI display to 0.1 resolution
Bad status rejectionSimulate disconnected RTD probe (StatusCode: BadSensorFailure)Batch step rejects automatic capture, displays sensor fault status and prevents silent zero entry
Stale value checkHold PLC value older than 60 seconds (sourceTimestamp lags read time)Step flags stale reading and requires investigation or fresh confirmed read before proceeding
Outage recoveryDisconnect outbound WAN for 5 minutes during a batch stepLocal 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.

Batch record B-041 in Seal, post-mix hold and transfer: the instruction to keep the product at 2 to 8 °C and transfer it within 45 minutes of the mix, three process readings recorded at 10:12, 10:42 and 11:04, and the linked sample IPC-041 and investigation DEV-018. Fictional records.Open the whole screen in a new tab
Figure 1. B-⁠041 in Seal: the post-mix hold’s readings at mix, hold check and transfer, against its 45-minute limit.
Watch your own SOP run in Seal

AQuestions 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

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)

See your process in Seal.

Bring a procedure or a recurring problem. See how your team configures it with Neil and improves the next run.