Two Frameworks Running in Parallel

The fundamental thing to understand about a pharma system with an F-CPU is that two separate compliance frameworks apply simultaneously, and they do not replace each other. GAMP 5 governs the standard PLC programme — the process control logic, audit trail, alarm management, and SCADA configuration. IEC 61508 / IEC 61511 (or IEC 62061 for machinery) governs the safety functions on the F-CPU — the emergency stops, safety interlocks, and protective shutdowns.

These frameworks have different evidence requirements, different lifecycle phases, and different validation approaches. The GAMP 5 validation does not validate the safety functions. The functional safety lifecycle does not validate the process control programme. Both must be completed, and the HDS must document both layers clearly so that QA, the safety engineer, and the site know which evidence package covers which hardware and functions.

The Common Mistake

The most common error is treating the OQ as the validation evidence for safety functions. An OQ test case that verifies "emergency stop de-energises all pump contactors within 2 seconds" is not a SIL verification. It is a functional test from the process control perspective. The SIL verification requires proof-test documentation, PFD (Probability of Failure on Demand) calculations, and evidence that the safety function was designed and tested to the required IEC standard. These are separate documents produced by a qualified functional safety engineer — not part of the GAMP 5 validation package.

What SIL Actually Means in This Context

Safety Integrity Level (SIL) is a discrete measure of the risk reduction provided by a Safety Instrumented Function (SIF). SIL 1 provides a risk reduction factor of 10 to 100. SIL 2 provides 100 to 1,000. Most safety functions on pharmaceutical process equipment — emergency shutdowns, overpressure protection, high-temperature trips — are SIL 1 requirements. SIL 2 appears on more hazardous processes. SIL 3 and above are rare in pharma and typically appear only on chemical synthesis or highly flammable environments.

The SIL target for a specific safety function is determined by a hazard and risk assessment — not by the engineer's judgment on a project, and not by what hardware is available. The hazard assessment (typically a HAZOP or LOPA) produces a required risk reduction, which translates to a SIL target. The safety function is then designed to achieve that SIL target. Assigning a SIL target without a formal hazard assessment is not acceptable — it is guesswork applied to safety-critical design.

STANDARD PLC vs F-CPU — TWO COMPLIANCE FRAMEWORKS STANDARD PLC PROGRAMME GAMP 5 FRAMEWORK • Process control (PID, sequencing) • Alarm management (ISA-18.2) • Audit trail & data integrity • User access control • SCADA interface Evidence: URS / FDS / SDS / IQ / OQ / VSR F-CPU SAFETY PROGRAMME IEC 61508 / IEC 61511 / IEC 62061 • Emergency stop (ESD) • High-temperature trip • Overpressure protection • Low-level pump protection • Safety interlocks (SIL-rated) Evidence: HAZOP / SIL assessment / proof-test / PFD calc
// THESE ARE TWO SEPARATE EVIDENCE PACKAGES. THE GAMP 5 OQ DOES NOT COVER THE F-CPU SAFETY PROGRAMME. THE FUNCTIONAL SAFETY LIFECYCLE DOES NOT COVER THE PROCESS CONTROL PROGRAMME. BOTH MUST BE COMPLETED.

Typical Safety Functions on Pharma Equipment

On a typical pharmaceutical process system — a bioreactor, water system, CIP skid, or fill-and-finish line — the safety functions that require F-CPU or safety relay implementation are well-defined. The SIL 1 target is most commonly applied to:

The key design principle for all of these is hardware independence: the F-CPU safety inputs must be physically separate from the standard PLC process inputs. A temperature transmitter with a single 4–20 mA output driving both the PID control loop and the safety trip is a common design error. The safety function must have its own sensor channel — a dedicated F-channel input — so that a failure of the process transmitter does not simultaneously disable the safety trip. This is a fundamental IEC 61511 requirement and is typically the first item a functional safety engineer checks in design review.

The F-CPU in the GAMP 5 Validation

Although the F-CPU safety programme requires its own functional safety lifecycle evidence, it still appears in the GAMP 5 Validation Plan and documentation. The HDS must document the F-CPU hardware, the F-DI and F-DO modules, and the safety functions with their preliminary SIL targets. The IQ must verify that the F-CPU hardware matches the HDS, that the F-CPU Force Table is empty at IQ completion, and that the F-CPU firmware version is recorded. The OQ can include functional tests that verify the safety trip activates from the process control perspective — but with the explicit note that these tests do not constitute the SIL verification.

The SDS must note that the F-CPU programme is developed to TIA Portal Safety programming guidelines and that F-CPU code review is subject to IEC 62061 requirements — separate from the standard PLC code review checklist. The code reviewer for the F-CPU must be a qualified functional safety engineer, not the same automation engineer who reviewed the standard programme.

Do Not Assign SIL Without a Formal Assessment

Assigning a SIL target based on the engineer's judgment — "this looks like a SIL 1 function" — is not acceptable. The SIL target must come from a documented hazard and risk assessment (HAZOP or LOPA) that quantifies the tolerable risk, calculates the required risk reduction, and derives the SIL target from that calculation. Preliminary SIL targets in the HDS are labelled "subject to formal assessment" for exactly this reason. A project that reaches detailed F-CPU programming without a formal SIL assessment is proceeding with unverified safety requirements — a serious compliance and safety risk.

Separate Evidence — What the F-CPU Needs

The functional safety evidence package for the F-CPU is distinct from the GAMP 5 validation package. It includes:

How This Affects the Validation Plan

The Validation Plan must explicitly address the boundary between the GAMP 5 validation scope and the functional safety lifecycle scope. A VP that describes the standard PLC validation without acknowledging the F-CPU and its separate evidence requirements creates ambiguity about what the validation covers. QA reviewers who understand automation will ask: "What covers the safety functions?" The VP must have a clear answer — typically a reference to the separate functional safety lifecycle documentation maintained by the functional safety engineer or the safety engineer of record.

The GAMP 5 risk assessment also interacts with the functional safety assessment. The risk assessment identifies GxP-critical functions for test coverage. The safety functions — ESD, high-temperature trip — will appear in the risk assessment as high-severity items. The GAMP 5 risk assessment ensures these functions are tested from a process control perspective. The functional safety assessment ensures the safety hardware achieves the required probability of failure performance. Both are needed; neither substitutes for the other.

In the QLean Framework

The HDS template (HDS-SYS-001) includes Section 8 (Safety Systems) with a structured table for documenting F-CPU safety functions — safety function description, F-DI input, F-DO output, and preliminary SIL target — with an explicit note that formal SIL assessment by a qualified functional safety engineer is required before detailed F-CPU programming. The F-DI modules are listed in Section 2.2 with their IEC 62061 SIL 2 capability noted. The SDS template notes that F-CPU code review is subject to IEC 62061 requirements separate from the standard code review checklist. The QLean Framework covers the GAMP 5 validation scope; the functional safety lifecycle evidence package is produced by a qualified functional safety engineer and referenced in the HDS and VP.