agentleFS
SmailGSmailG/plc-programming/skills/other-platforms/SKILL.md

other-platforms

Skill0 starsChanged 37 days agoMITView on GitHub

Platform knowledge for Beckhoff TwinCAT 3 (.TcPOU/.TcDUT/.TcGVL/.TcIO XML with CDATA, pragmas/attributes, FB_init, __NEW, PLC++), CODESYS V3.5 (SP22, PLCopenXML and .export, File-Based Storage, Static Analysis SA/NC rules, scriptengine), ABB Freelance (DCS: .prt block export, whole-project Unicode .csv, .plc/.ple, Bulk Data Manager) plus ABB Automation Builder (AC500) and 800xA Control Builder M, and Rockwell Studio 5000 Logix Designer (L5X/L5K, RLL neutral text XIC/XIO/OTE/TON, v36 IEC mnemonic renames, AOIs, FBD_TIMER in ST). Use when working with any of these tools or files. For Siemens and Schneider use their dedicated skills.

The file

Files
SKILL.md

Other platforms: Beckhoff, CODESYS, ABB, Rockwell

Load the reference for the platform in play. Each one lists the file format, the dialect's differences from IEC 61131-3, and the traps.

PlatformCurrent as of 2026-09Text/XML an assistant can safely writeReference
Beckhoff TwinCAT 33.1 Build 4026; PLC++ announced (plain-text files, "almost fully compliant" with 61131-3 Ed.4), GA unverified.TcPOU / .TcDUT / .TcGVL / .TcIO with ST bodies onlyreferences/beckhoff-twincat.md
CODESYS V3.5SP22 (Patch 2); SP23 planned Q1 2027PLCopenXML (tc6_0200), .export (native), File-Based Storage *.st (preview)references/codesys.md
ABB Freelance (DCS)Freelance 2024 (announced 2024-10-02); manuals read: 2019read the .csv export; bulk-edit via BDM Excel; never hand-edit .prt/.csv for re-import without a backupreferences/abb.md
ABB AC500 (Automation Builder)CODESYS-basedPLCopenXML, .export (same-version only)references/abb.md
Rockwell Studio 5000v38 (Sept 2025)L5X component exports, RLL neutral text, L5Kreferences/rockwell-logix.md

Cross-platform rules

  • Never hand-generate a graphical object archive. That covers TwinCAT <NWL>/<SFC>/<CFC> XmlArchive implementations and CODESYS CFC XML. Write ST, or go through PLCopenXML import.
  • Version-pin every exchange file:
    • The TwinCAT ProductVersion is optional, but keep it when editing.
    • Automation Builder .export imports only into the same version.
    • An L5X names its SoftwareRevision.
  • Qualify names the way the target expects:
    • TwinCAT/CODESYS GVLs and enums with {attribute 'qualified_only'} need GVL.x and E_X.Member.
    • Logix has no qualifier: tags are controller- or program-scoped.

Validate: python3 ${CLAUDE_PLUGIN_ROOT}/scripts/plc_validate.py <file-or-dir>.

  • TwinCAT rules: TC0xx.
  • Logix rules: LX0xx. The operand counts accept both the v36 IEC names and the older mnemonics.
  • CSV lists: CS0xx.

For a new TwinCAT POU, start from assets/FB_Template.TcPOU.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.