Machine Protection Systems in Accelerators
Machine Protection Systems in Accelerators
Protection, Newport Beach, US, 5–14 November 2014, edited by R. Schmidt, CERN-2016-002 (CERN, Geneva, 2016)
E. Carrone
SLAC National Accelerator Laboratory, Menlo Park, CA, USA
Abstract
Machine protection, as part of accelerator control systems, can be managed
with a ‘functional safety’ approach, which takes into account product life
cycle, processes, quality, industrial standards and cybersafety. This paper will
discuss strategies to manage such complexity and the related risks, with
particular attention to fail-safe design and safety integrity levels, software and
hardware standards, testing, and verification philosophy. It will also discuss
an implementation of a machine protection system at the SLAC National
Accelerator Laboratory’s Linac Coherent Light Source (LCLS).
Keywords
MPS; Functional Safety; PLC; SIL; Control Systems; Cyber Security.
1 A software problem
On 4 June 1996, the maiden flight of the Ariane 5 launcher ended in a failure. Only 39 s after initiation
of the flight sequence, at an altitude of about 3700 m, the launcher veered off its flight path, broke up,
and exploded.
During those first 39 s, the software generated a number too large for the system to handle: the
computer shut down and passed control to its redundant twin, which, being identical to the first, came
to the same conclusion and shut down a few milliseconds later. The rocket, now without guidance,
changed direction to compensate for an imagined error and collapsed in its own turbulence.
In general terms, the flight control system of the Ariane 5 is of a standard design. The attitude of
the launcher and its movements in space are measured by an inertial reference system. It has its own
internal computer, in which angles and velocities are calculated on the basis of information from an
inertial platform, with laser gyroscopes and accelerometers. The data from the inertial reference system
are transmitted through the databus to the onboard computer, which executes the flight program and
controls the nozzles of the solid boosters and the Vulcain cryogenic engine, via servo valves and
hydraulic actuators.
To improve the reliability of such a system, there is considerable redundancy at the equipment
level: two inertial reference systems operate in parallel, with identical hardware and software. One
inertial reference system is active and one is in ‘hot’ standby; if the onboard computer detects that the
active inertial reference system has failed, it immediately switches to the other one, provided that this
unit is functioning properly. Likewise, there are two onboard computers, and a number of other units in
the flight control system are also duplicated.
The launcher started to disintegrate at about 39 s into operation because of high aerodynamic
loads due to an angle of attack of more than 20° that led to separation of the boosters from the main
stage, in turn triggering the self-destruct system of the launcher. This angle of attack was caused by full
nozzle deflections of the solid boosters and the main engine.
These nozzle deflections were commanded by the onboard computer software on the basis of data
transmitted by the active inertial reference system. Part of these data at that time did not contain proper
0007–8328 – c CERN, 2016. Published under the Creative Common Attribution CC BY 4.0 Licence. 271
[Link]
E. C ARRONE
flight data, but showed a diagnostic bit pattern of the computer of the inertial reference system 2, which
was interpreted as flight data. The reason that the active inertial reference system 2 did not send correct
attitude data was that the unit had declared a failure due to a software exception.
The onboard computer could not switch to the back-up inertial reference system 1 because that
unit had already ceased to function during the previous data cycle (72 ms) for the same reason as inertial
reference system 2.
The internal inertial reference system software exception was caused during execution of a data
conversion from 64-bit floating point to 16-bit signed integer value. The floating point number that was
converted had a value greater than could be represented by a 16-bit signed integer. This resulted in an
operand error.
Among the causes:
— software reused from the Ariane 4 series (a rocket with different requirements);
— an error while converting a 64-bit floating point number to a 16-bit integer caused an overflow, a
custom floating point format for which the processor could have generated an exception error;
— some operations (in Ada code) on the computers are protected from bad conversions, but one was
disabled;
— the primary inertial sub-computer and its back-up both shut down because of this, and the primary
sub-computer started a memory dump;
— the main computer looked at the data dump and interpreted it as flight data. The nozzles swivelled
to their extreme position to try to ‘right’ the rocket, causing it to break apart.
The investigation committee issued many recommendations.
— No software function should run during flight unless it is needed.
— Prepare a test facility including as much real equipment as technically feasible, inject realistic
input data, and perform complete, closed-loop, system testing. Complete simulations must take
place before any mission.
— Organize, for each item of equipment incorporating software, a specific software qualification
review. Make all critical software a configuration controlled item.
— Review all flight software (including embedded software) and, in particular, identify all implicit
assumptions made by the code and its justification documents on the values of quantities provided
by the equipment. Check these assumptions against the restrictions on use of the equipment.
— Include participants external to the project when reviewing specifications, code, and justification
documents. Make sure that these reviews consider the substance of arguments, rather than
checking that verifications have been made.
— Give justification documents the same attention as code.
Many of these recommendations are applicable to accelerators. In this paper, we will discuss
procedures, systems, and techniques to handle and mitigate the risks related to designing, deploying and
operating machine protection systems.
272
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
2 Functional safety
2.1 Introduction
For classic electrical and electronics based systems, there are three ways to improve safety: reduce
component failure rate, increase diagnostics, and employ redundancy. Modern electronics, such as
programmable logic controllers, microcontrollers, field programmable gate arrays and application-
specific integrated circuits are powerful enough to be used to implement complex diagnostic schemes
and control strategy reconfiguration on fault detection; in many cases, redundancy can be implemented
with little cost increase. However, these features come at the cost of increased hardware complexity and
introduction of software, which is more difficult to verify and validate for safety applications.
273
E. C ARRONE
Fig. 1: V-model
2.3 Redundancy
Redundancy has different types and can be implemented at different levels. Sometimes it is two
capacitors on a circuit-board, in case one fails; other times it is the duplication of a whole system, such
as in some programmes of the 1950s, where redundancy was built into each and every component of an
entire missile. The most common redundancy employed is parallel redundancy, where redundant parts,
channels, or systems are active all the time. With a proper designed sensing and switching scheme,
standby redundancy can also be employed.
The standards ISO 14118 Safety of Machinery—Prevention of Unexpected Start-Up [1] and IEC
60204-1 Safety of Machinery, Electrical Equipment of Machines [2] both state that reliance on a single-
channel programmable electronic system is not recommended for safety. The IEC 60204-1
recommendation in particular is interpreted by many as an absolute ban on safety functions being
implemented by programmable electronic systems in the sector.
IEC 61508 Functional Safety of Electrical/Electronic/Programmable Electronic Safety-Related
Systems [3] has been published in recognition of the increasing use of this technology throughout a wide
range of industrial uses.
Failures can be divided into two categories: common cause and common mode. Common cause
failure is defined as one or more event causing concurrent failures of two or more separate channels in
a multiple channel system, leading to system failure. Common mode failures are failures of two or more
channels in the same way, causing the same erroneous result. Hardware redundancy is very effective in
improving reliability: in systems employing redundancy, common cause or common mode failures
usually dominate system-level failures. Compared with systems with identical duplicating components
and circuits, systems with diversity redundancy (non-identical components) are less vulnerable to
common cause and common mode failures.
To get the most out of redundancy, a managerial system is also required to determine, indicate,
mediate, and isolate failures such that both safety and availability can be achieved (e.g. four engines on
aircrafts).
274
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
275
E. C ARRONE
It is important not to simply put the system into a safe state, but also to inform those who can
resolve the situation: error reporting and monitoring services should be designed upfront, and should
define how operators should be kept informed.
276
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
derivable from considering only random failures, for probabilistic methods are not valid for the
analysis of systematic faults (those introduced, for example, through specification and design
errors). With software, which does not wear out and in which all faults are systematic, there is no
possibility of deducing system reliability by a method that is restricted to the consideration of
random failures.
Another feature of software is its inherent complexity. Not only is it impossible to prove the
absence of faults, but it would require an impracticably long time to derive high confidence in reliability
from testing. So a number of problems arise for the developer, who needs not only to achieve but also
to demonstrate safety.
The first consideration is that safety requirements may result from a risk analysis that may be
quantitative or qualitative. However, as software failures result from systematic and not random faults,
direct measurement of the probability of failure, or the probability of a dangerous failure, is not feasible,
so qualitative risk analysis must be employed. While the reduction of a given risk may be defined as the
specification of a software safety function, the tolerable failure rate of that function may be defined in
terms of a safety integrity level. Depending on the standard in use, the safety integrity level may or may
not be equated to numerical ranges of failure rates. Once risk analysis has led to a safety integrity level,
this is used to define the rigour of the development process. The higher the safety integrity level, the
greater the rigour, and tables are used in the standards to identify the methods, techniques, and
management processes appropriate to the various safety integrity levels.
When a safety integrity level has been used to define the level of safety to be achieved, it follows
that that safety integrity level should be the criterion against which a claim for the achieved safety is
made (and judged). But if numerical values for the expected failure rate of software cannot be derived
with confidence, it may not be possible to adduce proof of such a claim.
The IEC standard is based on a model relying on two entities: the equipment under control, which
is used to provide some form of benefit or utility, and a complementary control system.
The standard recommends that the hazards posed by the equipment under control and its control
system be identified and analysed and that a risk assessment be carried out. Each risk is then tested
against tolerability criteria to determine whether it should be reduced. If risks are reduced by redesign
of the equipment under control, we return to the starting point and hazard identification and analysis
and risk assessment should again be carried out.
When it is decided that risk-reduction facilities should be provided in addition to the equipment
under control and its control system, and that these should take the form of one or more electrical,
electronic, or programmable electronic systems, then the terms of the standard apply to it or them.
The risks posed by the equipment under control and its control system may be contributed to by
many hazards, and each must be mitigated until its risk is considered tolerable. The reduction of the risk
associated with each hazard is specified as a ‘safety requirement’ and, according to the standard, each
safety requirement must have two components: the functional requirement and the safety integrity
requirement. The latter takes the form of a safety integrity level.
In Part 4 of IEC 61508, safety integrity is defined as “the likelihood of a safety-related system
satisfactorily performing the required safety functions under all the stated conditions, within a stated
period of time” and a safety integrity level as “a discrete level (one of 4) for specifying the safety
integrity requirements of safety functions”. Thus, a safety integrity level is a target probability of
dangerous failure of a defined safety function.
The totality of the safety requirements for all hazards forms the safety requirements specification.
Safety requirements are satisfied by the provision of safety functions, and in design these are
implemented in ‘safety-related systems’. The safety integrity levels of the safety requirements become
those of the safety functions that will provide them, and then of the safety-related systems on which the
277
E. C ARRONE
safety functions are to be implemented. The separation of safety-related systems from the equipment
under control and its control system (as by the provision of a protection system) is preferred. However,
safety functions may also be incorporated into the control system and, when this is done, certain rules
apply, to ensure that higher safety integrity level functions are not affected by the failures of lower safety
integrity level functions.
Two classes of safety integrity level are identified, depending on the service provided by the
safety function (Table 1):
— for safety functions that are activated when required (on demand mode), the probability of failure
to perform correctly is given;
— for safety functions that are in place continuously (continuous mode), the probability of a
dangerous failure is expressed in terms of a given period of time (per hour).
The standard defines a low-demand mode of operation as ‘no greater than one [demand] per year’.
Since, in approximate terms, a year is taken to consist of 104 hours, assuming a failure rate of once per
year, the safety integrity level 4 requirement for the low-demand mode of operation is no more than one
failure in 10 000 years. If there is to be no more than one demand per year made on a protection system,
the equipment under control and its control system must have a dangerous failure rate of no more than
once per year, or 10−4. However, arriving at this conclusion can be problematic because doing so is at
the very limit of practical testability.
The failure rates attached to safety integrity levels for continuous operation are even more
demanding (by a factor of 104) and are intended to provide targets for developers. Because a system—
certainly not a software-based system—cannot be shown to have met them, they are intended to define
the rigour to be used in the development processes. Safety integrity level 1 demands basic sound
engineering practices, such as adherence to a standard quality system, repeatable and systematically
documented development processes, thorough verification and validation, documentation of all
decisions, activities and results, and independent assessment. Higher safety integrity levels, in turn,
demand this foundation plus further rigour.
The value of the safety integrity level lies in providing a target failure rate for the safety function
or safety-related system. It places constraints on the processes used in system development, such that
the higher the safety integrity level, the greater the rigour that must be applied. The processes defined
as being appropriate to the various safety integrity levels are the result of value judgements regarding
what needs to be done in support of a reasonable claim to have met a particular safety integrity level.
However, the development processes used, however good, appropriate, and carefully adhered to, do not
necessarily lead to the achievement of the defined safety integrity level. Even if, in a particular case,
they did, the achievement could not be proved. But, even if evidence is insufficient to show that the
safety integrity level requirement has been met, it does increase confidence in the system and its
software.
Although the safety performance is the primary design objective, availability should also be
considered. Large physics facilities are expensive investments; their productivity is critical financially
and matters for the sake of science. Hence, there are always system-availability requirements for the
278
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
project or the facility, and the availability of the indispensable safety system sets an upper bound for the
whole facility’s availability.
279
E. C ARRONE
International standards have been developed through a process that is open to participation by
representatives of all interested countries, and that is transparent, consensus-based, and subject to due
process.
Standards may also be classified by the intended user group, for example:
— organization standards are meant for use by a single industrial organization and are usually
developed internally;
— industry standards are developed and promulgated by an industry for materials and products
related to that industry;
— government standards are developed and promulgated by federal, state, and local agencies to
address needs or applications peculiar to their missions and functions;
— international standards are developed and promulgated by international governmental and non-
governmental organizations, such as the International Organization for Standardization (ISO);
— harmonized standards can be either an attempt by a country to make its standard compatible with
an international, regional, or other standard, or it can be an agreement by two or more nations on
the content and application of a standard, the latter of which tends to be mandatory.
280
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
281
E. C ARRONE
2.8 Tests
Testing is a process rather than a single activity, and starts as early as the system requirements
specification. The choice of testing frequency definitely affects system reliability; the system design
should accommodate such requirements, including setting up the test mode to facilitate testing. It is easy
to see from the V-model that testing activities are a necessary step in completing every activity.
Activities within the fundamental test process fall into the following basic steps (we will focus more on
software tests, but the same principles apply to hardware tests):
1. planning and control;
2. analysis and design;
3. implementation and execution;
4. evaluating exit criteria and reporting;
5. test closure activities.
282
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
283
E. C ARRONE
— log the outcome of test execution and record the identities and versions of the software under
tests;
— compare actual results with expected results;
— report discrepancies between actual and expected results.
The test log is used for the audit trial. A test log records the test cases that were executed, in what
order, who executed that test cases and the status of the test case (pass or fail).
284
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
[Link] Programmable logic controller or field programmable gate array bench test
This is part of the programmable logic controller or field programmable gate array software quality
assurance activity; it demonstrates that the programmable logic controller field programmable gate array
logic satisfies the specification.
285
E. C ARRONE
286
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
287
E. C ARRONE
2.11 Documentation
Document management is the process of applying policies and rules to how documents are created,
maintained, and archived within an organization. Document collaboration is merely the process of
checking out, checking in, and versioning a document before it is published. Records management
encompasses all of the functions of document management, but applies them to a broader set of content
elements—not just documents.
The main aspects of managing a document through its life cycle include the following.
— Creation: Methods for envisioning, initiating, and collaborating on a new document’s
development.
— Location: There must be a physical location where documents will be stored and accessed.
Usually, most documentation management systems require single-instance storage of a document
so that there is only one version of the truth.
— Authentication and approval: Methods of ensuring that a document is fully vetted and approved
before it is considered to be official compliant communication from the organization.
— Workflow: This describes the series of steps needed to pass documents from one person to another
for various purposes, such as to gain approval to publish the document or to collect signatures on
a document.
— Filing: For electronic systems, a document is filed by placing it in a physical location and then
attaching metadata to the document. The metadata files the document logically by allowing the
document to be found based on the metadata values assigned to the document.
— Distribution: Methods of getting the document into the hands of the intended readers.
— Retrieval: Methods used to find the documents, such as querying the index for keywords or using
search alerts to find new content that meets the query keywords.
— Security: Methods used to ensure the document’s integrity and security during its life cycle.
— Retention: Organization’s policies and practices that inform everyone how long different
document types are retained by the organization.
— Archiving: Similar in concept to retention, the differing characteristic is that archiving is a subset
of retention policies. Archiving focuses on the long-term retention of documents in a readable
format after the document’s active life has ended. Subsumed in this category is the expiration of
documents after they no longer need to be retained.
288
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
2.12 Cybersafety
Traditional network security risk management techniques are often inadequate to meet the specialized
needs of control systems, whose security represents a unique challenge. Generally speaking, control
systems are designed for accuracy, extreme environmental conditions, and real-time response in ways
that are often incompatible with the latest cybersecurity technologies, inconsistent with consumer-grade
hardware and software, and in conflict with common network protocols. As a result of these performance
factors and limitations, engineers (rather than IT managers) have traditionally been responsible for the
design, operation, and maintenance of control systems. Yet, despite their uniqueness, control systems
are increasingly reliant on common network protocols, and connectivity often exists between control
systems and enterprise networks, to include the Internet (Fig. 2).
How does an organization ensure that its supervisory control and data acquisition system is
secure? One of the answers is in standard ISA-99.02.01 (Security for Industrial Automation and Control
Systems: Establishing an Industrial Automation and Control Systems Security Program), approved and
published by the American National Standards Institute (ANSI). This readable standard lays out seven
key steps for creating a cybersecurity management system for use with supervisory control and data
acquisition and control systems.
The steps in ISA-99.02.01 are divided into three fundamental categories: risk analysis, addressing
risk with the cybersecurity management system, and monitoring and improving the cybersecurity
management system.
1 The first category lays out the stages an organization needs to follow to assess its current security
situation and determine the security goals it wants to achieve.
2 The second category outlines processes to define security policy, security organization, and
security awareness in the organization and provides recommendations for security
countermeasures to improve supervisory control and data acquisition system security. The core
idea in this section is a concept known as ‘defence in depth’, where security solutions are carefully
layered to provide multiple hurdles to attackers and viruses.
3 The third category describes methods to make sure a supervisory control and data acquisition
system not only stays in compliance with the cybersecurity management system but follows a
continuous improvement programme.
289
E. C ARRONE
2.13.1 Framework for Improving Critical Infrastructure Cybersecurity (US National Institute of
Standard, NIST, February 2014): a system of regulations and the means used to enforce
them
The framework is based on:
— core functions (activities and references);
— implementation tiers (guidance);
— a framework profile (how to integrate cybersecurity functions within a cybersecurity plan).
The framework consists of four implementation tiers, each defined for three categories—risk
management process, integrated risk management programme, and external participation. Any
organization will follow into one of these three categories.
290
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
291
E. C ARRONE
— External participation: The organization understands its dependencies and partners and receives
information from these partners that enables collaboration and risk-based management decisions
within the organization in response to events.
2.13.2 NIST Special Publication (SP) 800-53 (Computer Security Guide)—Revision 4, April 2013
This standard is based on an information security programme: it covers risk assessment; policies and
procedures; subordinate plans; training; periodic testing; incident response; and continuity of operations.
The standard is mission-oriented. It is based on FIPS 199 (Federal Information Processing
Standard) for Security Categorization of Federal Information and Information Systems, and it includes
definitions of security control categories for information systems (based on the key aims of
confidentiality, integrity, availability).
The standard is also based on the impact on an organization’s capability to accomplish its mission.
(There is a full catalogue, including access control, awareness and training, audit and accountability,
authentication, maintenance, media protection and access.)
[Link] ISA-TR99: Integrating Electronic Security into the Manufacturing and Control System
Environment
This standard is a guide to user and manufacturers. It can be used to analyse technologies and determine
their applicability in securing manufacturing and controls.
[Link] IEC 27001:2005: Common Criteria (CC) for Information Technology Security Evaluation
This is a system to bring information security under explicit management control through policies and
governance; asset management; human resources security; access control; incident management;
business continuity; etc.
292
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
293
E. C ARRONE
The machine protection system (see Fig. 3) is able to reduce the beam rate only to below the
operators’ requested beam rate, and cannot raise the beam rate above operators’ requested beam
rate. Separate systems support the machine protection system, to protect other energized devices
such as power supplies, magnets, and klystrons. A separate beam containment system ensures that
no beam or radiation reaches potentially occupied areas. To perform its functions, the machine
protection system relies on a set of inputs and output signals (see Fig. 4).
3.1 Inputs
294
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
Fig. 4: Board diagram. EPICS, Experimental Physics & Industrial Control System; I/O, input–output; MPS,
machine protection system.
3.1.4 Sensors
There are a number of sensors. These include sensors for:
— vacuum valve position;
— water flow status;
— magnet power supply status;
— temperature;
— in-beam diagnostics status;
— beam position;
— beam charge;
— RF system status;
— beam containment status;
— beam loss.
295
E. C ARRONE
3.3 Architecture
The system (Fig. 6) is based on a (dedicated, private) star network (Fig. 7) consisting of two entities:
link processor and link nodes (interconnected over a private Gb ethernet network).
The machine protection system determines the maximum allowed beam rate by processing device
fault input signals (from link nodes and input multiplexers) with a rate-limiting algorithm (executed on
the link processor).
— The link node is the collection point of all sensor signals; it integrates sensor subsystems and
drives mitigation devices.
— The link processor, in turn, runs the machine protection system control algorithm and makes
decisions based on sensor states and interfaces to the timing system.
296
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
Fig. 6: Conceptual architecture diagram: CA, channel access; Dev, device; ENET, ethernet; EPICS, Experimental
Physics & Industrial Control System; EVR, event receiver; GbE, Gb ethernet; LCLS, Linac Coherent Light
Source; Lsr Htr, laser heater; Mech., mechanical; MPS, machine protection system; PS, power supply.
297
E. C ARRONE
Fig. 7: Network architecture: EVG, event generator; IMPS, interface message processor system; IP, Internet
protocol; MPS, machine protection system.
The link processor (a Motorola MVME 6100) has two copper Gb ethernet interfaces, a serial
console port, and two peripheral component interconnect mezzanine card sites, along with an MPC7457
PowerPC processor that runs at 1.267 GHz, with 1 GB of RAM. The link processor’s serial port is
connected to a terminal server, a 1 Gb ethernet interface is used for high-speed communication with link
nodes; the other is used for communication with the LCLS control system. It also sends synchronization
and permit messages to link nodes. It faults all link node inputs to link nodes that provide a response
within 8.3 ms.
The 32 LCLS link nodes are responsible for debouncing and latching digital inputs, digitizing
analogue signals and comparing them with fault thresholds, and controlling the machine protection
system mitigation devices. Link nodes are rack-mountable devices and occupy three rack units in a
19 inch rack. Built around the Xilinx Vertex four-field programmable gate arrays, each link node can
be configured to support up to 96 digital inputs, 8 solid-state relay outputs, 4 TTL-compatible logic level
trigger inputs, and 4 trigger outputs. One of each link node’s two small form-factor pluggable slots is
filled with a fibre-optic transceiver for high-speed communication with the link processor over the Gb
ethernet. A full speed USB 1.1 port provides serial communication with the field programmable gate
array while a separate DE-9 serial port gives access to the link node’s EPICS (Experimental Physics &
Industrial Control System) input–output controller serial port. The input–output controller serial ports
are connected to terminal servers.
Four interface board slots allow signal conditioning to be placed between incoming signals and
the link nodes’ Industry Pack cards. Commercial off-the-shelf analogue-to-digital converter and digital-
to-analogue converter Industry Pack cards are used to control and read back beam loss monitor high-
voltage power supply voltages. A charge-integrating analogue-to-digital converter (QADC) Industry
Pack card is used to digitize up to eight protection ion chamber or beam loss monitor signals, allowing
each link node to monitor up to 32 analogue signals. The digitized signals are compared in the link node
field programmable gate array against thresholds set by the link node’s input–output controller via
EPICS. Only the Boolean results of these comparisons are sent to the link processor for fault mitigation.
3.4 Communication
All time-critical data are transmitted over the machine protection system’s dedicated Gb ethernet
network using the user datagram or Internet protocol. The link processor uses a real-time protocol stack
298
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
originally created for the LCLS beam position monitor data acquisition system. The real-time protocol
stack not only provides deterministic behaviour for the messaging, but also allows ordinary network
hardware and software tools to be used to build and test the system, since no new protocols are
introduced. On the link node side, the network stack is implemented in the field programmable gate
array firmware. A stack of dedicated Gb ethernet switches connects the link nodes and the link processor
These switches queue and serialize concurrent data sent to the link processor and also handle the
physical layer conversion of the link processor’s copper and the link nodes’ fibre Gb ethernet
connections.
When the link processor is woken by the 360 Hz signal from the LCLS timing system, it
broadcasts a synchronization message to all link nodes, requesting updated fault data, and providing the
timing system’s newest time-stamp. In response, the link nodes send the link processor a time-stamped
status message containing all unacknowledged machine protection system device faults that have
occurred since the previous synchronization message. The link processor copies the fault data to local
buffers and returns the status message to the source link node. The link node uses this message as an
acknowledgement of the faults that the link processor has received. All faults are latched in the link
nodes and are cleared only when the link processor has acknowledged the fault and the fault itself has
been cleared.
The link processor processes the faults using the currently running machine protection system
logic and broadcasts a permit message to the link nodes. Link nodes allow the beam past their connected
mitigation devices for 1/360 s if permitted. If a permit message is not received or if the beam is not
permitted, link nodes stop the beam at their mitigation devices.
299
E. C ARRONE
300
C ONTROLS AND M ACHINE P ROTECTION S YSTEMS
Acknowledgements
The author wishes to thank M. Boyes and F. Tao of SLAC for many fruitful conversations and their
insights on machine protection systems for accelerators.
References
[1] ISO 14118 Safety of Machinery—Prevention of Unexpected Start-Up.
[2] IEC 60204-1 Safety of Machinery, Electrical Equipment of Machines.
[3] IEC 61508 Functional Safety of Electrical/Electronic/Programmable Electronic Safety-Related
Systems.
301
E. C ARRONE
Bibliography
Centre for Chemical Process Safety, Guideline for Safe Automation of Chemical Processes,
(AIChE/CCPS, New York, 1993).
SLAC, Guidelines for Operations (SLAC, Menlo Park, CA, 2008).
R. Langner, Robust Control System Networks (Momentum Press, New York, 2012).
W. Stallings, Network and Internetwork Security (IEEE Press, New York, 1995).
W.M. Goble, Evaluating Control Systems Reliability (ISA, Research Triangle Park, NC, 1992).
E. Marszal and E. Scharpf, Safety Integrity Level Selection (ISA, Research Triangle Park, NC, 2002).
D. Smith, Reliability, Maintainability and Risk (Butterworth-Heinemann, Burlington, MA, 2007).
W.M. Goble and H. Cheddie, Safety Instrumented Systems Verification (ISA, Research Triangle Park,
NC, 2005).
C.A. Ericson II, Hazard Analysis Techniques for System Safety (Wiley-Interscience, Hoboken, NJ,
2005). [Link]
H.E. Roland and B. Moriarty, System Safety Engineering and Management (Wiley-Interscience,
Hoboken, NJ, 1990).
E. Schlosser, Command and Control: Nuclear Weapons, the Damascus Accident, and the Illusion of
Safety (Penguin, New York, 2014)
R.A. Stephans, System Safety for the 21st Century (John Wiley and Sons, Hoboken, NJ, 2004).
[Link]
K. Belt, Certification Frequency (SLAC Memorandum, Menlo Park, CA, 2012).
PICMG MTCA.0, revision 1.0, 2006-07-06, and revisions 2, 3, and 4.
IEC 62381: Automation Systems in the Process Industry—Factory Acceptance Test (FAT), Site
Acceptance Test (SAT) and Site Integration Test (SIT), 2006.
ANSI/ISA 84.00.01 (IEC 61511 Mod).
IEC 61511 Committee Draft, 2012.
ANSI/ISA TR84.00.03.
302
The IEC 61508 standard specifies safety integrity levels (SILs) as discrete levels (one of four) for defining the safety integrity requirements of safety functions. These levels guide the rigor of the development process: higher SILs necessitate more stringent methods, techniques, and management processes. They determine the probability of failure on demand, with safety integrity levels inversely indicating the reliability of performing necessary safety functions under all specified conditions within a defined time. This standard helps develop a robust management of systems from design through decommissioning to control failures from both random hardware failures and systematic faults .
Redundancy in machine protection systems provides safety and reliability by incorporating multiple failsafe mechanisms to mitigate faults. For instance, separate systems support the main protection system to safeguard other critical components like power supplies and magnets. Additionally, systems like the Linac Coherent Light Source (LCLS-I) machine protection system utilize redundant signals and checks, such as having two limit switches per obstruction to avoid false readings, thereby ensuring the system operates safely even if one component fails. Redundancy ensures that no single point of failure can lead to catastrophic outcomes .
The machine protection system at the Linac Coherent Light Source handles beam faults by detecting and mitigating conditions that may damage sensitive components, like magnets and beamline parts. Its core functionalities include turning off the beam or reducing its rate upon fault detection, protecting devices from excessive radiation, and ensuring recovery post-correction of a fault. It uses a combination of input signals and output devices, like mechanical shutters and fast kickers, to control the beam path dynamically. A user interface allows for quick fault analysis and configuration adjustments, enhancing operational safety and efficiency .
In high-frequency operations at LCLS-I, such as 120 Hz, beam loss is promptly detected and mitigated by employing sensitive beam loss monitors and preemptive fault identification protocols. These monitors, located strategically along the beam path, assess beam conditions aligning with arrival times. If thresholds are exceeded, immediate action is triggered, with lower faults causing the beam rate to be reduced and higher faults shutting off the beam. This swift detection and response mechanism, designed to function within 8.3ms, ensures timely fault response, critical for preventing damage and maintaining operational stability .
Integrating functional safety standards like IEC 61508 across various industries ensures consistent safety management practices, emphasizing systematic and comprehensive risk assessments. The IEC 61508’s sector independence is crucial because it provides a universal framework adaptable to specific industrial contexts, such as nuclear and radiological, without being overly prescriptive. This flexibility allows different sectors to apply standardized safety principles while tailoring solutions to their unique risk profiles and operational requirements, promoting safety without stifling innovation .
Human decision-making significantly influences the efficiency of error reporting systems in safety-critical environments. Optimized systems should be designed to not only capture errors but also communicate them effectively to personnel who can resolve them. This involves clear guidelines for error monitoring services, real-time notifications, and structured communication channels to ensure timely interventions. Instead of solely entering a safe state, systems should automatically inform operators with sufficient context to facilitate rapid diagnosis and remediation, preventing prolonged downtimes or unseen damage .
NIST SP 800-82 standard enhances Cyber-Physical System security in high-risk environments like laboratories by formalizing a defense-in-depth strategy. It includes layering security mechanisms to mitigate impacts from any single mechanism's failure, implementing robust network topologies, logical separations between networks, and fault-tolerant designs. Specifically, it ensures clear demarcation of boundaries and interfaces and employs rigorous policies for Internet connection sharing, further enhanced by encryption and privilege management. Such measures ensure comprehensive security management under regulatory compliance, crucial in sensitive environments .
The safety integrity level (SIL) dictates the rigor and scope of methods and processes employed during system development. Higher SILs require more rigorous, methodical approaches, demanding careful management and documentation, rigorous testing, and enhanced quality assurance processes. SIL acts as a performance target for safety-related functions, ensuring that all functional requirements meet the lowest probability of dangerous failures, thus directly impacting the development techniques and management practices invoked to achieve these safety objectives .
The complexity of software has made traditional safety analysis methods, which focused on random failures, less effective. Software faults are inherently systematic, originating from specification and design errors, and cannot be accounted for using probabilistic methods that consider only random failures. As a result, it has become challenging to deduce system reliability solely from historic reliability data or fault tree analysis. This shift has led developers to use qualitative risk analysis and more rigorous development processes to ensure and demonstrate safety, as it is impractical to prove the absence of faults in complex software systems .
The adoption of a risk-based approach in functional safety allows for a more tailored safety function and safety integrity level assessment, where each application conducts a risk assessment to determine the necessary safety measures. This contrasts with traditional methods that rely on descriptive standards and regulations aiming at a bottom-line protection, which might be too conservative for certain applications. This approach avoids over-design or under-design by considering the specific risks associated with each application, thus enabling a more efficient use of resources .