free quality report for PLCopenXML exports

PLC Lint / CODESYS 4

Static analysis for CODESYS 4

CODESYS 4 version 1.0.0.0, released on 24 September 2026, has no static analysis of its own: its documentation lists static analysis, the Test Manager and automated module tests among the functions the first version does not include [1][4]. You can check the code with PLC Lint now: 56 rules of an open linter catch what the compiler accepts, such as uncalled timers, division by zero and array indexes out of bounds. Structured Text is checked by every code rule. Ladder Diagram read from a CODESYS 4 project folder is translated into equivalent Structured Text and checked by every rule as well; in a PLCopen XML export only checks of declarations and variable names apply to LD.

What CODESYS 4 is

A second programming system next to CODESYS 3: a web-based IDE where the user interface runs in a browser, with ST and LD in the first version [1]. The compiler, the libraries and the controller runtime are the same as in CODESYS 3 [1][2].

A project is a directory of readable UTF-8 text files instead of a binary project file [2]. That fits git and automated builds: the application is compiled from the command line with c4-cli bootapp compile --application path/to/Application.iecapp [3].

Version 1.0.0.0 is aimed at two scenarios: libraries built in automated build and release processes, and simple applications on a single controller. For projects that need the Test Manager, the debugger, visualization or motion, CODESYS 3 remains the tool [2]. CFC and FBD are planned for 2027 [4].

How to check CODESYS 4 code today

Structured Text from the editor or from the project files. The PLC Lint MCP server takes ST code as text (whole POUs or a program body) through the lint_st tool and returns findings with the rule, the line and fix steps. It runs on your machine and makes no network calls.

PLCopen XML or CODESYS .export. If an export in one of these formats is available, it is checked as usual: on this site, by the local version and in CI. Whether CODESYS 4 1.x can export PLCopen XML we have not yet verified on a live installation, so we do not promise it here.

A CODESYS 4 project folder (.fbsdev), directly. The local version (plc-lint Machine.fbsdev), the GitHub Action and the MCP tool lint_file read the project straight from its folder, next to c4-cli bootapp compile, with no export step. A finding names the source file and line, for example Application.iecapp^/PLC_PRG.prg.st:12, and in GitHub the annotation lands on that line. Tasks and the watchdog come from the task configuration. Global variable lists in a namespace, methods and actions of a POU, interfaces and structures are read too. Properties and transitions are not read yet, and the report says so instead of staying silent. Uploading a project folder to this site: in progress.

Ladder Diagram. In a CODESYS 4 project folder, the LD model is translated into equivalent Structured Text (contacts, coils, set and reset, parallel branches, blocks with EN/ENO, jumps and returns) and checked by every rule; a finding points at the line of the element in the file. In a PLCopen XML export, PLC Lint does not analyze LD rungs line by line: there it checks declarations and names only.

Moving from CODESYS 3

CODESYS 3.5 projects do not open in CODESYS 4 [4]; compiled libraries are interchangeable between the two tools [2]. So an application is rewritten rather than converted, and a rewrite is the moment when old defects get copied and new ones appear.

Check before: run the CODESYS 3 export through PLC Lint and get the list of known defects, so they are not carried over to the new code. Check after: run the new Structured Text through lint_st and compare. A finding that was fixed in the old project and came back in the new one is the most expensive kind.

An AI assistant that checks its own PLC code (MCP)

CODESYS has its own MCP server that connects language models to the CODESYS 3 development system; it comes with the Professional Developer Edition [5].

The PLC Lint MCP server is a separate open utility that needs neither CODESYS nor a subscription, mcp_server.py: Python standard library only, stdio, works offline. It speaks the current MCP revision 2026-07-28 and the earlier revisions with the initialize handshake [6]. Tools: lint_file (a .xml or .export path, or a .fbsdev project folder), lint_st (a piece of Structured Text), list_rules and explain_rule (what a rule checks, how to fix, a link to its page). The assistant calls lint_st on the code it has just written and fixes the findings before showing it to you.

Connecting the MCP server

Claude Code
claude mcp add plc-lint -- python3 /path/to/plc-lint/mcp_server.py
Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "plc-lint": {
      "command": "python3",
      "args": ["/path/to/plc-lint/mcp_server.py"],
      "env": {"PLC_LINT_LANG": "en"}
    }
  }
}

Download mcp_server.py together with engine.py, export_file.py and i18n.py from GitHub (or clone the repository). Python 3.9+, no dependencies. PLC_LINT_LANG sets the language of findings: en or ru.

Check an export now

Upload a PLCopen XML or CODESYS .export file: the report is free and the code is not stored.

Rule reference →

All 56 rules with a bad / fixed code example verified by the linter.

Sources

  1. CODESYS 4 product page (codesys.com)
  2. CODESYS 4 online help: start page (helpme-codesys.com)
  3. CODESYS 4 online help: the c4-cli bootapp command
  4. "Codesys 4 is released!", disorder.dk, 2026-09-30 (quotes the 1.0.0.0 documentation)
  5. CODESYS Development System MCP Server (codesys.com)
  6. Model Context Protocol specification, revision 2026-07-28

Updated 2026-12-02. Facts about CODESYS 4 are taken from the sources above; we update the page when a new version changes them.

Processing happens in memory, and the uploaded code is not stored. The tool advises; code changes are up to the engineer (see what the linter can't see). What happens to your code → · Rule reference · CODESYS 4 · Your code & privacy · Industry benchmark · Feedback · GitHub