Page 1 of 1
MODBUS RTU
Posted: Wed Apr 16, 2008 11:58 am
by mscrace1981
Hello,
I'm interested in implementing MODBUS RTU protocol within Flowcode on PIC18F family. I would like know whether it is possible and also if anyone has tackled this. Some Sample code would be very much appreciated to get me started.
Thanks in advance,
Matt
Re: MODBUS RTU
Posted: Wed Apr 16, 2008 2:43 pm
by Steve
I have no experience of this, but I found a few examples of source code via a web search. Also, there is a Wikipedia page with links to source code and more information.
Re: MODBUS RTU
Posted: Thu Apr 17, 2008 5:57 pm
by mytekcontrols
This would be of interest to me as well. I probably wont get around to trying this until later this year, but if I do come up with something I'll be sure to post it. Of course I too need to learn the protocol.
Re: MODBUS RTU
Posted: Fri Apr 18, 2008 3:15 pm
by mscrace1981
Thanks for your replies guys. I am unsure as to whether it is easier to embedded c code into a flowcode macro or to build up the MODBUS routine structure from scratch using Flowcode blocks

. The dilemma lies in the fact that i've never put c code into Flowcode before and i want to make it easy on my self
Thanks,
Matt
Re: MODBUS RTU
Posted: Wed Apr 23, 2008 2:43 am
by mytekcontrols
It seems like it should be quite possible to build the protocol from within Flowcode itself. Just be a matter of using If-Then decision blocks to sort out the commands. Of course there might be a way to streamline it based on decoding commands and parameters separately. Perhaps even creating macros for the common elements. I'll be doing something like this in a couple of months for a protocol called ModCom. Later when I take a good look at ModBus, I'll probably find that I'll be able to use some of the same techniques.
Re: MODBUS RTU
Posted: Sun Jan 04, 2009 12:46 am
by MJU
Hey mytekcontrols
Did you use Flowcode with Modbus already?
I'm interested in this topic and want to hear from your work with Modbus...
Does anyone have a solution for the question of the topic starter???