AI-TwinCAT-Skill

PowerShell module that lets any AI coding tool automate the TwinCAT 3 IDE and PLC runtime: 81 cmdlets for project creation, build, deploy and live testing with zero dialog popups.

Summary rewritten from the vendor site because the catalog version did not match it.

SkillOpen sourceActiveManufacturing

What it does and how it connects

AI-TwinCAT-Skill is a PowerShell module that lets any AI coding tool (Claude Code, Codex, Antigravity, and others) fully automate the TwinCAT 3 IDE and PLC runtime, from project creation to live testing, with zero dialog popups. TwinCAT 3 has a COM-based Automation Interface, but the README states it is notoriously hard to script: modal dialogs block automation, COM type conflicts crash PowerShell, and the lifecycle has undocumented ordering requirements. The module provides 81 cmdlets that any AI tool can call to build, deploy, and test PLC programs autonomously.

Coverage spans connecting to VS2022 or the TwinCAT XAE Shell with smart instance selection, project management (create projects, add POUs, GVLs, DUTs, libraries), reading and writing Structured Text in any POU, building and activating configuration over ADS with no dialogs, login and download, runtime control (start, stop, reset PLC, system state), ADS communication (read and write any PLC variable at runtime, symbol enumeration), automated testing with JSON reports, and I/O configuration (scan EtherCAT devices, read the I/O tree, link variables to channels).

The documented flow connects to the IDE (auto-opening the solution if needed), sets the target (the target decides the platform, since a mismatched solution platform fails activation), builds, activates in one step (config, activate, wait for Run, login and download, PLC Run), connects ADS with the AmsNetId auto-detected from the IDE, then reads and writes variables. The repo also ships an MCP server bridge and a known-limitations document with an error code table, environment matrix, and real-hardware coverage.

Recurring errors it addresses

Error Index entries this tool is built to reduce or work around.

Sources

  1. 1READMEgithub.com
  2. 2GitHub repo statsapi.github.com

Not verified

  • License: no LICENSE file in the repository, but the README has a License section stating MIT, so MIT is used from the README.
  • No GitHub releases exist, so latest release fields are null.
  • Pricing: none stated on the repo.
  • Real user voices: recent issues are all by the owner.
  • A standalone vendor website: repo only.
  • The catalog one-liner says 36 cmdlets; the README states a generated count of 81 cmdlets, so the one-liner was rewritten.

Last verified November 6, 2026. Listings are informational. The evidence score measures public, verifiable evidence and is not an endorsement or a compatibility claim.