mverdia
Hi,
i have  connection problems and no ping response with openplc compiled programs.
Same hardware work good with arduino ide compiled software and i got ping response.
Openplc modbus  programs work correctly on MKR WIFI 1010 .
 
openplc ethernet modbus   works  on arduino mega ?
Reply 0 0
thiagoralves
Arduino Mega has only 8KB of RAM. There isn't enough RAM to run a full IEC 61131-3 runtime along with Modbus TCP. On 8-bit platforms like Arduino Mega and Arduino Uno your best option is to use Modbus RTU (Serial).
Reply 0 0
mverdia
After lot of test i can say that:
1) Modbus TCP run on mega with:  Ethernet shield W5100 based  (B0CLD4KXSL) , w5500  (azdelivery ) cs at pin 10
PINS 50,51,52,53 should be excluded from  pins mapping cause are used for  miso,mosi,sck and ss
2) Modbus TCP  dont run  on:  arduino due,  mega with Ethernet shield W5500 original.
 
I think that on due problems are : ethernet library , rs485 dependency( timing),  due works with arduino webserver sample with any combination of shields.
 
Issue : queryng two tcp modbus slave with different ips  and with two modbus tester program  cause  intermittent  timeout on connections.
 

If anyone  has a due working with openplc please let me know it.
Thanks in advance.
Reply 2 0
mverdia
IO Standard configuration pins use pins that ethernet shield or wiznet use. Remove those and it's working.
Reply 1 0
ryannn
After lot of test i can say that:
1) Modbus TCP run on mega with: Ethernet shield W5100 based (B0CLD4KXSL) , w5500 (azdelivery ) cs at pin 10
PINS 50,51,52,53 should be excluded from pins mapping cause are used for miso,mosi,sck and ss
2) Modbus TCP dont run on: arduino due, mega with Ethernet shield W5500 original.
 
I think that on due problems are : ethernet library , rs485 dependency( timing), due works with arduino webserver sample with any combination of shields.
 
Issue : queryng two tcp modbus slave with different ips and with two modbus tester program cause intermittent timeout on connections.
 

If anyone has a due working with openplc please let me know it.
Thanks in advance.
Oh my, thank you so much! Today I encountered the exact problem you mentioned with the Arduino DUE: Modbus TCP wasn't working properly. Following your advice, I removed the conflicting pins(10, 11, 12, 13), and everything started working perfectly. Thanks again!😍
Reply 0 0
jbe
After lot of test i can say that:
1) Modbus TCP run on mega with: Ethernet shield W5100 based (B0CLD4KXSL) , w5500 (azdelivery ) cs at pin 10
PINS 50,51,52,53 should be excluded from pins mapping cause are used for miso,mosi,sck and ss
2) Modbus TCP dont run on: arduino due, mega with Ethernet shield W5500 original.
 
I think that on due problems are : ethernet library , rs485 dependency( timing), due works with arduino webserver sample with any combination of shields.
 
Issue : queryng two tcp modbus slave with different ips and with two modbus tester program cause intermittent timeout on connections.
 

If anyone has a due working with openplc please let me know it.
Thanks in advance.
i sir
you look like to now a lot about   modbus tcp and rut
 
d you thimk if iis possible to comunicate between several arduino bord with modbus tcp protocole ?
 
tanks jb
Reply 0 0
jbe
i sir
you look like to now a lot about   modbus tcp and rut
 
d you thimk if iis possible to comunicate between several arduino bord with modbus tcp protocole ?
 
tanks jb
Reply 0 0
thiagoralves
To communicate using Modbus TCP or RTU you need a master and a slave. Currently OpenPLC only supports the slave protocol on Arduino boards, so you cannot have Arduino boards communicating with each other (slave can't talk to another slave) unless you have an external master device to coordinate that.
Reply 0 0
Reply