mice
I am trying to add an ESP32 as a slave device following this guide (https://www.youtube. com/watch?v=C-SJfj282o8) and have been unable to find any success. I am currently using DOIT ESP32 DEVKIT V1.

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...
[203128%2F8719084%2Fmceclip0]
c17c5575-dd6e-4d34-9211-66ce6ca9c715.jpg

Reply 0 0
thiagoralves
That video is outdated and might not work with the current version of OpenPLC. The recommended way of adding a slave device is by first uploading an OpenPLC program to it with Modbus TCP enabled. Then it will be able to respond to Modbus commands and can be added to the runtime as a slave. Here is the documentation on slave devices you can check:   https://autonomylogic.com/docs/2-6-slave-devices/
Reply 0 0
Reply