ModBus C++ source code

G

Thread Starter

Gabriel

Hi,

I'm looking for free source code (or examples) of ModBus protocol in C or C++. I would like to establish a communication between a computer (windows or linux) and a measure equipment, that communicates via ModBus protocol. The physical Layer is RS485.

I'm looking forward for a reply.
Gabriel.
 
T
4 Channel DC 12V RS485 Relay Module Modbus. I have a WIN32 version for Visual Studio
https://sourceforge.net/projects/rs485modbus/files

I'm using an RS485 USB adapter, over RS232, Windows 7, WIN32 code will activate the relays. it can also read input data and can send PTZ commands through the serial port to the RS485 inputs of a PTZ camera.

The exact one I tested it with was:
US-RTU 4 way relay module STM8S103
https://www.aliexpress.com/item/MOD...824.html?spm=a2g0s.9042311.0.0.27424c4dbmNKMq

I needed a RS485 relay controller cos I got a PTZ camera 300 meters on the other side of my property, but I don't like to walk 300 metres, so its activating a 240 volt relay. It can also turn on a bore pump. I have 1 coax and 3 Ethernet running 300 meters to the other side. RS485 just uses 2 strands of Ethernet cable.

Also for open source video capture:
https://sourceforge.net/projects/webcamsmtp/
 
Top