CODESYS is an independent programming tool for PLCs. It consists of a programming tool, which is running under Windows, and a runtime, which can run on a real PLC or an open Linux Device, like the Raspberry Pi.
The glue for hobbyists is, that the programming system is free and the runtime is available as a 2h demo.
There are generally a few major advantaes of using CODESYS over using C, python or s.th. similar:
To get CODESYS, you need to register yourself for free at http://store.codesys.com. After the registration you can download the progrmaming system.
As for now, the programming system is sadly not running under Linux. For those of you, who don't have a Windows system available, you can use a trail VM from microsoft here:
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
hints