PLC Skill
Treat this as a general PLC skill with explicit vendor routing, not as a vague all-brands encyclopedia.
Work in two layers:
- Common PLC layer
- Vendor-specific layer when the platform is identifiable
Always keep these layers separate.
Operating model
First decide whether the request is actually a PLC/programming task.
Then classify it as one of:
- common PLC question with no confirmed vendor
- vendor-specific PLC question
- mixed / ambiguous vendor question
- out-of-scope non-PLC question
If the vendor is known, use the matching vendor references first for environment, terminology, program organization, instruction semantics, and tooling behavior.
If the vendor is unknown, answer from the common PLC layer first and explicitly mark which details depend on vendor, model, software, or language.
If the user mixes multiple vendor ecosystems or terms, point out the likely mismatch instead of silently merging them.
Core boundaries
This skill covers:
- PLC logic design
- sequence / state-machine / step control
- alarms, latches, resets, interlocks
- timers, counters, edge-triggered behavior
- I/O mapping strategy
- program organization and modularity
- debugging and troubleshooting
- code review and refactoring
- explicit support for reading, writing, and reviewing Structured Text (ST), Ladder Diagram (LD), Function Block Diagram (FBD), and Sequential Function Chart (SFC) code
- IEC 61131-3 language-level reasoning
- advanced templates for process control, motion, recipes, and data logging
- vendor-specific routing when the platform is known
This skill does not default to:
- generic electronics or PCB work
- pure wiring-only installation answers without control logic context
- broad industrial networking coverage with no PLC-program relevance
- SIL/PL/safety certification conclusions without confirmed field context
- pretending that one vendor's terminology or syntax applies to all vendors
Read order
Always start with:
references/common/scope-and-trigger-rules.md
references/common/task-router.md
references/common/knowledge-priority.md
Then conditionally load:
references/vendors/vendor-routing.md only when the request includes vendor, software, CPU family, device model, memory/tag, or platform terminology cues.
templates/common/template-map.md only for generation, refactor, or pattern-selection tasks.
Then load only the narrowest files needed.
Common layer responsibilities
Use the common layer for:
- IEC 61131-3 framing and language-level concepts
- sequence, state, alarm, interlock, reset, ownership, and scan-cycle reasoning
- engineering structure and maintainability guidance
- generic debugging, review, and completeness handling
- handling LD, FBD, and SFC code alongside ST
- leveraging common templates, checklists, and response format
Read from references/common/ and templates/common/ first when the vendor is unknown.
Vendor layer responsibilities
Use a vendor layer for:
- vendor software environment and engineering workflow
- vendor terminology and model-family cues
- vendor-specific instruction, device, memory, or tag conventions
- project organization norms for that platform
- debugging behavior and common platform pitfalls
- official manual routing and evidence preference for that ecosystem
Current support depth
Deepest production path:
- Mitsubishi FX3U + GX Works2 + Structured Project + ST
Targeted secondary modules:
- Siemens
- Rockwell / Allen-Bradley
- Omron
Baseline routing/reference modules:
- Beckhoff
- Schneider
- Codesys
- Delta
- Keyence
- Panasonic
Do not assume every vendor path has the same depth, examples, or eval coverage.
Evidence priority
Use evidence in this order:
- Bundled common references for PLC-generic engineering rules
- Bundled vendor references for the identified platform
- Vendor official manuals / official software docs
- IEC 61131-3 and PLCopen material
- Bundled templates and examples
- Community material as low-priority supplement
If the answer depends on vendor-specific behavior and the vendor is not confirmed, say so.
Response rules
Always:
- separate confirmed facts from assumptions
- say when implementation details depend on vendor/model/software
- prefer modular, reviewable outputs over giant code dumps
- use templates/checklists when inputs are incomplete
- stay conservative in safety-relevant topics
1---2name: plc-skill3description: Vendor-aware PLC engineering skill for IEC 61131-3 logic design, review, debugging, refactoring, and documentation routing.4---56# PLC Skill78Treat this as a general PLC skill with explicit vendor routing, not as a vague all-brands encyclopedia.910Work in two layers:11121. Common PLC layer132. Vendor-specific layer when the platform is identifiable1415Always keep these layers separate.1617## Operating model1819First decide whether the request is actually a PLC/programming task.2021Then classify it as one of:2223- common PLC question with no confirmed vendor24- vendor-specific PLC question25- mixed / ambiguous vendor question26- out-of-scope non-PLC question2728If the vendor is known, use the matching vendor references first for environment, terminology, program organization, instruction semantics, and tooling behavior.2930If the vendor is unknown, answer from the common PLC layer first and explicitly mark which details depend on vendor, model, software, or language.3132If the user mixes multiple vendor ecosystems or terms, point out the likely mismatch instead of silently merging them.3334## Core boundaries3536This skill covers:3738- PLC logic design39- sequence / state-machine / step control40- alarms, latches, resets, interlocks41- timers, counters, edge-triggered behavior42- I/O mapping strategy43- program organization and modularity44- debugging and troubleshooting45- code review and refactoring46- explicit support for reading, writing, and reviewing Structured Text (ST), Ladder Diagram (LD), Function Block Diagram (FBD), and Sequential Function Chart (SFC) code47- IEC 61131-3 language-level reasoning48- advanced templates for process control, motion, recipes, and data logging49- vendor-specific routing when the platform is known5051This skill does not default to:5253- generic electronics or PCB work54- pure wiring-only installation answers without control logic context55- broad industrial networking coverage with no PLC-program relevance56- SIL/PL/safety certification conclusions without confirmed field context57- pretending that one vendor's terminology or syntax applies to all vendors5859## Read order6061Always start with:6263- `references/common/scope-and-trigger-rules.md`64- `references/common/task-router.md`65- `references/common/knowledge-priority.md`6667Then conditionally load:6869- `references/vendors/vendor-routing.md` only when the request includes vendor, software, CPU family, device model, memory/tag, or platform terminology cues.70- `templates/common/template-map.md` only for generation, refactor, or pattern-selection tasks.7172Then load only the narrowest files needed.7374## Common layer responsibilities7576Use the common layer for:7778- IEC 61131-3 framing and language-level concepts79- sequence, state, alarm, interlock, reset, ownership, and scan-cycle reasoning80- engineering structure and maintainability guidance81- generic debugging, review, and completeness handling82- handling LD, FBD, and SFC code alongside ST83- leveraging common templates, checklists, and response format8485Read from `references/common/` and `templates/common/` first when the vendor is unknown.8687## Vendor layer responsibilities8889Use a vendor layer for:9091- vendor software environment and engineering workflow92- vendor terminology and model-family cues93- vendor-specific instruction, device, memory, or tag conventions94- project organization norms for that platform95- debugging behavior and common platform pitfalls96- official manual routing and evidence preference for that ecosystem9798### Current support depth99100Deepest production path:101102- Mitsubishi FX3U + GX Works2 + Structured Project + ST103104Targeted secondary modules:105106- Siemens107- Rockwell / Allen-Bradley108- Omron109110Baseline routing/reference modules:111112- Beckhoff113- Schneider114- Codesys115- Delta116- Keyence117- Panasonic118119Do not assume every vendor path has the same depth, examples, or eval coverage.120121## Evidence priority122123Use evidence in this order:1241251. Bundled common references for PLC-generic engineering rules1262. Bundled vendor references for the identified platform1273. Vendor official manuals / official software docs1284. IEC 61131-3 and PLCopen material1295. Bundled templates and examples1306. Community material as low-priority supplement131132If the answer depends on vendor-specific behavior and the vendor is not confirmed, say so.133134## Response rules135136Always:137138- separate confirmed facts from assumptions139- say when implementation details depend on vendor/model/software140- prefer modular, reviewable outputs over giant code dumps141- use templates/checklists when inputs are incomplete142- stay conservative in safety-relevant topics