Attention
IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include arrays and structures. Try it out in the IronPLC Playground.
Check TwinCAT 3 Projects¶
This guide shows how to use IronPLC to check a Beckhoff TwinCAT 3 project for correctness.
Note
This guide assumes you have installed the IronPLC Compiler. See Installation if you have not already installed it.
Check with the VS Code Extension¶
Open your TwinCAT project folder in VS Code.
Open any TwinCAT source file.
The extension highlights errors and warnings in the editor as you type.
Check with the Command Line¶
You can check individual TwinCAT files:
ironplcc check MyProgram.TcPOU
Or check an entire TwinCAT project by pointing to the directory containing
the .plcproj file. IronPLC reads the project file to discover which
source files to analyze:
ironplcc check path/to/my-twincat-project
See TwinCAT for supported file types and format details.