Arduino UNO - Codesys Control Win V3 - Modbus RTU
Вставка
- Опубліковано 5 лют 2025
- In this video I explain how to connect your Arduino UNO board, to Codesys Control Win V3 soft PLC, through MODBUS RTU protocol.
The programs are available in:
github.com/mul...
Key bit of information at 3:10 and again at 7:10 - Thank You
This really looks interesting but you omitted lots of information, so beginners can only Hope.
Please share your previous video, connecting arduino to modbus master.
Thank you
Thanks for suggestion Chemes!
which file have you uploaded in arduino ? because the file test_modbus3.ino is not compiling. You have used 7 parameters in the function modbus_configure , while as per its library it takes only 5. can you please help ?
Hi, sorry for this delay, you have to install the library SimpleModbusSlave.h
modbus_configure is as follows:
void modbus_configure(HardwareSerial *SerialPort,
long baud,
unsigned char byteFormat,
unsigned char _slaveID,
unsigned char _TxEnablePin,
unsigned int _holdingRegsSize,
unsigned int* _regs);
Do you change also modbus_update(); in the library? I can´t compile it. Thanks.
Please, do you have the video/ link, how to install codesys in arduino ? thanks, regards
Hi, I am using Modbus to connect Arduino UNO to a computer running Codesys. The explanation is in this video. Thanks for your comment!
Hi Gustavo When I try to connect to slave the software asks user name and password, How can I solve that issue??? (I use Administrator as user name and password but it fail)
It seem to be a problem of Codesys setup
It's not a problem, I set up a new account, just a name and password. Or you can use your windows name and password.