Hey there,
iwant to setup a Modbus TCP Communication between 2 Arduino Nano with 2 W5100 Mini Ethernet shields.
Is there any example code for a master and slave availible?
the ArduinoModbus libary offers examples for wifi only ..
Thanks!
Hey there,
iwant to setup a Modbus TCP Communication between 2 Arduino Nano with 2 W5100 Mini Ethernet shields.
Is there any example code for a master and slave availible?
the ArduinoModbus libary offers examples for wifi only ..
Thanks!
The ArduinoModbus library isn't designed to be used on AVR Arduinos (as the Nano is) as it is quite wasteful with memory and (de-)allocation, so you end up out-of-memory faster than you like.
thank you!
i just want to test it on the arduino:)
once its working i will move on to a STM32L4
but i cant find any code for a master and a slave.
This Lib : GitHub - andresarmento/modbus-arduino: A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).
gives Code for a Slave, but how can i test it?
i just want to test it on the arduino:)
Why don't you use the STM32L4 directly? There you shouldn't get memory problems.
gives Code for a Slave, but how can i test it?
Using Modbus on the PC (libmodbus)?