NHL

Enable/ disable modbus Device

Recommended Posts

I’m looking into the best way to disable a modbus device (multi-function power meter) to prevent timeout errors and data reading issues. Currently when a power meter is disconnected (circuit switched out) the data being pulled from other devices displays incorrectly. 
 

What I’m looking to do is condition a device being “enabled” by a digital input from the distributed I/O.  So effectively when a power meter is shut down it doesn’t effect any other data? Is this possible?

 

thanks. NHL

Share this post


Link to post
Share on other sites

First, a Modbus device that has is not connecting should not affect the data coming from other devices.  If it is, then you have other issues, probably related to Modbus IDs (are you using 0 or 255?).  Timeouts will affect other devices on the same Timing interval of the channels, but won't affect the actual number received from working devices, just how often it is able to poll.  This you can fix by putting each device on a different Timing / Offset setting.  But that only really works if each device is on its own serial port, or Ethernet IP.  If you are doing multidrop, then you are limited.

That all said, you can use the SetBypass() function to essentially disable a particular device, or a particular id on a device.  This is described in detail in 6.13 of the user's guide.  It can be used to disable a device, or to create a simulation when you are offline.

But, do take the time to figure out why one device's status affects the data being received by another device.  Simply bypassing the offending device is chasing the symptom and not the cure.  Once you figure this out, then you can implement the bypass to make your system run more efficiently.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now