ivan_terzo
Hi, first of all congratulations on the project. I have a W5500 ethernet module that I would like to use with arduino Mega. Is it possible to tell the OpenPLC Editor compiler which module to use (this module works with the "ethernet2" library, while OpenPLC Editor continues to use the "ethernet" library)?

Thanks and good job
Reply 1 0
thiagoralves
Well..OpenPLC is not aware of the different Ethernet libraries, but you can go ahead and modify the firmware code to call Ethernet2 instead of the original Ethernet library. The code is at OpenPLC_Editor/editor/arduino/. I think you will only have to modify the Modbus slave files inside the Baremetal folder. Just do a Ethernet.h search on files inside that path.
Reply 1 0
ivan_terzo
Resolved. I apologize, but the ethernet card documentation may not have been correct. The pin of the module marked with SCS (SS) must not be connected to the corresponding pin of arduino Mega SS (pin 53) but to pin 10 (intended for PWM ... bah!)
Thanks again for your prompt reply.
Reply 0 0
Programador s7
Same problem with the folder path.
I'm in AppData/Local/Programs/open-plc-editor, but the editor/arduino folder isn't there?
Or is my folder path incorrect?
Reply 0 0
thiagoralves
This post is from 2022, the software was way different back then as it was still based on the abandoned v3 architecture. On v4 the arduino folder is inside sources/arduino
Reply 1 0
Reply