Paul,
I am definitely interested in your efforts regarding using Codesys at home. I have worked for the past 25 years in the real-time manufacturing control systems field. I have used multiple platforms, including Beckhoff’s Twincat PLC software and their I/O. This is the first I had heard of Codesys be able to run on a Raspberry Pi. Very cool!
As far as network connectivity to SmartThings, there are two basic methods.
- LAN connected device that communicates through the ST Hub.
- LAN device that connects directly to the ST Cloud via an OAUTH enabled SmartApp.
I have a project that implements the first method above when using an Arduino or ESP8266 based board. You may find some of the network source code useful for your project. My ST_Anything project allows bi-directional monitoring and control of the I/O pins on the Arduino/ESP8266 boards. In case you’re not familiar with the ESP8266 platform, you can buy a NodeMCU v1.0 ESP8266-12e board for under $10 on Amazon (under $5 on eBay from China). This little board provides 9 digital pins (input or output) and 1 analog input pin, along with built-in WiFi.
Good luck in your project and please keep us posted in this forum as you make progress.
Take a look at