Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Cool stuff
Select a topic of interest:
...and press:
RSS Feed
RSS feed Use this link to get an RSS feed of the Modbus Community article flow, for private, non-commercial use only:
modbus.control.com/rss/
To get a personalized feed, become a member at no cost.
from the Electronic Lab department...
Application Protocol Specification of MODBUS
Programming languages. topic
Posted by Prab on 9 September, 2009 - 7:56 am
I am implementing MODBUS protocol in C++. So far, I have implemented data link layer (Master/Slave) with State design patten. Currently, I have used RS-232 serial communication, but in future if TCP communication is chosen, then there is no need to change Master/Slave implementation.

However, my question is regarding Request message from Master.

Does master record information of memory allocations of all slaves (e.g. Starting Address, this address is part of Request message, sent from master to slave)?

Thank you


Posted by M Griffin on 9 September, 2009 - 12:50 pm
Your question is a bit ambiguous so I may not have interpreted your question correctly. However, the "starting address" refers to the coil/discrete input/register number which is the start of the block of coils/discrete inputs/registers that the command wants to read from or write to.

The client (master) sends whatever "starting address" the user (or application program) asked for. If any of the referenced addresses do not exist in the server (slave), the server will reply with an exception (error) rather than the data. It is up to the person using the software to know what addresses they want to ask for, as they are the only ones who know what their intentions are.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.