mice
I have been trying to connect ESP32 slave device to OpenPLC runtime but unable to connect. I have tried using 2 different ESP8266 but still same results. All the ESP's are able to connect to the router and is showing its IP address. Im pretty new to the software please forgive me if there are any obvious mistakes. I have tried uninstalling and install both the OpenPLC runtime windows installer and manually. Im using a windows PC as the master device. Currently there is only the blank program on the OpenPLC runtime. Below is the logs.

OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Device ESP32 is disconnected. Attempting to reconnect...
Warning: Persistent Storage file not found
Connection failed on MB device ESP32: Operation now in progress
Issued start_modbus() command to start on port: 502
Server: Listening on port 502
Server: waiting for new client...
Device ESP32 is disconnected. Attempting to reconnect...
Issued start_dnp3() command to start on port: 20000
Issued start_enip() command to start on port: 44818
Server: Listening on port 44818
Server: waiting for new client...
Issued stop_pstorage() command
Connection failed on MB device ESP32: Operation now in progress
Device ESP32 is disconnected. Attempting to reconnect...
Connection failed on MB device ESP32: Operation now in progress
Device ESP32 is disconnected. Attempting to reconnect...
Connection failed on MB device ESP32: Operation now in progress
Device ESP32 is disconnected. Attempting to reconnect...

Reply 0 0
thiagoralves
Reply 1 0
mice
I have tried using both device type Generic TCP device and ESP32 but still unable to connect the ESP32 to runtime. I tried using UNO and was able to connect it to the runtime. Below are configuration for both device types and the IP address connected. (Please disregard the inputs, coils and registers) 80dcc90f-3d04-481d-a580-b4913147f791.jpgdcb0d79f-8db5-4dc3-944c-e92642374285.jpg5eb91238-6baa-4abf-8e6d-93a7c4c5c02f.jpg
Reply 0 0
thiagoralves
What is the configuration of your Modbus settings on the upload dialog?
Reply 1 0
mice
Below are the upload dialog. Everything except the IP address, WiFi SSID and password was kept as default. The IP address was taken from an arduino code i used to connect the ESP32 to the router/laptop. Do note for my first run i did try following this YT guide (https://www.youtube.com/watch?v=C-SJfj282o8) and was facing the issue ESP32 not connecting to the OpenPLC runtime. Now im facing a new issue where OpenPLC runtime is unable to run even after running Rebase OpenPLC. Hope the images attached help provide what youre asking. *Edited: Ive solve the issue of OpenPLC runtime installation but still unable to connect the ESP32 to the OpenPLC runtime
 
bbc3782f-bf12-4f49-ab14-c84392556c68.jpgf401308a-5edf-4a27-b09c-ca85a0b2c466.jpga19c163b-8e54-4b6d-8246-4fec1942882f.jpg
Reply 0 0
Reply