Page 1 of 1
Getting started
Posted: 06 May 2024, 20:28
by cerberus78
Hello,
I'm just getting started with the Raspberry Pi revolution for a school project, and I'm eager to know if there are any examples in C or C++ (preferably C++) for managing IO, Modbus as a network master.
Can you please help me ? i don't know where to start.
Regards
Re: Getting started
Posted: 07 May 2024, 09:36
by dirk
Hello cerberus78, that sounds exciting, a school project. It's helpful to have a few good examples in stock. The best place to start is with the video tutorials #20, #21, #22 and 23 on Modbus:
https://revolutionpi.com/en/tutorials/v ... rials#VT20
Then of course you can work with C/C++ and use the video tutorial #13 - there is also sample code in the download area:
https://revolutionpi.com/en/tutorials/v ... orials#V13
If you like working with Python like I do, I can recommend the gateway tutorial - create an application with less than 10 lines:
https://kunbus-gmbh.atlassian.net/servi ... 2379186179
Code examples and a helpful Arduino Modbus RTU coupling can be found here:
https://revolutionpi.com/en/tutorials/downloads#coding
Re: Getting started
Posted: 07 May 2024, 10:10
by cerberus78
Thank you very much for your reply, also i have a second question, is there a build in library to manage modbus ? or we need to install common one (apt-get install libmodbus-dev)...
Thank you
Re: Getting started
Posted: 14 May 2024, 09:44
by dirk
Hi cerberus78, well, Modbus works like a charm with the Revolution Pi, just take a look at the video tutorials #20-23
https://revolutionpi.com/en/tutorials/v ... rials#VT20