MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you track down a double-coil problem step by step?
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 do you track down a double-coil problem step by step?

A double coil means the same output (Y) or flag is driven in more than one place. The consequence is "the latter overwrites the former" — only the drive latest in scan order takes effect, and the machine shows the classic "logic looks right, motion is wrong" disease. Do not hunt by eyeballing code: follow "locate → analyse → restructure" and close it in ten minutes. The steps below show how.

1. Step one: locate with tools, not with eyes

ToolWhereUse
Cross-reference / usage listProgramming-software menu (find → device usage)Lists every network driving or referencing Y0
Double-coil checkCompile check item (most software has one)The compile report lists the duplicate-coil set
Full-program searchSearch OUT Y0 / OUT M10The manual fallback when tools falter

Run the compiler's double-coil check first to get the list (which device, which networks, which rows); then open each cross-reference to confirm. Distinguish "true double coils" (two OUTs on one coil) from "legal repeats" (SET/RST in several places, or mere contact references — harmless); the checker may report SET/RST usages, which are usually fine.

2. Step two: analyse the intent of both drives

Having found two OUT Y0s, classify:

CaseTell-taleDirection
Written by two different functionsDifferent titles, different zonesA genuine design error — must be restructured
Leftover commissioning codeComment says "temp"/"test", or noneDelete the temp code, keep the formal logic
Old logic forgottenBoth drives nearly identicalDelete old, keep new, check the change log
Deliberate overrideComment documents the override intentConfirm the intent is sound — otherwise restructure anyway

Remember scan order: within one scan, the later OUT wins — so "why does my start logic do nothing" usually means a later OUT brushed it away.

3. Step three: restructure and kill the root cause

The standard restructure: neither drive writes Y directly; each writes its own intermediate (M_OUT_A, M_OUT_B), and one line in the output summary merges: OUT Y0 = M_OUT_A OR M_OUT_B, AND interlocks. Now: ① the double coil is gone; ② both intents survive; ③ the interlock sits in one place. More than two sources generalises the same way — N intermediates ORed together.

Another restructure class: when both drives are really two phases of one thing (conveyor driven in step 3 and step 7), use a single coil with conditional expression: OUT Y0 = (step3 AND conditionA) OR (step7 AND conditionB) — one drive, all stage conditions stated.

4. Prevention: starve double coils of habitat

RuleDetail
Output-summary-zone regimeAll Ys driven once, only in the summary; process logic writes intermediates only
Double-coil check always onTick it as a mandatory compile check; treat every report
Tag commissioning codeDebug code in a dedicated M zone labelled "temporary"; delete at close-out
Prefer SET/RSTStart/stop written as SET/RST naturally avoids repeated OUTs

5. Symptom-to-action table

SymptomLikely causeAction
An output occasionally ignores its logicTwo OUTs competing by scan orderCross-reference the OUT sites
Coil lit in monitor but machine idleA later OUT clears it in another branchRead the double-coil report
Outputs stutter at mode changeManual and auto each driving the same YRestructure into the summary merge
Fixing one place breaks anotherTwo OUTs were one thing split in halfMerge to a single conditional coil

6. Notes

A double coil is not a syntax error, it is a structure error: two wills driving one output, scan order deciding the winner — behaviour uncertainty follows. The three-step fix treats the symptom and the disease, but the real cure is the output-summary-zone rule: it leaves double coils nowhere to live.

7. References

The overwrite behaviour follows the PLC's programming manual (cyclic scan execution); compiler check settings follow each software manual; the output-summary and unified-interlock structure follows IEC 61131-3 engineering practice, and safety output staging follows GB 5226.1 / IEC 60204-1.

8. Cautions

⚠️ Three traps to avoid:
① Deleting one OUT and walking away without asking what each drive intended — the needed one may be the deleted one;
② Restructuring and forgetting to carry the interlock conditions — the merged output loses its protection;
③ Confusing multi-site SET/RST with double coils and deleting legitimate logic.

On taking over any old program, run the double-coil check first and park the list in the "technical debt" notes, paid down as maintenance proceeds.

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