A Modbus Users' Community

A Control.com syndicated community

Link to Control.com main site
Control.com main forum
Link to the Modbus.org site
Modbus.org main site
Developers' Forum

To view additional discussions, click here.


Return to Modbus Users' Community Home Page

Modbus Transaction State Diagram
Apr 29, 2008 10:28 pm, by Priya
Subject : Communications
from the Home and Building dept.
Text :
In the Modbus RS485 Communication,

Depending on the result of the processing two types of response can be built:

1. A positive MODBUS response:
the response function code = the request function code

2. A MODBUS Exception response:
if Function Code not supported or Invalid Address or Invalid Data or Error in Processing.

Whether it is mandatory that the Server should provide Exceptional Response if it doesn't support that function code?

What is the standard way of processing a request as per the Modbus Compliance?
Reply


  • Re: Modbus Transaction State Diagram
    May 3, 2008 2:58 am, by Michael Griffin
    Your question is answered in the "MODBUS APPLICATION PROTOCOL SPECIFICATION" which you can download for free from "
    http://www.Modbus-IDA.org". A state diagram is provided for each function showing how it is to be handled and the order in which it is to be handled.

    In general though, the specification states that requesting an unsupported function code results in a response with an exception code of 1.
    Reply


  • The man who sets out to carry a cat by its tail learns something that will always be useful and which never will grow dim or doubtful. - Mark Twain
    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-2006 Control Technology Corporation. Powered by Python, Zope, and Squishdot, inspiration by Slashdot. (Vers.ZSQ1.0)