Pharma Compliance & Validation

GAMP 5, Annex 11 and CSA: Validating Packaging Machine Software

The PLC and HMI decide what gets rejected, what goes in the batch report and who can change a recipe. Here is how GAMP 5, EU Annex 11 and FDA's Computer Software Assurance guidance apply to that software - and how to test it without drowning in paperwork.

By MEF Automation Engineering TeamUpdated 8 min read
In short
  • On a typical packaging machine, firmware and runtimes are GAMP Category 1/3, configured HMI/SCADA is Category 4, and machine-specific PLC logic and recipe handling are Category 5.
  • GAMP 5 Second Edition (2022) treats categories as one input to a risk-based decision, not a fixed recipe for how much to test.
  • FDA's CSA guidance (final September 2025, reissued February 2026) is written for medical devices, but pharma widely uses its idea: scripted testing for high-risk functions, lighter testing elsewhere.
  • The revised EU Annex 11 was still a draft in September 2026; the 2011 version applies. Designing to the draft's direction costs little.
On this page
  1. Why packaging machine software needs validating
  2. GAMP 5 Second Edition in brief
  3. Where a packaging machine's software sits
  4. Risk-based effort: test where failure would hurt
  5. CSV vs FDA's Computer Software Assurance
  6. EU Annex 11: key clauses and the pending revision
  7. Using supplier documentation, and a sensible test set
  8. Frequently asked questions
  9. References

Why packaging machine software needs validating

On a cartoner, filling line or inspection system, software makes GMP decisions: whether a carton without a leaflet is rejected, which fill volume a recipe sets, what the batch report says, and who is allowed to change any of it. If that software fails silently, a defective pack reaches a patient and the record says everything was fine.

The requirement to control it is not new. US 21 CFR 211.68(b) requires that changes to master production records are made only by authorised personnel, that inputs and outputs are checked, and that backups are exact and complete. EU GMP Annex 11 states in its principle that applications should be validated and IT infrastructure qualified. India's revised Schedule M adds a computerised-systems section with the same themes. Computerised system validation (CSV) is how you show the software is fit for its intended use, in proportion to the risk it carries.

GAMP 5 Second Edition in brief

GAMP 5 is ISPE's industry guide to computerised system compliance. It is not a regulation, but regulators and auditors expect you to recognise its approach. The Second Edition, published in July 2022, keeps the risk-based lifecycle (aligned with ICH Q9) and adds:

  • Critical thinking - decide what matters for patient safety, product quality and data integrity, instead of following templates by default.
  • Using supplier work - rely on supplier documentation and testing where the supplier's quality practices justify it.
  • Agile and iterative development, software tools, and new appendices on AI/machine learning and cloud.
  • Alignment with FDA's CSA thinking on testing effort.

The software categories remain, with one important shift: categories 3, 4 and 5 are described as a continuum, and category is only one factor in deciding how much effort a component needs. Category 2 (firmware) was dropped back in the first edition of GAMP 5.

Where a packaging machine's software sits

A packaging machine is not one software item. Split it into components and categorise each; the table reflects common industry practice.

ComponentTypical GAMP categoryValidation focus
Operating system of an HMI or SCADA PC, network components1 - InfrastructureRecord versions; control under IT infrastructure qualification and patching procedures
PLC firmware, HMI runtime, drive firmware1 / 3 - Infrastructure or standard non-configuredRecord versions at IQ; include in change control
Configured HMI or SCADA: screens, alarms, user administration, audit-trail and report modules4 - Configured productVerify the configuration: user roles, audit-trail content, report layout, alarm handling
Vision software set up from standard inspection toolsUsually treated as 4Challenge tests of each inspection; protection of inspection limits
Machine-specific PLC logic, HMI scripts, recipe handling, count and reject reconciliation5 - Custom applicationDesign review, code under version control, scripted functional testing of GMP functions

Category 5 sounds alarming, but on a packaging machine the custom logic is usually well bounded: sequences, interlocks, reject handling, recipes. The effort goes into testing the GMP-relevant functions of that logic thoroughly, not into testing every rung of ladder code.

Risk-based effort: test where failure would hurt

  1. List the functions from the URS and functional specification.
  2. Mark the GMP-relevant ones: anything that affects product quality, patient safety or the integrity of a GMP record.
  3. Assess each: severity if it fails, likelihood, and whether a failure would be detected by another control.
  4. Choose the test approach by risk, and record the rationale.
FunctionRiskSensible approach
Reject of missing leaflet, wrong code, empty cartonHighScripted test with seeded defects, evidence of each result
Audit trail, e-signature, user accessHigh (data integrity)Scripted positive and negative tests
Recipe parameter limitsHighScripted: attempt out-of-range entry at each user level
Batch report counts and reconciliationMedium-highScripted: compare report with counted output
Production counter, speed display, non-GMP trendsLowUnscripted or exploratory testing, brief record
Screen layout, colours, help textLowCovered by FAT walk-through and operator training

CSV vs FDA's Computer Software Assurance

FDA's guidance Computer Software Assurance for Production and Quality System Software was issued in draft in September 2022 and finalised on 24 September 2025. On 3 February 2026 it was reissued as Computer Software Assurance for Production and Quality Management System Software, aligned with the device Quality Management System Regulation. It replaces Section 6 of FDA's General Principles of Software Validation.

Scope matters

CSA was issued by FDA's device and biologics centres (CDRH and CBER) for medical device production and quality system software. It is not binding for drug CGMP. Pharma companies nevertheless use it widely as a reference, because its reasoning matches GAMP 5 Second Edition.

Traditional CSV habitCSA-style approach
Every function tested with a full script and screenshotsScripted testing for high process risk functions - where failure could foreseeably compromise safety; unscripted or exploratory testing for lower risk
Supplier tests ignored and repeatedSupplier work used where its quality is established
Documentation volume as proof of qualityLean records that show what was tested, by whom, and the result

The practical outcome is the same as the risk table above: fewer, better tests aimed at the functions that decide product quality and record integrity.

EU Annex 11: key clauses and the pending revision

The current Annex 11 has been in force since 30 June 2011. The clauses that matter most on a packaging machine:

ClauseWhat it means on the machine
§1 Risk managementValidation effort and data-integrity controls based on documented risk
§3 SuppliersFormal agreements; audit decision based on risk
§4.4 User requirementsRisk-based URS, traceable through the lifecycle - the basis of the traceability matrix
§7 Data storageRegular backups; integrity and accuracy of backup data checked
§9 Audit trailsRisk-based record of GMP-relevant changes and deletions, with the reason
§10 Change and configuration managementPLC, HMI and vision changes under change control
§11 Periodic evaluationPeriodic review that the system remains validated
§12 SecurityAccess restricted to authorised people
§14 Electronic signaturesSame impact as handwritten, permanently linked, with time and date
§16-17 Continuity and archivingPlan for system failure; archived data remains accessible and readable

Revision status (September 2026)

A draft revised Annex 11, a revised Chapter 4 and a new Annex 22 on artificial intelligence went to public consultation from 7 July to 7 October 2025. As of September 2026 the revision is not final; the 2011 Annex 11 still applies. The draft grows to around 19 pages and 17 sections, with far more detail on security, identity and access management, audit trails, periodic review, alarms and backups. It rules out shared accounts, calls for segregation of administrator and user roles, and expects backups to be kept separately and restores to be tested. These are already expectations under data-integrity guidance, so a machine designed today should meet them.

Using supplier documentation, and a sensible test set

Both GAMP 5 and CSA expect you to use supplier work rather than duplicate it - but only after judging whether it can be trusted. Ask the machine supplier for the functional and design specifications, a description of how PLC and HMI software is version-controlled, the Part 11 / Annex 11 compliance matrix, executed FAT evidence, and draft OQ scripts. If those are weak, your own testing has to be heavier.

A sensible test set for a packaging machine, executed at FAT and formalised in OQ:

  • Each user role: permitted and forbidden actions.
  • Password rules, lock-out and the related alarm.
  • Audit trail: parameter change with reason; attempt to edit or delete an entry.
  • E-signature on a batch report, on screen and on the exported PDF.
  • Recipe load, save and out-of-range entry.
  • Each reject function with seeded defects; reject confirmation.
  • Batch report counts against a manual count.
  • Power loss mid-batch, then recovery.
  • Backup, restore to a test system, and comparison.
  • Time-stamps against the reference clock; interfaces to SCADA or serialization.

MEF supplies the specifications, software version records and draft scripts for this set on pharma projects; see our validation support.

Frequently asked questions

What GAMP 5 category is a PLC?
It depends on the layer. PLC firmware is infrastructure or standard software (Category 1/3) and is controlled by recording its version. The machine-specific program written for your machine - sequences, interlocks, recipes, reject handling - is custom (Category 5). Configured HMI or SCADA screens and user administration are usually Category 4.
Does FDA's CSA guidance apply to pharmaceutical manufacturers?
Not formally. The Computer Software Assurance guidance was issued by FDA's device and biologics centres for medical device production and quality system software. It is not binding for drug CGMP, but pharma companies widely use it as a reference because its risk-based testing approach matches GAMP 5 Second Edition.
Is the revised EU Annex 11 in force?
No. As of September 2026 the revised Annex 11 was still a draft; the public consultation ran from 7 July to 7 October 2025. The 2011 Annex 11 continues to apply. The draft's direction - no shared accounts, segregated administrator roles, tested restores - is already expected under data-integrity guidance.
Do we need to validate HMI software separately from the machine?
Not as a separate project, but as a separate component within the machine's validation. Record the HMI runtime version, verify the configured user roles, audit trail and reports, and test the GMP-relevant functions. It all fits in one IQ/OQ, with a risk assessment explaining the depth of testing.
Can the supplier's FAT count towards computer system validation?
Yes, if the FAT had approved acceptance criteria and recorded evidence, and your QA witnessed or reviewed it. GAMP 5 and FDA's CSA guidance both encourage using supplier testing where its quality is established. EU GMP Annex 15 section 3.6 allows justified FAT tests to stand at IQ/OQ.

References

  1. ISPE GAMP 5 Guide, 2nd Edition (2022)
  2. ISPE Pharmaceutical Engineering: What you need to know about the GAMP 5 Guide, 2nd Edition
  3. FDA guidance: Computer Software Assurance for Production and Quality System Software
  4. EU GMP Annex 11: Computerised Systems (2011)
  5. European Commission: consultation on EudraLex Vol. 4 Chapter 4, Annex 11 and Annex 22
  6. GMP-Compliance.org: Drafts of Annex 11, Annex 22 and Chapter 4 released for comment
  7. 21 CFR 211.68 - Automatic, mechanical, and electronic equipment

Regulatory text changes. Always check the current version of a regulation before relying on it; this article reflects our reading as of 29 Sep 2026 and is not legal advice.

Have a question this guide did not answer?

Our engineers in Pune answer technical questions every day, whether or not you are buying a machine yet. Send us your product, pack and target output and we will reply with a straight answer.