thpetty1
I purchased a new ESP8266 NodeMCU board and have been able to upload a program and monitor via Modbus RTU on the built in USB port. What do I have to do to enable Modbus TCP on the WiFi port? I have also tried using the OpenPLC_esp8266.ino to configure as a slave and that does not connect either. Any ideas?
Reply 0 0
thiagoralves
Have you tried selecting Modbus TCP instead of Modbus RTU on the upload window?
Reply 0 0
thpetty1
Yes, I currently have both checked.
Reply 0 0
thiagoralves
So you should have Modbus working over WiFi (as long as you’ve selected “Wi-Fi” on the drop down menu). Just make sure you’ve filled your Wi-Fi network info properly 
Reply 0 0
thpetty1
I finally figured out what is happening.  The WiFi config is set for DHCP and not taking hte IP config from the upload dialog. Is there an easy way to hard code the IP address in the sketch? Also, if I delete the MAC address field will it use the default hardware address?
Reply 0 0
Josef Bernhardt
This Board works with the Modbus TCP software or as a PLC :
ESP8266 E/A Board / Arduino / ModbusTCP / PLC / SPS Board / MQTT | eBay
Reply 0 0
Josef Bernhardt
ESP8266 E/A Board / Arduino / ModbusTCP / PLC / SPS Board | eBay
Reply 0 0
Seafoxc
I also can not connect with modbus TCP/IP over Wifi with the ESP8266 NodeMCU. I double checked my Wifi SS-ID and password and I can find the ESP8266 on the network and I can Ping it but still get this error:
[203128%2F9626258%2Fmceclip0]
I also tried this in Powershell
[203128%2F9626261%2Fmceclip0]
 
If I change it to Modbus RTU it all works fine.
I also disabled realtime antivirus in windows and turned off Windows Firewall.
I'm on Windows11 pro and with the latest version of OpenPLC V4
 
If the board does not support this feature you can maybe hide the Modbus TCP checkbox in the UI
 
Also the PIN mapping seems NOK
 
[203128%2F9626263%2Fmceclip0]
 
It only goes to NODE_PIN_D8 and you only have one A0
I have no Idea what I'm doing...
Reply 0 0
thiagoralves
This is probably a bug. Can you please file it here? https://github.com/Autonomy-Logic/openplc-editor/issues
Reply 1 0
Seafoxc
This is probably a bug. Can you please file it here? https://github.com/Autonomy-Logic/openplc-editor/issues
I filed it :-)
I have no Idea what I'm doing...
Reply 1 0
Reply