Functional Safety

ISO 13849 Design Practice: From Principles to Implementation

In-depth exploration of ISO 13849-1 design practice methods, including hardware safety design principles, subsystem combination techniques, software safety requirements, and demonstrating the complete engineering implementation path through a BMS application case.

18 min read
ISO 13849 Design Practice: From Principles to Implementation

ISO 13849 Design Practice: From Principles to Implementation

In the engineering practice of functional safety, translating theoretical requirements into actionable technical solutions is the most critical challenge. ISO 13849-1 not only provides a complete evaluation framework but also offers a set of validated design principles and practical methods. This article will delve into these design practices, helping engineers build safety-related control systems that meet standard requirements in actual projects.

Design Process Overview

Before diving into specific design principles, we need to review the complete design process of ISO 13849. A standard safety-related control system (SRP/CS) design goes through four key phases:

┌─────────────────────────────────────────────────────────────────────┐
│                    SRP/CS Design Process                            │
├─────────────────────────────────────────────────────────────────────┤
│                                                                     │
│   ┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐    │
│   │ 1.Define │───►│ 2.Design │───►│ 3.Evaluate│───►│ 4.Verify │    │
│   │ Safety  │    │Architecture│   │   PL     │    │ Validate │    │
│   │Function │    │           │    │          │    │          │    │
│   └──────────┘    └──────────┘    └──────────┘    └──────────┘    │
│        │               │               │               │          │
│        ▼               ▼               ▼               ▼          │
│   ┌──────────┐   ┌──────────┐   ┌──────────┐   ┌──────────┐      │
│   │  SRS    │   │ Select   │   │ Calculate│   │   Test   │      │
│   │ Document │   │ Category │   │Parameters│   │  Report  │      │
│   │ Define PLr│  │ Design   │   │ Check    │   │ Document │      │
│   └──────────┘   └──────────┘   └──────────┘   └──────────┘      │
│                                                                     │
└─────────────────────────────────────────────────────────────────────┘

This article will focus on the practical methods for Step 2 (Design Architecture) and Step 3 (Evaluate PL), which are the core links in transforming safety requirements into actual engineering implementations.

Hardware Safety Design Principles

Three-Layer Architecture of Safety Principles

ISO 13849-2 (Appendices A-D) divides safety principles into three levels, forming a complete design guidance system:

Principle TypeEnglishApplicable CategoriesDescription
Basic Safety PrinciplesBasic Safety PrinciplesAll categoriesFundamental requirements that must be followed
Well-tried Safety PrinciplesWell-tried Safety Principles1/2/3/4Validated design methods
Well-tried ComponentsWell-tried Components1Components with proven reliability

This layered architecture means: all safety systems of any category must comply with basic safety principles, and as the category level increases, higher levels of validated principles and components need to be applied.

Basic Safety Principles: Foundation of All Designs

Basic safety principles are the foundation for building any safety system. Regardless of the target PL, these principles must be strictly followed.

Basic Requirements for Electrical Systems

Material selection needs to consider environmental factors:

  • Temperature range: Operating temperature should be within the component’s rated range
  • Humidity protection: Select appropriate protection rating based on application environment
  • Corrosion protection: Use corrosion-resistant materials in harsh environments

Appropriate derating design is a key measure to improve reliability:

Derating design recommendations:

| Component Type | Derating Parameter | Recommended Derating Ratio |
|----------------|-------------------|---------------------------|
| Resistor | Power | 50% |
| Capacitor | Voltage | 30-50% |
| Semiconductor | Current/Voltage | 30-50% |
| Relay | Contact Current | 50% |

Design requirements for protection measures:

  • Overvoltage protection: Use TVS tubes, voltage regulator tubes, or varistors
  • Overcurrent protection: Fuses, circuit breakers, or current-limiting resistors
  • Proper grounding: Low-impedance grounding path, avoid grounding loops
  • Environmental protection: Appropriate IP rating, sealing, and coating

Basic Safety Principles Checklist

In actual design reviews, the following checklist can be used to ensure compliance:

┌─────────────────────────────────────────────────────────────────┐
│       Basic Safety Principles Checklist (Electrical Systems)     │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Design Review Items:                                           │
│                                                                 │
│  □ Are all components used according to manufacturer specs?     │
│  □ Is appropriate derating design applied (voltage/current/power)?│
│  □ Are there appropriate overvoltage protection measures?       │
│  □ Are there appropriate overcurrent protection measures?       │
│  □ Is the grounding design compliant with standards?            │
│  □ Are EMC requirements considered?                            │
│  □ Are environmental conditions considered (temp, humidity, vibration)?│
│  □ Are connectors/terminals reliable?                          │
│  □ Is there mistake-proofing design?                           │
│  □ Is PCB layout compliant with safety requirements?           │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Well-tried Safety Principles: Advanced Requirements for Category 1-4

When designing Category 1 to 4 systems, higher levels of validated safety principles need to be applied.

Force-Guided Contact Technology

This is the core technology of safety relays. Understanding it is crucial for designing high-reliability systems:

                    Force-Guided Contact Principle

    Normal State:                Fault State (Contact Welding):

    ┌──────────────┐            ┌──────────────┐
    │  NC ──/ ──   │            │  NC ──/ ──   │← Welded
    │      │       │            │      │       │
    │  ────┴────   │            │  ────┴────   │
    │      │       │            │      │       │
    │  NO ──┼──    │            │  NO ──┼──    │← Forced open
    │      │       │            │      │       │
    └──────────────┘            └──────────────┘

    Feature: All movable contacts are rigidly linked,
          when any contact welds, other contacts cannot close

Force-guided contacts ensure that even in the event of a fault, the system does not enter a dangerous state. This is one of the key technologies for implementing Category 1 and above systems.

Other Well-tried Safety Principles

PrincipleDescriptionTypical Applications
Short circuit protectionUse wiring techniques or monitoring to prevent short circuitsBipolar wiring, current monitoring
Ground fault detectionDetect ground short circuitsResidual current protection
Redundant structureUse multiple independent channelsDual-channel safety circuits
Diverse technologyUse different technologies to achieve the same functionDifferent types of sensors
Periodic testingRegularly check functionsSelf-test procedures
Feedback loopOutput state feedback monitoringContact readback

Well-tried Components: Reliability Foundation for Category 1

Well-tried components refer to components with extensive successful use experience in similar applications, or whose reliability has been proven through rigorous testing/analysis. For Category 1 systems, using well-tried components is a basic requirement.

Typical Well-tried Component Examples

Component TypeExampleValidation Basis
Safety relayForce-guided relayIEC 61810-3
Emergency stop buttonCompliant with IEC 60947-5-5Extensive application history
Position switchCompliant with IEC 60947-5-1Extensive application history
Safety light curtainCompliant with IEC 61496Type test certification
Safety PLCCompliant with IEC 61131-6Safety certification

Using these validated components can significantly reduce design risk and improve system reliability.

Design Considerations for Fault Exclusion

Fault exclusion refers to techniques for reasonably excluding certain fault modes in design. This requires sufficient justification and documentation in technical documents.

Excludable Fault Types

Fault TypeExclusion Conditions
PCB trace breakageProper PCB design and protection
Resistor short circuitCertain types of resistors
Connector single-point failureRedundant connection design
Certain software faultsValidated software

Important Note: Fault exclusion must have sufficient technical justification and cannot be arbitrarily excluded. During review, evaluators will pay special attention to the reasonableness of fault exclusions.

Subsystem Combination Techniques

Subsystem Series Model

In actual engineering, safety functions are often implemented by multiple subsystems in series. Understanding how to calculate the overall PL is key to design.

┌─────────────────────────────────────────────────────────────────────┐
│                    Subsystem Series Model                           │
│                                                                     │
│   ┌─────────────┐    ┌─────────────┐    ┌─────────────┐           │
│   │ Subsystem 1 │    │ Subsystem 2 │    │ Subsystem 3 │           │
│   │  (Sensor)   │───►│  (Safety PLC)│───►│  (Contactor)│           │
│   │   PL = d    │    │   PL = e    │    │   PL = c    │           │
│   └─────────────┘    └─────────────┘    └─────────────┘           │
│                                                                     │
│                    Overall PFH = PFH1 + PFH2 + PFH3                │
│                                                                     │
└─────────────────────────────────────────────────────────────────────┘

PFH Calculation Methods

Method 1: Known Subsystem PFH Values

When the PFH values of each subsystem are known, they can be directly added:

PFH_overall = PFH_1 + PFH_2 + ... + PFH_n

Calculation Example:

SubsystemPFH
Light curtain sensor1.5×10⁻⁷/h
Safety PLC2.0×10⁻⁸/h
Contactor5.0×10⁻⁷/h
PFH_overall = 1.5×10⁻⁷ + 2.0×10⁻⁸ + 5.0×10⁻⁷
        = 6.7×10⁻⁷/h

Corresponding PL = d (range: 10⁻⁷ to <10⁻⁶)

Method 2: Using Conservative Estimation

When exact PFH is unknown, the maximum PFH value corresponding to each PL can be used for conservative estimation:

PLMaximum PFH
a10⁻⁴/h
b10⁻⁵/h
c3×10⁻⁶/h
d10⁻⁶/h
e10⁻⁷/h

PL Limitation for Series Systems

Important Rule: The PL of a series system cannot exceed the lowest PL subsystem!

Example:
Subsystem 1: PL d
Subsystem 2: PL c  ← Lowest
Subsystem 3: PL e

Overall PL ≤ c (cannot exceed the lowest subsystem PL)

This rule reflects the “bucket effect” in safety design—the shortest board determines the safety performance of the entire system.

Software Safety Requirements

Software Classification System

ISO 13849-1 divides software into two types, each with different requirements:

TypeAbbreviationDefinition
Safety-related Embedded SoftwareSRESWProvided by manufacturer, not modifiable by user
Safety-related Application SoftwareSRASWSoftware configured by user according to application

Software Language Classification

TypeAbbreviationExamplesApplicable Scenarios
Limited Variable LanguageLVLLadder Diagram, Function Block DiagramSafety PLC application programming
Full Variable LanguageFVLC, C++, AssemblyEmbedded system development

Software Requirements by PL Level

Different PL levels have different requirements for software development:

RequirementPL a-bPL cPL dPL e
Software safety requirement specificationMandatoryMandatoryMandatoryMandatory
Software architecture designRecommendedMandatoryMandatoryMandatory
Modular designRecommendedRecommendedMandatoryMandatory
Code reviewRecommendedMandatoryMandatoryMandatory
Unit testing-RecommendedMandatoryMandatory
Integration testingMandatoryMandatoryMandatoryMandatory
Black box testingMandatoryMandatoryMandatoryMandatory
Static analysis-RecommendedMandatoryMandatory
Formal methods---Recommended

Software Development V Model

The V model is a classic framework for safety software development:

                        V Model Software Development

    Requirement Analysis ───────────────────────────► System Testing
        │                                               ▲
        │                                               │
        ▼                                               │
    Architecture Design ─────────────────────────► Integration Testing
        │                                               ▲
        │                                               │
        ▼                                               │
    Detailed Design ────────────────────────────► Unit Testing
        │                                               ▲
        │                                               │
        ▼                                               │
      Coding ────────────────────────────────────────┘


    Left side: Design and coding      Right side: Testing and verification

BMS Software Safety Practice

In BMS (Battery Management System) and other high-safety requirement applications, the following software diagnostic measures are standard practice:

Key Software Measures

MeasurePurposeImplementation Method
WatchdogDetect program runawayIndependent hardware watchdog
Program flow monitoringDetect execution sequence errorsCheckpoint verification
Memory verificationDetect RAM/Flash errorsCRC, ECC
Data range checkingDetect abnormal dataReasonableness check
Time monitoringDetect execution timeoutCycle timer

Diagnostic Coverage Reference

Software Diagnostic MeasureTypical DC
Range check60%
Watchdog60%
Program flow monitoring70%
Dual-channel comparison90%
Memory CRC90%
Complete software diagnostic suite99%

BMS Design Practical Case

Case Background

System Description: Industrial lithium battery pack BMS safety protection system

Battery Specifications:

  • Voltage: 400V DC
  • Capacity: 100Ah
  • Application: Industrial energy storage/forklift

Safety Function Definition

SF IDSafety FunctionPLrCategory Selection
SF1Overvoltage Protection (OVP)e3/4
SF2Undervoltage Protection (UVP)c2/3
SF3Overtemperature Protection (OTP)d2/3
SF4Overcurrent Protection (OCP)d2/3
SF5Insulation Monitoring (IMD)d2/3

SF1 Overvoltage Protection Detailed Design

Function Description

  • Trigger Condition: Any cell voltage > 4.25V
  • Response Behavior: Cut off charging circuit
  • Response Time: < 100ms

Architecture Design (Category 3)

┌─────────────────────────────────────────────────────────────────────────┐
│              SF1 Overvoltage Protection Architecture (Category 3)       │
│                                                                         │
│                          Input Part                                     │
│   ┌─────────────────────────────────────────────────────────────────┐  │
│   │  Voltage Sampling Channel 1         Voltage Sampling Channel 2   │  │
│   │  ┌─────┐  ┌─────┐  ┌─────┐       ┌─────┐  ┌─────┐  ┌─────┐    │  │
│   │  │Divider│─►│Filter│─►│ADC1 │       │Divider│─►│Filter│─►│ADC2 │    │  │
│   │  │Resistor│ │Circuit│ │     │       │Resistor│ │Circuit│ │     │    │  │
│   │  └─────┘  └─────┘  └──┬──┘       └─────┘  └─────┘  └──┬──┘    │  │
│   └─────────────────────────┼─────────────────────────────┼────────┘  │
│                             │                             │            │
│                             ▼                             ▼            │
│                          Logic Part                                     │
│   ┌─────────────────────────────────────────────────────────────────┐  │
│   │                                                                 │  │
│   │   ┌───────────────┐              ┌───────────────┐             │  │
│   │   │     MCU1      │◄──Cross Monitor──►│     MCU2      │             │  │
│   │   │               │              │               │             │  │
│   │   │ Voltage Calc  │              │ Voltage Calc  │             │  │
│   │   │ Threshold Compare│            │ Threshold Compare│             │  │
│   │   │ Result Output  │              │ Result Output  │             │  │
│   │   └───────┬───────┘              └───────┬───────┘             │  │
│   │           │                              │                     │  │
│   └───────────┼──────────────────────────────┼─────────────────────┘  │
│               │                              │                        │
│               ▼                              ▼                        │
│                          Output Part                                    │
│   ┌─────────────────────────────────────────────────────────────────┐  │
│   │                                                                 │  │
│   │   ┌───────────────┐              ┌───────────────┐             │  │
│   │   │    MOSFET1    │              │    MOSFET2    │             │  │
│   │   │  (Charging Circuit -) │              │  (Charging Circuit -) │             │  │
│   │   └───────────────┘              └───────────────┘             │  │
│   │           │                              │                     │  │
│   │           └──────────────┬───────────────┘                     │  │
│   │                          ▼                                      │  │
│   │                   Charging Circuit Open                         │  │
│   │                                                                 │  │
│   └─────────────────────────────────────────────────────────────────┘  │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Parameter Calculation

MTTFd Calculation (Single Channel):

ComponentMTTFdSource
Divider resistor×4500 yearsDerating design
Filter capacitor100 yearsAppendix C
ADC200 yearsMCU datasheet
MCU core100 yearsSafety manual
MOSFET driver100 yearsAppendix C
MOSFET50 yearsManufacturer data
1/MTTFd = 1/500 + 1/100 + 1/200 + 1/100 + 1/100 + 1/50
        = 0.002 + 0.01 + 0.005 + 0.01 + 0.01 + 0.02
        = 0.057

MTTFd_Channel = 17.5 years → Medium

DCavg Calculation:

ModuleDiagnostic MeasureDC
Divider circuitRange check + comparison verification90%
ADCCross comparison99%
MCUWatchdog + memory CRC + program flow90%
MOSFETConduction state readback90%
DCavg ≈ 92% → Medium

CCF Scoring:

MeasureScore
Physical separation (different ADCs, different driver circuits)15
Electrical isolation (isolated sampling)20
Diversity (optional: different algorithms)10
Overvoltage protection15
EMC measures20
Periodic diagnostics10
Total Score90 ≥ 65 ✓

PL Determination and Improvement

Check Category 3 chart:

  • MTTFd = Medium
  • DCavg = Medium
  • PL = d

Problem: PL = d < PLr = e, requirement not met!

Improvement Solutions

Solution 1: Improve MTTFd to High

Use higher reliability MOSFET (MTTFd = 100 years) or redundant MOSFET design.

Solution 2: Improve DCavg to High

Add more diagnostics:

  • Fully independent dual ADC + complete cross comparison
  • Output dual readback
  • Periodic test pulse

Solution 3: Upgrade to Category 4

Category 4 makes it easier to achieve PL e:

  • Allows higher MTTFd limit (2500 years)
  • Higher PL with same parameters

Final Design: Category 4

Improved parameters:

  • MTTFd = High (using high-reliability components)
  • DCavg = High (comprehensive diagnostics)
  • CCF ≥ 65

Check Category 4 chart: PL = e

Design Checklist and Validation

Hardware Design Checklist

┌─────────────────────────────────────────────────────────────────┐
│                    SRP/CS Hardware Design Checklist              │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Project: _________________  Date: _________________            │
│  Safety Function: ___________________________________________    │
│  Target PLr: _____  Design Category: _____                      │
│                                                                 │
│  Basic Safety Principles:                                       │
│  □ Is component derating design appropriate?                    │
│  □ Are there appropriate overvoltage/overcurrent protections?   │
│  □ Is grounding design correct?                                 │
│  □ Are EMC measures sufficient?                                 │
│  □ Is environmental protection appropriate?                     │
│                                                                 │
│  Architecture Design:                                           │
│  □ Does it meet the requirements of the selected category?      │
│  □ Are redundant channels independent?                          │
│  □ Do diagnostic measures cover critical faults?                │
│  □ Are CCF measures sufficient?                                 │
│                                                                 │
│  Parameter Calculation:                                          │
│  □ Is MTTFd calculation complete?                               │
│  □ Is DCavg evaluation reasonable?                              │
│  □ Is CCF score ≥ 65?                                           │
│  □ Is achieved PL ≥ PLr?                                        │
│                                                                 │
│  Documentation:                                                  │
│  □ Is there a complete safety-related block diagram?            │
│  □ Is there FMEA/FMEDA analysis?                                │
│  □ Is fault exclusion justified?                                │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Software Design Checklist

┌─────────────────────────────────────────────────────────────────┐
│                    SRP/CS Software Design Checklist              │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Software Type: □ SRESW  □ SRASW                               │
│  Target PL: _____                                              │
│                                                                 │
│  Development Process:                                           │
│  □ Is there software safety requirement specification?          │
│  □ Is there software architecture design?                       │
│  □ Is modular design adopted?                                   │
│  □ Is there a coding standard?                                  │
│                                                                 │
│  Diagnostic Measures:                                           │
│  □ Is there a watchdog?                                         │
│  □ Is there program flow monitoring?                            │
│  □ Is there memory verification?                                │
│  □ Is there data range checking?                                │
│  □ Is there communication verification?                         │
│                                                                 │
│  Verification Testing:                                          │
│  □ Is there code review?                                        │
│  □ Is there unit testing?                                       │
│  □ Is there integration testing?                                │
│  □ Is there static analysis?                                    │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Frequently Asked Questions

Q1: How to choose between Category 3 and Category 4 in BMS?

A: Depends on PLr and cost considerations:

  • PLr ≤ d: Category 3 is usually sufficient
  • PLr = e: Category 4 is easier to achieve, but Category 3 is also possible (requires high MTTFd and high DC)
  • Cost sensitive: Category 3 has lower cost
  • Highest safety: Category 4 is more conservative

Q2: Can BMS use commercial MCUs?

A: Yes, but requires:

  1. Select MCUs that comply with safety standards (such as those with IEC 60730 certification)
  2. Refer to the MCU’s safety manual
  3. Implement diagnostic measures required by the safety manual
  4. For high PL (d, e), safety MCUs are recommended (such as MPC5744P)

Q3: How to achieve high DC in software?

A: Combine multiple diagnostic measures:

  • Watchdog (60%)
  • Program flow monitoring (+70%)
  • Memory CRC (+90%)
  • Dual-channel comparison (90-99%)
  • Comprehensive can reach 99%

Q4: When combining subsystems, why is the lowest PL the limiting factor?

A: Because the safety function is a complete chain, the weakest link determines the overall safety performance. For example:

  • Sensor PL d + PLC PL e + Contactor PL c
  • Even with a PL e component in the middle, the contactor PL c limits the overall to not exceed c

Q5: What documents does BMS need to prove compliance with ISO 13849?

A: Main documents include:

  1. Safety Requirement Specification (SRS)
  2. System architecture design document
  3. Safety-related block diagram
  4. FMEA/FMEDA analysis report
  5. MTTFd/DC/CCF calculation documents
  6. Software safety design document
  7. Verification test report
  8. Safety manual (user documentation)

Conclusion

ISO 13849 design practice is the key process of translating theoretical requirements into engineering implementation. By following basic safety principles, applying validated design methods, reasonably combining subsystems, and complementing with comprehensive software safety measures, engineers can build safety-related control systems that meet both standard requirements and actual application needs.

In high-safety requirement applications like BMS, Category 3/4 architecture combined with comprehensive diagnostic measures is an effective path to achieve PL d/e. More importantly, the entire design process requires complete technical documentation support, which is the foundation for proving compliance.

Functional safety is a process of continuous improvement. The cycle of design, verification, and improvement runs through the entire product lifecycle. Only by deeply understanding these design principles and continuously optimizing them in practice can we build truly reliable safety systems.

References

Standard Clauses

ContentStandard Clause
Design principlesISO 13849-1:2023 Chapter 6
Software requirementsISO 13849-1:2023 Chapter 7
Basic safety principlesISO 13849-2:2012 Appendices A-D
Circuit examplesIFA Report 2/2017e Chapter 8
  • ISO 13849-1 Basic Framework and Core Concepts
  • Performance Level and Category Detailed Explanation
  • Key Parameter Calculation Methods
  • MPC5744P Safety Manual (NXP)
  • IEC 61508-3 (Software Requirements)

This article is part of the ISO 13849 standard interpretation series, covering the complete practical path from design principles to engineering implementation.

Tags

#functional-safety #ISO-13849 #PL #design-practice #BMS