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

RS-485 Communication in PIC16F887 controller

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



Joined: 03 Feb 2021
Posts: 1

View user's profile Send private message AIM Address

RS-485 Communication in PIC16F887 controller
PostPosted: Mon Feb 15, 2021 10:56 pm     Reply with quote

Hello guys,

I need to communicate a microcontroller PIC 16F887 with my PC via modbus RTU/485.

I am using MASIBUS RS-485 Converter and MODSCAN Software for testing purpose.

When i start communicating and i am receiving message as follows, RECEIVED INVALID RESPONSE TO MODBUS QUERY.

Can you help me???
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Feb 16, 2021 5:56 am     Reply with quote

re:
Quote:
When i start communicating and i am receiving message as follows, RECEIVED INVALID RESPONSE TO MODBUS QUERY.

it says ,to me, that something sent a MODBUS 'query' and what was returned was an 'invalid response'. That could mean 'data out of range' but without knowing what the 'query' was , and the actual 'response', I can't say why it happened.

WHICH device reports this error ? The PC or the PIC ?
What PIC program are you using ? Perhaps the CCS RS485 example ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Tue Feb 16, 2021 7:59 am     Reply with quote

It's the classic 'uninformative' message... Sad

If you search for MODSCAN and this error, you will see that almost every
fault will give it. Incorrect cabling, incorrect baud rate, incorrect register
number etc. etc.. So you need to look at each in turn and see which is wrong.
Some packages do have a proper 'error number' available, which will give
much more information. You need to investigate to see if one does exist.
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