Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai All,
Now i am struggling with MODBUS communication protocol for Rs-485 Communication. And how should i communicate my Device via RS-485. Now i didn't get any data from these serialport communication.
Can any one explain me how to communicate devices with RS-485 .

Thanks in ADV,
Posted
Updated 28-Apr-19 9:27am

WIN32 C++ code RS485 modbus 4 way relay module. Best compiled with MS Visual studio.
Open source project will allow you to customize according to your requirements. No closed source limitations.

MessageBox(NULL,"WIN32 C++ for MS Visual Studio Rules!",NULL,NULL);


rs485modbus download | SourceForge.net[^]
 
Share this answer
 
To best of my knowledge, to work with RS-485, you can use exact same class you would use with RS-232: System.IO.Ports.SerialPort, please see:
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^].

Please see:
http://en.wikipedia.org/wiki/Rs-232[^],
http://en.wikipedia.org/wiki/RS-485[^].

Modbus protocol working through a serial port is a very usual thing, even though the serial variants of it are getting obsolete (hopefully). Most likely, you will use Modbus RTU or Modbus ASCII versions of the protocol. Please see:
http://en.wikipedia.org/wiki/Modbus[^],
http://www.modbus.org/[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900