CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Modbus RTU

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
wmeade



Joined: 08 Sep 2003
Posts: 16

View user's profile Send private message

Modbus RTU
PostPosted: Fri Jan 26, 2007 9:32 am     Reply with quote

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

View user's profile Send private message

Modbus
PostPosted: Wed Feb 28, 2007 9:44 am     Reply with quote

Which problem you have? What does not work?
Storic



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

View user's profile Send private message Send e-mail

Re: Modbus RTU
PostPosted: Thu Mar 01, 2007 4:15 pm     Reply with quote

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? Wink
amor88_star



Joined: 10 Feb 2013
Posts: 1

View user's profile Send private message

PostPosted: Sun Feb 10, 2013 5:13 am     Reply with quote

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: 19469

View user's profile Send private message

PostPosted: Sun Feb 10, 2013 8:15 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 11, 2013 8:00 am     Reply with quote

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 Very Happy !

John
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group