That looks neat. I seem to recall I had some code for Espruino that did Modbus (there's not much to it - it's just Serial + ensuring you de-assert a pin when you're done transmitting if I recall).
But personally, I never had a chance to do a PLC. It might have sold a few but I never had enough requests that it seemed it'd be worth the development effort. Probably the best bet now is find an ESP8266/ESP32 PLC device and run Espruino on that. It looks like Shelly have an ESP32 one at least
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That looks neat. I seem to recall I had some code for Espruino that did Modbus (there's not much to it - it's just Serial + ensuring you de-assert a pin when you're done transmitting if I recall).
But personally, I never had a chance to do a PLC. It might have sold a few but I never had enough requests that it seemed it'd be worth the development effort. Probably the best bet now is find an ESP8266/ESP32 PLC device and run Espruino on that. It looks like Shelly have an ESP32 one at least