Thomas
Hello! My name is Thomas, I found your software and I'm interested in adding it to part of my final year project. I want to use my ESP32 with ladder logic and communicate with a SCADA system via Modbus TCP/IP. However, I need to do this via Ethernet to meet a requirement. I tested it via Wi-Fi and it works, but I need to connect it via Ethernet. I tried with versions V3 and V4, but I can't get the shield to work. I don't want to edit the code that OpenPLC generates because it would be the same as programming in the Arduino IDE. Is there a solution to this? Have you tested which pins the W5500 Ethernet shield uses?
If I program from the Arduino IDE, my shield works perfectly.
Reply 0 0
thiagoralves
OpenPLC does not work with ESP32 over Ethernet. You would have to modify the runtime source code to make it work
Reply 0 0
Thomas
Ah, okay. Modifying the code loaded onto the ESP would involve transferring it to the Arduino IDE and editing it from there? But I'd have to do that every time I want to modify my ladder logic, right? Isn't there a way to create a block or something similar to maintain the Opel PLC functionality? I'm not sure if I'm explaining myself clearly.
Reply 0 0
thiagoralves
No, you need to modify the source code of the runtime that is bundled in the editor source code. GitHub repo is here: https://github.com/autonomy-logic/openplc-editor
Reply 0 0
Thomas
Okay! Would it be too much to ask if you could tell me which file I should focus on looking for to modify?
Reply 0 0
thiagoralves
Baremetal.ino, the defines.h generation code, and Modbus slave.cpp
Reply 0 0
thiagoralves
Hello,
The OpenPLC forum has a new home: Autonomy Edge https://edge.autonomylogic.com. We migrated every member, profiles, topics, categories and attachments. Please redo your post on the new forum so we can continue our conversation.
Note: If you already have an Autonomy Edge account, you can simply login with your credentials to have access to your forum profile and posts. If you don't have an Autonomy Edge account, we ask you to set a fresh password on first sign-in using the same e-mail you used on this forum.
To set a fresh password, access the link https://edge.autonomylogic.com/forgot-password and insert the e-mail address used on this forum. You will receive an e-mail on your inbox with a link to choose a new password. Once you reset your password you will be able to login on edge.autonomylogic.com using your new credentials.
Reply 0 0
Thomas
Hi! How are you? I'm back with another question. I modified the code as you suggested, baremetal.ino, and also modified the Modbus libraries. Now I'd like to ask how to reinstall the program on my PC. I've never downloaded a complete repository from GitHub before. Or do I have to run it with Visual Studio?
Reply 0 0
thiagoralves
Hello,
The OpenPLC forum has a new home: Autonomy Edge https://edge.autonomylogic.com. We migrated every member, profiles, topics, categories and attachments. Please redo your post on the new forum so we can continue our conversation.
Note: If you already have an Autonomy Edge account, you can simply login with your credentials to have access to your forum profile and posts. If you don't have an Autonomy Edge account, we ask you to set a fresh password on first sign-in using the same e-mail you used on this forum.
To set a fresh password, access the link https://edge.autonomylogic.com/forgot-password and insert the e-mail address used on this forum. You will receive an e-mail on your inbox with a link to choose a new password. Once you reset your password you will be able to login on edge.autonomylogic.com using your new credentials.
Reply 0 0
Reply