havivv13
Hi all it is possible?
Quote 0 0
thiagoralves
It should be if the firmware on the Arduino is modified to make use of the Ethernet shield instead of the serial ports.
Quote 0 0
havivv13

Thank you,
after I config the  Arduino how I config it on the open plc?

Quote 0 0
thiagoralves
Just add it as a slave device. But then instead of choosing "Arduino" from the list, select "Generic TCP device", add its IP address and modbus registers configuration. You can probably use the same registers configuration from the "Arduino" selection if you keep the firmware with the same number of registers
Quote 0 0
havivv13
Thank you,
I'm looked for the network firmware, but I didn't find one, and I'm not familiar with C \CPP.
Do you have a link to the correct firmware?
Quote 0 0
thiagoralves
There isn't an OpenPLC network firmware for the arduino. You would have to write it yourself. The only firmware that is available is for the wired serial (USB) port. If you're not familiar with C or C++, then a possible alternative would be to use ESP8266 instead of the Arduino. The ESP8266 is a WiFi board similar to Arduino. The firmware on that board uses WiFi to communicate with OpenPLC instead of the plain USB cable.
Quote 2 0
Josef Bernhardt
Hello Thiago,
I would like to change the Modbus RTU slave software so that it works with RS485 on RX1 and TX1 with an enable pin Dout eg 23, where do I have to change the software?
Many thanks in advance for your help
Joseph
Quote 0 0
thiagoralves
This should be quite straightforward. Check the OpenPLC_Uno.ino file. You probably will only have to change the #defines to select a TXPIN and then remove the selected TXPIN from the list of IOs (pinMask_DIN, pinMask_DOU, etc). Also, make sure you adjust the NUM_DISCRETE_INPUTS, NUM_COILS, etc accordingly.
Quote 0 0
Josef Bernhardt
Thank You for help !
Quote 0 0