Two PLC Transitions Turn True Together? Decide Which One Wins
- PLC Play Ground
- 0
- Posted on
A sequence needs a defined outcome when more than one transition is true. If rare conditions send it down an unexpected path, inspect transition priority and whether several assignments can occur in one execution.
Original arbitration example; actual branch semantics vary by language.
What is happening?
Selection branches and hand-coded state machines implement arbitration differently. Some evaluate ordered alternatives; independent IF statements may all execute. The approved functional requirement must define which event takes precedence.
Check these five things
-
List transitions leaving the affected state.
-
Identify combinations that can be true simultaneously.
-
Read branch evaluation semantics or trace assignment order.
-
Make priority or mutual exclusion explicit.
-
Test competing events in simulation.
Worked example
A teaching sequence sees both completion and an operator cancellation in the same cycle. Two independent assignments make the last executed assignment win. That accidental source order may not match the requirement, so the transition decision should be reviewed explicitly.
Quick diagnostic reference
| Combination | Required decision |
|---|---|
| Completion only | Normal next state |
| Cancellation only | Defined cancellation path |
| Both | Documented priority |
The mistake to avoid
Reordering rungs can change behavior without changing any conditions. Treat ordering-dependent arbitration as part of the design and test it after refactoring.
How to verify the fix
Record outcomes for every competing transition pair and applicable larger combinations. Confirm diagnostics identify the selected reason rather than showing a contradictory later condition.
Field-work boundary: These are educational diagnostic guides. Use the exact equipment manuals and approved site procedures. Electrical testing and machinery changes belong to qualified, authorized personnel; control hazardous energy and validate affected functions before release.
Technical reference
Rockwell Automation: Sequential Function Charts. The examples and diagnostic tables above are original teaching material; they do not replace the product manual.
