Click here to Skip to main content
15,881,852 members
Articles / Programming Languages / XML
Tip/Trick

Modbus TCP class

Rate me:
Please Sign up or sign in to vote.
4.89/5 (84 votes)
23 May 2014CPOL 1.7M   60.4K   154   171
A Modbus TCP class.

The project has moved to GIT

https://github.com/stephan1827/modbusTCP

Please download and ask questions from there.

License

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


Written By
Systems Engineer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: My vote of 5 Pin
Entrase11-Dec-15 22:11
Entrase11-Dec-15 22:11 
Generalconnection lost error Pin
ttusharbb23-Jan-11 18:28
ttusharbb23-Jan-11 18:28 
Generalerror Pin
ttusharbb23-Jan-11 1:08
ttusharbb23-Jan-11 1:08 
GeneralRe: error Pin
Dread_Sharp29-Mar-11 3:22
Dread_Sharp29-Mar-11 3:22 
Generalproblem for "illegal data adress" error Pin
houzc200910-Nov-10 1:52
houzc200910-Nov-10 1:52 
GeneralRe: problem for "illegal data adress" error Pin
Michael Fauchon17-Nov-10 17:54
Michael Fauchon17-Nov-10 17:54 
GeneralRe: problem for "illegal data adress" error Pin
houzc200917-Nov-10 22:46
houzc200917-Nov-10 22:46 
Generalproblem with cross thread Pin
donelbaron5-Nov-10 3:25
donelbaron5-Nov-10 3:25 
Hello,
if i run this application in debug mode each time i want to read some data i have following error:
Cross-thread operation not valid: Control 'grpData' accessed from a thread other than the thread it was created on, but with realese version works ok.
GeneralRe: problem with cross thread Pin
Michael Fauchon17-Nov-10 17:56
Michael Fauchon17-Nov-10 17:56 
GeneralNo connection could be made because the target machine actively refused it. Pin
nsoutinho15-Oct-10 0:17
nsoutinho15-Oct-10 0:17 
GeneralRe: No connection could be made because the target machine actively refused it. Pin
larsberghahn26-Jan-11 0:27
larsberghahn26-Jan-11 0:27 
GeneralTimeout Error Solved Pin
Michael Fauchon25-Aug-10 5:55
Michael Fauchon25-Aug-10 5:55 
Questionuse of the dll in VB Pin
swissjay2-Aug-10 8:44
swissjay2-Aug-10 8:44 
AnswerRe: use of the dll in VB Pin
nugentoffer23-Sep-10 10:41
nugentoffer23-Sep-10 10:41 
GeneralRe: use of the dll in VB Pin
Michael Fauchon9-Oct-10 8:53
Michael Fauchon9-Oct-10 8:53 
Questionwhat language to open the source code Pin
dnqhung27-Jul-10 22:10
dnqhung27-Jul-10 22:10 
AnswerRe: what language to open the source code Pin
Michael Fauchon30-Sep-10 2:26
Michael Fauchon30-Sep-10 2:26 
GeneralError: Slave Time out Pin
_raghu26-Jul-10 1:37
_raghu26-Jul-10 1:37 
GeneralProblem between "transaction identifier" and "Unit identifier" in Modbus header Pin
ld.dubost7-Jul-10 21:44
ld.dubost7-Jul-10 21:44 
Questionwhat's my problem? Pin
M.Afsar19-May-10 0:34
M.Afsar19-May-10 0:34 
GeneralJust want to say thanks and suggestion Pin
Michael Fauchon25-Mar-10 7:16
Michael Fauchon25-Mar-10 7:16 
Questionthe code no modbus node can modify? Pin
flair1236-Apr-09 20:19
flair1236-Apr-09 20:19 
Questionhow about excIllegalDataAdr ? Pin
JBetons17-Dec-08 0:22
JBetons17-Dec-08 0:22 
Generalabout this class Pin
scissorszwy23-Jul-08 18:09
scissorszwy23-Jul-08 18:09 
GeneralHaving trouble implementing this DLL. Pin
Travis Howse30-Sep-07 20:35
Travis Howse30-Sep-07 20:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.