Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can anyone tell me the c# code to open the modbus

What I have tried:

private void btnConnect_Click(object sender, EventArgs e)
{
try
{
master = new Master(txtIPAddress.Text, 502, true);
MessageBox.Show("Connection established");
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Posted
Updated 11-Feb-19 23:20pm
Comments
CPallini 12-Feb-19 5:30am    
Try harder. You basically tried nothing.

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search gave over 100,000 hits: c# code to open the modbus - Google Search[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
 
Share this answer
 
Comments
CPallini 12-Feb-19 5:30am    
Indeed...
 
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