MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How is a set-dominant function block most often misused?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How is a set-dominant function block most often misused?

Set-dominant: when set and reset arrive together, the output goes ON — set wins. That temperament is excellent for "recording that something happened" and catastrophic for "driving a mechanism". The three misuse hotspots are start/stop logic, the E-stop path and alarm reset. Each is explained below: why it is wrong and how to fix it.

1. Hotspot one: start/stop of power mechanisms

The classic wrong code: start condition SET M10, stop condition RST M10, but the SET sits later in the network order (or the block pins are swapped) so set wins the conflict. Consequence: the operator holds stop / the E-stop feedback is active while a start condition still hangs (a stuck interlock contact, an un-released jog), and the motor starts anyway. "Pressing stop starts it" is an injury-class field accident.

The correct form: power outputs are always reset-dominant (RS), with the stop condition also wired in series into the output branch as double insurance (see the reset-dominant article).

2. Hotspot two: the E-stop handling path

Wrong patternRisk sceneConsequence
E-stop signal sets an "E-stop state" memory, set-dominantE-stop and an auto-recovery pulse land in the same scanWhen the recovery signal arrives one beat early, the E-stop memory cannot hold and the flow resumes prematurely
A set-dominant block holds a "run allowed" flag through the E-stopE-stop and run flag active togetherThe flag wins and the machine continues its flow in an E-stop state

The right E-stop architecture is not "picking a dominant" but "no memory at all": the hard-wired E-stop loop cuts power directly, and the PLC receives the result and resets the flow. Any design that needs a block's memory to hold a safety state is wrong at the root.

3. Hotspot three: alarm reset

The wrong form: reset button SET "run allowed", alarm condition RST "run allowed", with the reset path set-dominant — alarms still active, operator presses reset, the allow flag sets anyway, and the machine restarts sick. The correct form inverts it: reset is invalid while any alarm persists (alarm dominates reset), i.e. "reset allow = reset button AND NOT any active alarm".

4. Why these three spots keep failing

ReasonDetail
Naming trapSR/RS swap meanings across platforms; wiring from memory wires it backwards
Casual orderingIn ladder, network order decides SET/RST priority — reordering networks silently flips the dominant
Undetectable in normal testsConflict only appears when stop and start coincide; sequential button tests never reveal it
Reviews skip the conflict rowNobody asks "with S = R = 1, what is the output?"

5. Three hard rules against misuse

① Duty red line: set-dominant outputs may only drive indication/recording devices (first-out alarms, event flags, latched markers); any memory that ends at a Y or a mechanism is reset-dominant — write it into the team standard; ② truth-table verification: at review, ask the fourth row on the spot ("S = R = 1 → output?"); no answer, send it back; ③ conflict testing: the commissioning plan mandates a "start/stop conflict test" — hold stop while applying start, output must go OFF; force the E-stop and apply start, it must stay invalid.

6. Correct uses of set-dominant, for contrast

Correct useWhy it fits
First-out alarm latchingAmong simultaneous alarms the first must be remembered; later resets keep the "first fact"
"Has reached upper limit" markerFor diagnostics afterwards; conflicts preserve the fact it happened
First fault code recordDiagnostics need the first scene; records beat later clears

The shared trait is plain: the outputs are "information for people", not "actions for the machine". When information conflicts, err on keeping it; when actions conflict, stop — that line separates the two dominants.

7. Notes

The root of set-dominant misuse is mixing "memory" with "drive" in one block. Split them and it resolves: memory (did it happen) may be set-dominant; drive (shall the mechanism move) must be reset-dominant with the stop wired in series. The block is fine — it was placed in the wrong job.

8. References

SR/RS definitions follow IEC 61131-3; stop dominance and E-stop follow GB 5226.1 / IEC 60204-1; design and verification of safety-related logic follow GB/T 16855.1 (ISO 13849-1).

9. Cautions

⚠️ Three traps to avoid:
① Copying SR/RS wiring across platforms — the dominant silently inverts;
② Reordering ladder networks and flipping SET/RST priority without regression testing;
③ Never testing the conflict case (stop + start together) — it surfaces on the customer's floor instead.

Put "start/stop conflict test" and "E-stop + start test" into every machine's commissioning plan as fixed items — five minutes each, buying out a whole class of accidents.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL