View previous topic :: View next topic |
Author |
Message |
wmeade
Joined: 08 Sep 2003 Posts: 16
|
Modbus RTU |
Posted: Fri Jan 26, 2007 9:32 am |
|
|
I have recently taken on the challenge of interfacing my 18F452 to a PLC using Modbus RTU. I noticed that there was a modbus.c file in the drivers directory but no example files. I contacted tech support and I was sent a new modbus.c, ex_modbus_master.c, and ex_modbus_slave.c files that will be in an upcomming release. I have tried to use these files with a modbus PC testing program to no avail. If someone would be willing to look at the new files and the test program I will email them the files. All I need to do is communicate a adc number between 0 and 32767 to the PLC acting as a master. Thanks in advance... |
|
|
Max
Joined: 15 Dec 2003 Posts: 51 Location: Italy
|
Modbus |
Posted: Wed Feb 28, 2007 9:44 am |
|
|
Which problem you have? What does not work? |
|
|
Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
|
Re: Modbus RTU |
Posted: Thu Mar 01, 2007 4:15 pm |
|
|
wmeade wrote: | I have recently taken on the challenge of interfacing my 18F452 to a PLC using Modbus RTU. I noticed that there was a modbus.c file in the drivers directory but no example files. I contacted tech support and I was sent a new modbus.c, ex_modbus_master.c, and ex_modbus_slave.c files that will be in an upcomming release. I have tried to use these files with a modbus PC testing program to no avail. If someone would be willing to look at the new files and the test program I will email them the files. All I need to do is communicate a adc number between 0 and 32767 to the PLC acting as a master. Thanks in advance... |
I have been waiting for examples as you have recieved so I could try out.
In the "PIC WIZARD" CCS V4.025 I tried to setup MODbus however some item may be missing, After completing the wizard, I compile and found the wizard did not name the COMM_1 stream, Also it call for "modbus_init();" in the program that is not there. when I got this error, I did not go on any further from this point.
Have you looked at http://www.ccsinfo.com/forum/viewtopic.php?t=19306
Andrew.[/quote] _________________ What has been learnt if you make the same mistake? |
|
|
amor88_star
Joined: 10 Feb 2013 Posts: 1
|
|
Posted: Sun Feb 10, 2013 5:13 am |
|
|
Dear ;
can you upload the files you got , please ?
As I am trying to interface the Stellaris with Modbus .
and if you can give me any tips ?
thanks in advance
Amr |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Sun Feb 10, 2013 8:15 am |
|
|
Quite good complete ModBus drivers have been included with the compiler for several years. Look on the date of the post you have attached to. Over five years ago. You already have the files if you have the compiler now....
Best Wishes |
|
|
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Mon Feb 11, 2013 8:00 am |
|
|
Hi Ttelmah,
'Stellaris' is a TI ARM microprocessor, so that guy is totally in the wrong place
looking for help. You *really* have to wonder about some of these students
these days when they can't even find the right places to ask for help! The
word "clueless" comes to mind !
John |
|
|
|