Prüfwerk reads CODESYS control logic only from the PLCopen XML export
(decided: no parsing of the binary .project). Exporting by hand before
every upload or commit is easy to forget, so customers get a CODESYS
Script Engine script that does it, in the IDE or headless in CI:
- docs/public/downloads/codesys-export-plcopen.py, served with the docs:
exports every top-level object with its children into one PLCopen XML
file (projects.open / projects.primary, get_children, export_xml),
creates the target folder, and exits with status 1 when the project is
missing or the export holds no POU. IronPython 2.7 and Python 3.
- scripts/test_codesys_export.py runs it offline against a stand-in for
the Script Engine's projects object; CI's Check job now runs the
repository's offline script tests.
- guide/plc: "Exporting PLCopen XML automatically", with both ways to
run it; guide/scanning points there from the native-project note.
Not yet run against a real CODESYS installation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>