Page 1 of 1

Modbus Plugin causing complete program crash

PostPosted: Wed Jun 03, 2020 9:21 pm
by Bagels
I have been trying to get my vfd hooked up via Modbus, and it seems to be working somewhat, but I have been running into complete crashes of UCCNC while setting it up. This most often happens cycling between loop start and stop.

I have a waveshare USB to Rs485 isolated dongle: https://www.waveshare.com/usb-to-rs232-485-ttl.htm
And I am connecting to a DZB300 inverter.
UCCNC version is 1.2112

I have attached a video of the error, and my .pro.
https://youtu.be/cZ20SzE-lNE

This kind of termination has happened randomly throughout this setup process, but this was the only scenario repeatable enough to get a video of. Most of the time it was somehow correlated to the loop button.

If you need more information I can try and get whatever you need.

Re: Modbus Plugin causing complete program crash

PostPosted: Wed Jun 03, 2020 9:33 pm
by Bagels
I should add, this almost always happens when the settings are set up to write or read something the VFD can't handle, ie. an invalid Modbus request - red in the debug view.
It also (always as far as I can remember) happens in response to a ui interaction of some kind. If I just left it alone it never crashes.

Re: Modbus Plugin causing complete program crash

PostPosted: Wed Jun 03, 2020 9:45 pm
by dezsoe
That's interesting, I've never met this. Could you, please, try this version of Modbusmaster plugin? There were some fixes since the 1.2112 release.

Re: Modbus Plugin causing complete program crash

PostPosted: Wed Jun 03, 2020 10:03 pm
by Bagels
Okay. With that new dll replacing the original and a little more testing:
Still crashes.

It seems that clicking on start/stop while it is still processing the previous start/stop command, or while under processing load crashes it. It appears to be more sensitive to this when connection setting are incorrect ie, incorrect parity, or trying to read or write invalid options.

Re: Modbus Plugin causing complete program crash

PostPosted: Wed Jun 03, 2020 10:21 pm
by dezsoe
Thanks. I'll try to find out something.