I am working on Modbus RTU protocol now. But get something unclear about the thread...or timer....
Can anyone explain it to me? Any example? I read a lot, but just do not understand! Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit ChoudharyRank #145 · 15.8K reputationPosted Jun 12, 2013, 11:30 AM EDT
Emma Emma80 reputationPosted Jun 12, 2013, 11:44 AM EDT
I want to make one software application which will read and display the Modbus RTU communication register values. I want to display all the regoister values when I connect my software and PLC.
Then one friend said that: You should take the example of RTU communication and try to connect to the plc or the Modbus RTU simulator.
Once you can read or write a register you can make a thread that keeps reading the registers from the plc.
That is why I do not know how to use thread or timer...
Hope you can understand...I have been stuck in here many days ...
thanks
Amit ChoudharyRank #145 · 15.8K reputationPosted Jun 13, 2013, 9:15 AM EDT
Emma Emma80 reputationPosted Jun 13, 2013, 9:54 PM EDT
Thanks for your reply, but it does not look like what I want...what I mean is that I need one thread or timer..not sure to let the system to read register values automatically. So that I do not need to press the button and get the value then press the button again. I just want to know the function and how to use thread in my application.
Thanks
Emma Emma80 reputationPosted Jun 23, 2013, 10:43 PM EDT
Luu Hoang93 reputationPosted Dec 14, 2016, 5:01 AM EST
https://www.youtube.com/playlist?list=PLRCEJ0bGSS1Z31_EJnVLjSfo38kH8klvI
Programming Modbus RTU with Visual Basic
https://www.youtube.com/watch?v=recduwf7jY8&list=PLRCEJ0bGSS1aWsVlwpEthiufoux0eGxx9