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

explain holding register for modbus slave 16f877a

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



Joined: 16 Feb 2011
Posts: 42

View user's profile Send private message

explain holding register for modbus slave 16f877a
PostPosted: Sun Dec 25, 2016 12:30 am     Reply with quote

Dear Sir

I successfully tested a modbus slave for 16f877a with Kepserver.
But I do not understand the address of registers:
Code:
 the int16 hold_regs[] = {0x8800,0x7700,0x6600,0x5500,0x4400,0x3300,0x2200,0x1100};
   int16 input_regs[] = {0x1100,0x2200,0x3300,0x4400,0x5500,0x6600,0x7700,0x8800};

holding registers for modbus are 16 bits from 40001---49999.

The address 0x8800,0x7700,0x6600,0x5500,0x4400,0x3300,0x2200,0x1100

Where can i find the register 0x8800, 0x7700,... on 16f877a manual ?
What standard declare holding register address on 16f877a ?
Thank you very much.
temtronic



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

View user's profile Send private message

PostPosted: Sun Dec 25, 2016 5:57 am     Reply with quote

re:
Where can i find the register 0x8800, 0x7700,... on 16f877a manual ?

You can't, those registers are for MODbus not a PIC. You should get a book on MODbus to understand MODbus.

While I don't use MODbus, it's just another form of communcations, like RS485, PPP, I2C,SPI or MSC500 that have clearly defined standards and protocol. The PIC 'driver' or program simply allows you to use a PIC to communicate with a MODbus device.

Jay
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