Repository navigation
4.0.0-beta.1
Pre-release
Pre-release
4.0 is a rewrite. In 3.x the work was done by IronPython scripts in the CODESYS menu and a Python package on the PC. In 4.0 it is done by cts.exe and a small agent that runs inside CODESYS. Here is what that changes for you.
Why we rewrote it in .NET
- Nothing extra to install.
cts.exeruns on .NET Framework 4.8, which every PC with CODESYS already has. No Python, no pip, no PATH conflicts. One line in PowerShell installs it, and the same line updates it. - Fast on large projects. 3.x exported the whole project to compare it. 4.0 works object by object and re-reads only what changed, so a large project compares in seconds. The agent refreshes the compare by itself while you are not working.
cts analyzechecks a project of 650 objects in seconds, with far fewer false findings. - The IDE does not get in the way. The agent lives inside CODESYS and answers every command, even while a dialog is open: the command stops and prints the exact line that answers the dialog. While the IDE is online with a PLC, every project edit is refused.
- Clean git history. One
.stfile per POU, with its methods, properties and actions. Two exports of an unchanged project are byte-identical, so a git diff shows only real changes.cts syncmerges edits made in the IDE and on disk; only edits to the same lines are a conflict. - One button instead of a menu of scripts. The toolbar button opens the quick window (Alt+Q): sync, compare in your git program, switch branch, commit.
- The PLC from the command line.
connect,download,read/writelive values, PLC files and log, and ST unit tests in simulation. - Made for AI agents. Every command starts its answer with a one-line verdict and ends with what to do next.
cts guidegives an agent the workflows, so it can edit, build, download and commit the project in the open IDE (see the demo in the README).
Before you upgrade
- Git is required. The sync folder is a git repository.
- Start in a new sync folder. A 3.x folder is not taken over.
- Going back to 3.4.1 is one menu choice in the same installer.
Install or update with CODESYS closed:
irm https://raw.githubusercontent.com/ArthurkaX/cds-text-sync/main/irm/setup.ps1 | iex- What breaks and what's new: Upgrading to 4.0
- Every change, by area: CHANGELOG
- Problems: please include
cts --version.
Tested on CODESYS V3.5 SP22 (x64) and SP16 Patch 9 (x86).