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 CCS Technical Support

PIC MODBUS
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue May 21, 2013 8:50 am     Reply with quote

Are you modifying the modbus.c file?

The word at the end of the USE RS232 lines should be ERRORS not ERROR.
_________________
Google and Forum Search are some of your best tools!!!!
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Tue May 21, 2013 9:01 am     Reply with quote

It's "errors" in my (v 4.132) modbus.c.

So, what CCS version are you using Magnus?
magnus



Joined: 09 May 2013
Posts: 15

View user's profile Send private message

PostPosted: Tue May 21, 2013 12:45 pm     Reply with quote

I'm using 4.078 version.
But if I change word "ERROR" to "ERRORS" it works.
thanks for the tips, they really help me Very Happy
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue May 21, 2013 1:09 pm     Reply with quote

If you had to change the word you are not using the original MODBUS.c file
I would be careful of other possible changes.
_________________
Google and Forum Search are some of your best tools!!!!
magnus



Joined: 09 May 2013
Posts: 15

View user's profile Send private message

PostPosted: Wed May 22, 2013 7:45 am     Reply with quote

Do You recommend some Modbus master simulator?
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

View user's profile Send private message Visit poster's website

PostPosted: Wed May 22, 2013 2:35 pm     Reply with quote

I've had good luck with MDBUS by Calta Computer Systems.

I use B&B Model 485USB9F-2W converter that plugs into Windows USB port and provides two-wire RS-485 connections.
magnus



Joined: 09 May 2013
Posts: 15

View user's profile Send private message

PostPosted: Tue May 28, 2013 9:46 am     Reply with quote

Hello again.
Now I'm testing with a internal software and It presents the message: Check Sum error.
What error is it?
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Tue May 28, 2013 11:18 pm     Reply with quote

Checksum is used in MODBUS ASCII protocol, RTU has CRC. Maybe you are using wrong MODBUS mode.

Generally, you can review any detail in the MODBUS over serial line specification, see modbus.org.
magnus



Joined: 09 May 2013
Posts: 15

View user's profile Send private message

PostPosted: Wed May 29, 2013 5:16 am     Reply with quote

Thank You! Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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