What the matrix says
A cause and effect matrix, often written C&E, is a table. Each row is a cause: a condition of the process, such as a low level or a high pressure. Each column is an effect: something the plant does about it, such as stopping a pump or closing a valve. A mark at a crossing means "this cause produces this effect".
| Cause | Stop feed pump P-101 | Close inlet valve XV-101 | Open flare valve XV-901 |
|---|---|---|---|
| LSLL-101 Tank level low-low | X | ||
| PSHH-201 Digester pressure high-high | X | X | X |
| ESD-001 Emergency stop pressed | X | X |
Read a row to see everything one cause does. Read a column to see everything that can stop one piece of equipment. The logic is built from the columns.
The mapping, in five rules
1. Each cause becomes one conditioned signal
A raw input is not yet a cause. Give each cause its own bit, built from the input with:
- the setpoint, if the input is analog,
- a delay, so that a splash or a spike does not trip the plant,
- a rule for a failed transmitter: decide whether a bad signal counts as the cause, and
- voting, if several transmitters measure the same thing, such as two out of three.
2. Each effect is the OR of its causes
Go down the column. Every marked cause goes into one OR. The result is the trip of that equipment.
Trip_XV101 = PSHH_201 OR ESD_001
Open_XV901 = PSHH_201
In ladder, that is one rung per effect with the causes as parallel branches.
3. A trip latches, and needs a reset
If the pump restarts the moment the level recovers, the plant cycles on its own. A trip is latched when its cause appears. It is released only when the cause has gone and the operator has pressed reset.
Reset: if Reset_PB and not Trip_P101 then P101_Tripped = 0
Run permit: P101_Permit = not P101_Tripped
4. Record the first cause
One trip often sets off others within a second. Capture which cause arrived first and show it to the operator, or every shutdown becomes an investigation.
5. A bypass is visible and limited
Maintenance sometimes needs to override a cause. Give each bypass its own bit, show it on the screen, record who set it, and decide which causes may never be bypassed.
What the matrix often leaves out
These are the questions to put to the process engineer before writing any logic. They cause most of the rework at site.
- Does the cause act while the equipment is stopped, or only while it runs? A low-flow trip must be ignored for some seconds after a pump starts.
- What does each valve do on a trip: close, open or stay?
- After a reset, does the equipment restart by itself, or wait for the operator?
- Which trips need a reset at the panel, and which from the screen?
- What happens to a sequence that was running when the trip came?
Testing it
The matrix is also the test plan. For every cause, force it and check two things: that every marked effect happens, and that no unmarked effect does. The second half is the one usually skipped.
- Start from a healthy, running state.
- Make one cause true for longer than its delay.
- Compare every effect with its column. All marked ones must act and all others must not.
- Clear the cause. Nothing may restart until reset.
- Reset, and check that the plant returns as agreed.
Done by hand at site, this takes days. Done on an emulator before the panel leaves the works, it takes minutes and can be repeated after every change.
Where generated logic fits
Because the mapping is so regular, it is the first part of a PLC program that a tool can write and test for you. That is what Prakriya, our PLC and SCADA program generator, is being built to do: read the cause and effect, the control philosophy and the I/O list, write the logic, and run it against a simulated plant before it reaches a controller.
This guide covers process interlocks in the basic control system. Safety instrumented functions come under IEC 61511 and are outside it.
Questions people ask
What is a cause and effect matrix?
It is a table that lists process conditions, the causes, down one side and plant actions, the effects, across the top. A mark where a row meets a column means that cause produces that effect, such as a low level stopping a pump.
What is the difference between a permissive, an interlock and a trip?
A permissive must be true before something may start. An interlock stops or prevents an action while a condition is present. A trip stops equipment and stays latched until the cause has cleared and someone resets it.
Can PLC code be generated from a cause and effect matrix?
Yes, because the mapping is regular: each effect is the OR of the causes marked in its column. What a generator needs in addition are the details in this guide: delays, voting, latching, reset and bypass rules.
Is this enough for a safety system?
No. Safety instrumented functions are designed, built and tested under IEC 61511, in a safety controller, by people competent for that work. This guide is about process interlocks in the basic control system.