Home » Categories » Protocols » Modbus

How can a module's Modbus port, configured as a Slave port, detect communication loss with the Master port?

When a device is a Modbus slave, it has no way to tell the difference between a situation where communications have failed between it and the master and a situation where the master is not trying to talk to it. If our module does not see a request from the master, it will not know why, i.e not be able to tell the difference between the master not trying to talk to it or bad wiring, or a locked-up master. Unless the slave receives a valid message addressed to it's slave node address, it will not know the master even wants to talk to it. As a Modbus slave, there is no way for our module to know whether or not a master is supposed to be communicating but isn't; and, therefore no bit or value in our module to pass this information on to the processor to generate a comm fail alarm. As a work-around, if you can add Modbus commands to the master device, you can have the master write a constantly changing integer value, essentially a 'heartbeat',that can be monitored by logic in the slave processor. If you can't add commands to the master, but it is always writing values that change to our module's slave port, you could use one of those values for your 'heartbeat'. You could then add timer logic in the slave processor to look for this 'heartbeat' data to change. If this data stops changing, the logic timers will time out and a comm failure alarm can be generated. For any suspected communication loss, always first check for cable faults or noise on the communication lines. for ProSoft MVI and ProLinx modules, use a terminal emulator program, like MS windows hyperterminal, to access the data analyzer through the debug/config port, port 0. refer to your user manual for details.


Related Keywords:

MVI ProLinx ProSoft

Custom Fields
    Attachments (0) Attachments
    There are no attachments for this article.
    Comments Comments
    There are no comments for this article. Be the first to post a comment.
    Related Articles RSS Feed
    Defining the Slave ID when issuing Modbus Broadcast write commands
    Viewed 1 times since Tue, Nov 28, 2006
    Read Commands from my Modbus Master to a ProSoft MCM Slave are working but Write Commands are failing. How do I fix this?
    Viewed 1 times since Fri, Feb 8, 2008
    What's the difference between Modbus ASCII and Modbus RTU?
    Viewed 1 times since Wed, Mar 19, 2008
    Can Modbus support redundant masters?
    Viewed 1 times since Tue, Nov 28, 2006
    How do you detect the individual Slave failure?
    Viewed 1 times since Wed, Nov 29, 2006
    I have limited or no experience with Modbus. How can I find out more about the protocol and command structure?
    Viewed 1 times since Tue, Nov 28, 2006
    I have multiple Modbus masters that need to communicate with 1 or more Modbus serial (RTU) slave devices. What product should be used??
    Viewed 1 times since Tue, Jan 23, 2007
    What Modbus address would we need to put into the MODSIM32 simulator if we specified on the MVI56-MCM device address to 8680HEX (-31104 decimal) when the MVI56-mcm is the slave?
    Viewed 1 times since Tue, Nov 28, 2006
    I am trying to use a ProSoft Modbus solution to send/receive data to a MSA Ultima X gas dectection system with Modbus interface and am having problems. How can I resolve this issue?
    Viewed 1 times since Thu, Apr 24, 2008
    I have a ProSoft Modbus Master solution and would like to know, is the Slave Status List the best place to monitor for communications health of the network?
    Viewed 1 times since Tue, Mar 18, 2008
    Article Rating (No Votes)
    Rate this article