Attention
These docs are a bit ambitious. The steps described are accurate but IronPLC cannot yet run programs.
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.