Tempo di lettura: 7 minuti

ISO 13849-1:2023 is the fourth edition of the international standard for designing the safety-related parts of machine control systems (SRP/CS). It sets how reliable each safety function has to be, as a Performance Level (PL) from a to e, and how you prove that the hardware and the software get there. For a PLC programmer the key part is the safety program written in a safety PLC: the standard calls it SRASW, safety-related application software, and the 2023 edition collects the software development rules in one clause with a more precise lifecycle.

What changed in 2023 for people who write safety code

The 2023 text follows the design process. For programmers, six changes matter:

  • Clause 7 now holds the requirements for developing safety software. Its introduction excludes the extra requirements specific to AI-based software.
  • The V-model of the software lifecycle now states the reviews, tests and outputs of each phase. A simplified two-stage V-model is allowed when SRASW is written in a limited variability language (LVL), uses validated function blocks and runs on verified hardware: the software safety specification goes straight to coding.
  • A decision aid classifies languages. Ladder, function block diagram, sequential function chart and Boolean logic per IEC 61131-3 count as LVL. Any other language counts as LVL only if guidelines, the compiler or the tool restrict its programming flow.
  • The new informative Annex N picks mandatory and recommended software measures by use case (PL a/b, c, d, e). Its second part walks through the validation of an SRASW built from validated function blocks.
  • Validation, previously covered by ISO 13849-2, is now Clause 10 of Part 1. The content is largely the same.
  • Manual parameterisation of safety parameters through software tools has its own subclause, 6.3, with more detailed documentation requirements.

Performance Level: the numbers behind the letters

The PL is set by the average probability of a dangerous failure per hour (PFHD) of the whole function, from sensor to actuator. The required level, PLr, comes from the risk assessment: severity of injury (S), frequency or duration of exposure (F) and possibility of avoiding the hazard (P). Annex A of the 2023 edition introduces a new method for choosing P.

Performance Level PFHD band (dangerous failures per hour) Comparable SIL (IEC 62061)
a from 1×10-5 up to 1×10-4 none
b from 3×10-6 up to 1×10-5 SIL 1
c from 1×10-6 up to 3×10-6 SIL 1
d from 1×10-7 up to 1×10-6 SIL 2
e from 1×10-8 up to 1×10-7 SIL 3

The upper bound of each band is excluded. Four quantities decide the PL you achieve: the category (architecture B, 1, 2, 3 or 4), the MTTFD of each channel (low 3–10 years, medium 10–30, high 30 and above), the average diagnostic coverage (none below 60%, low 60–90%, medium 90–99%, high 99% and above) and the measures against common cause failure, which need at least 65 points out of 100 in categories 2, 3 and 4. SISTEMA does the arithmetic. One new limit worth knowing: a subsystem cannot claim PL e on fault exclusions alone.

LVL or FVL: which rules your code falls under

LVL application program FVL code
Languages Ladder, FBD, SFC, Boolean logic; other languages such as ST only if the tool or guidelines restrict the flow C, C++, assembler, unrestricted textual code
Typical home Safety PLC or programmable safety relay with certified firmware Embedded firmware (SRESW) inside safety devices
Lifecycle model Full V-model, or the simplified two-stage one with validated function blocks on verified hardware Full V-model; the simplified route is not available
Measures Basic measures at every PL, more added as PLr rises; Annex N tables by use case

In SRASW the measures become habits a reviewer can check: an input → logic → output structure, certified library blocks instead of home-made interlock logic, each safety output written in exactly one place, safety code kept apart from standard code with data exchanged only through defined interfaces, plausibility checks on inputs that end in a safe state, and short blocks with one entry and one exit.

Procedure: from risk assessment to a validated safety program

The example is invented: palletising cell P2 at a fictional company, Imballaggi Valcesa Srl, with a robot, an infeed conveyor and guard door D2 fitted with a dual-channel interlock.

  1. Take the PLr from the risk assessment, one per safety function. Not one per machine. For SF-02, “opening D2 removes torque from the robot and the infeed conveyor”, the assessment gives PLr d.
  2. Write the safety requirements specification. Annex M gives guidance on the content. For each function: trigger, reaction, safe state, response time, operating modes, reset and restart. SF-02: door open, STO on both drives within the stopping time used for the safety distance; restart only with a reset button outside the cell, after the door is closed.
  3. Design the hardware and verify the PL. Category 3 with a dual-channel door switch, safety PLC and drives with STO. Enter the component data in SISTEMA 3.x and check that the achieved PL is at least d.
  4. Write the software safety specification. I/O list with channel pairing, discrepancy time, contactor or drive feedback monitoring, reaction to each detected fault, behaviour in every operating mode. Each line must trace back to the requirements specification.
  5. Pick the language and the lifecycle. The simplified V-model needs three conditions together: an LVL such as function block diagram, validated function blocks and verified hardware. It suits programs that mostly connect input blocks to output blocks, like SF-02. If any condition is missing, plan for the full V-model.
  6. Code with structure. Inputs checked in one block, logic in another, outputs assigned once. The standard program may read safety data but never write it.
  7. Review the code against the specification. A second person compares program and document line by line and records findings and fixes.
  8. Test every requirement. Black-box tests first, then boundary cases (discrepancy just under and just over the limit) and injected faults: one channel open, a cross-short between channels, a stuck feedback contact. Each test gets an ID, an expected result and an actual result.
  9. Validate per Clause 10. Follow a written validation plan, combine analysis with tests on the real machine, measure the stopping time, and file the evidence.
  10. Freeze the configuration. Record the program signature or checksum, program version, tool and firmware versions. After any later change, analyse the impact, repeat the affected tests and update the documents.

Official tools and documents

The standard itself is sold by ISO and by the national bodies; in Italy, by UNI. The German IFA publishes two free tools. SISTEMA calculates the PL: version 3.x targets ISO 13849-1:2023, version 2.x the 2015 edition. SOFTEMA applies the IFA matrix method for specifying, validating and testing safety application programs; IFA Report 2/2016 explains the method. Keep the PLC safety manual and the certificates of its function block library in the project file: they are your evidence that a block is validated.

Frequently Asked Questions (FAQ)

Should I design to the 2015 or the 2023 edition?

Check the list of harmonised standards in the Official Journal of the EU for the legislation that covers your machine. The Machinery Directive 2006/42/EC, transposed in Italy by Legislative Decree 17/2010, applies to machines placed on the market up to 19 January 2027; Regulation (EU) 2023/1230 applies directly from 20 January 2027.

Is Structured Text LVL or FVL?

It is not on the LVL list by default. It counts as LVL only when the programming flow is restricted by guidelines, compiler or tool, for example a safety editor that allows only a reduced instruction set. Ask the PLC manufacturer for a written statement and keep it in the file.

My safety PLC is certified for PL e. Is my function PL e?

No. The PL belongs to the whole chain: sensor, logic, actuator and wiring, plus the systematic measures on your software. A PL e logic unit with a single-channel switch and one contactor without feedback monitoring will not reach PL e.

What do I owe after changing the safety program?

An impact analysis showing which safety functions the change touches, repeated tests for those functions, an updated specification, a new recorded signature and a revision note.

IT EN