Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Garyhlucas on July 07, 2015, 08:23:15 PM

Title: My Modbus code
Post by: Garyhlucas 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,
Title: Re: My Modbus code
Post by: BobO 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.
Title: Re: My Modbus code
Post by: Garyhlucas 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.