NHL Posted September 12, 2020 Share Posted September 12, 2020 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 Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted September 12, 2020 Share Posted September 12, 2020 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.