eurotrashben
Hi, great software.  I'm looking at building a new house and would love to use this as the lighting automation and have openhab be able to write to coils as the external connection

My thought is to use openplc as the middle man with it writing to a device such as this

https://www.aliexpress.com/item/24-channel-relay-output-card-RJ45-Ethernet-TCPIP-Modbus-industrial-controller-IO-module/32763492936.html?spm=a2g0s.8937460.0.0.16ad2e0ePJ3aXo

to switch the lights

And have little esp8226 boards in each light switch to be a modbus master to write to the openplc coils, which can then switch the relay board with some plc logic/timers etc.  This would also allow openhab to write to openplc

However it looks like you can load modbus or esp drivers?  Is the mixing of two drivers something you are looking at in the future?

googling esp8266 modbus tcp only shows me lots of info about using them as slaves

Or do i need to slightly rethink my plan and go for something like an orange pi zero in each switch box and run a modbus master on it to write to open plc?  That might be easier

Thanks
Reply 0 0
thiagoralves
To follow your plan as you wrote it, you don't need to use the esp8266 driver. You'll use only the Modbus driver to talk to the aliexpress device. The esp8266 board will be a separate device running a firmware based on this library (https://github.com/goddland16/Modbus-TCP) to communicate with OpenPLC over Modbus.

On the next release of the OpenPLC runtime (OpenPLC v3) all slave devices including Arduino, esp8266, Modbus devices, etc will be combined into a single driver. The slave driver will be available on all platforms and it will be possible to load a hardware driver, such as the Raspberry Pi GPIO driver, and the slave driver at the same time.
Reply 0 0
Reply