kallileo
Hi,

I'm designing a 24V I/O carrier board for NodeMCU in order to install OpenPLC runtime on it.
I'm thinking of adding a RS485 Modbus RTU port to the I/O board in order to communicate with an industrial HMI.

Is it possible create Modbus RTU slave (or master) in OpenPLC runtime on NodeMCU?
Reply 0 0
thiagoralves
OpenPLC supports Modbus slave (i.e. it connects to HMI and other master devices) on all runtime flavors. Modbus master is only supported on Linux and Windows runtimes.

As for the 485 port, you may need to modify the nodemcu hal file slightly to include the control of the EN pin for the 485 driver.
Reply 0 0
kallileo
Thank you Thiago.

I intend to use the D8 pin as RS485 CONTROL pin which is normally mapped to analog output in OpenPLC for NodeMCU.
Reply 0 0
thiagoralves
Make sure you test the Modbus RTU on your nodemcu device first. I remember OpenPLC having issues with nodemcu boards with Modbus RTU due to differences in the Serial library of the esp8266
Reply 0 0
Reply