News:

  • July 02, 2026, 12:58:49 PM

Login with username, password and session length

Author Topic: My Modbus code  (Read 6237 times)

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
My Modbus code
« on: July 07, 2015, 08:23:15 PM »
I've attached a printout of the code I created to talk Modbus to 5 Hitachi VFD drives.  The code works, but after reading some comments in other threads I may have done a lot of unnecessary work? In particular I wanted to ensure here that if one drive is off line it doesn't prevent talking to the others.

Thanks,

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: My Modbus code
« Reply #1 on: July 07, 2015, 10:00:06 PM »
Nothing wrong with what you've done. You may have done more than was needed, but over-engineering is in fact a virtue, no?

Do-more handles all interlocking internal to the driver, so it is possible to hang every MWX/MRX off of the power rail at the top of the program and they just work...however...that does not give you the finer control and error reporting that some prefer, so we also designed them to sequence as you did. Not a thing wrong with tighter supervisory control.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: My Modbus code
« Reply #2 on: July 08, 2015, 10:35:46 AM »
Thanks,
I am not looking for shortcuts, I am focused on really user friendly product and bulletproof as I can make it. We hope to build lots of systems around this code.