On this page
- Why packaging machine software needs validating
- GAMP 5 Second Edition in brief
- Where a packaging machine's software sits
- Risk-based effort: test where failure would hurt
- CSV vs FDA's Computer Software Assurance
- EU Annex 11: key clauses and the pending revision
- Using supplier documentation, and a sensible test set
- Frequently asked questions
- 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.
| Component | Typical GAMP category | Validation focus |
|---|---|---|
| Operating system of an HMI or SCADA PC, network components | 1 - Infrastructure | Record versions; control under IT infrastructure qualification and patching procedures |
| PLC firmware, HMI runtime, drive firmware | 1 / 3 - Infrastructure or standard non-configured | Record versions at IQ; include in change control |
| Configured HMI or SCADA: screens, alarms, user administration, audit-trail and report modules | 4 - Configured product | Verify the configuration: user roles, audit-trail content, report layout, alarm handling |
| Vision software set up from standard inspection tools | Usually treated as 4 | Challenge tests of each inspection; protection of inspection limits |
| Machine-specific PLC logic, HMI scripts, recipe handling, count and reject reconciliation | 5 - Custom application | Design 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
- List the functions from the URS and functional specification.
- Mark the GMP-relevant ones: anything that affects product quality, patient safety or the integrity of a GMP record.
- Assess each: severity if it fails, likelihood, and whether a failure would be detected by another control.
- Choose the test approach by risk, and record the rationale.
| Function | Risk | Sensible approach |
|---|---|---|
| Reject of missing leaflet, wrong code, empty carton | High | Scripted test with seeded defects, evidence of each result |
| Audit trail, e-signature, user access | High (data integrity) | Scripted positive and negative tests |
| Recipe parameter limits | High | Scripted: attempt out-of-range entry at each user level |
| Batch report counts and reconciliation | Medium-high | Scripted: compare report with counted output |
| Production counter, speed display, non-GMP trends | Low | Unscripted or exploratory testing, brief record |
| Screen layout, colours, help text | Low | Covered 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.
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 habit | CSA-style approach |
|---|---|
| Every function tested with a full script and screenshots | Scripted testing for high process risk functions - where failure could foreseeably compromise safety; unscripted or exploratory testing for lower risk |
| Supplier tests ignored and repeated | Supplier work used where its quality is established |
| Documentation volume as proof of quality | Lean 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:
| Clause | What it means on the machine |
|---|---|
| §1 Risk management | Validation effort and data-integrity controls based on documented risk |
| §3 Suppliers | Formal agreements; audit decision based on risk |
| §4.4 User requirements | Risk-based URS, traceable through the lifecycle - the basis of the traceability matrix |
| §7 Data storage | Regular backups; integrity and accuracy of backup data checked |
| §9 Audit trails | Risk-based record of GMP-relevant changes and deletions, with the reason |
| §10 Change and configuration management | PLC, HMI and vision changes under change control |
| §11 Periodic evaluation | Periodic review that the system remains validated |
| §12 Security | Access restricted to authorised people |
| §14 Electronic signatures | Same impact as handwritten, permanently linked, with time and date |
| §16-17 Continuity and archiving | Plan 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?
Does FDA's CSA guidance apply to pharmaceutical manufacturers?
Is the revised EU Annex 11 in force?
Do we need to validate HMI software separately from the machine?
Can the supplier's FAT count towards computer system validation?
References
- ISPE GAMP 5 Guide, 2nd Edition (2022)
- ISPE Pharmaceutical Engineering: What you need to know about the GAMP 5 Guide, 2nd Edition
- FDA guidance: Computer Software Assurance for Production and Quality System Software
- EU GMP Annex 11: Computerised Systems (2011)
- European Commission: consultation on EudraLex Vol. 4 Chapter 4, Annex 11 and Annex 22
- GMP-Compliance.org: Drafts of Annex 11, Annex 22 and Chapter 4 released for comment
- 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.