Modbus Plugin causing complete program crash

If you think you've found a bug post it here.

Modbus Plugin causing complete program crash

Postby Bagels » Wed Jun 03, 2020 9:21 pm

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.
Attachments
Default.pro
(38.95 KiB) Downloaded 613 times
Bagels
 
Posts: 9
Joined: Thu May 21, 2020 6:09 pm

Re: Modbus Plugin causing complete program crash

Postby Bagels » Wed Jun 03, 2020 9:33 pm

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.
Bagels
 
Posts: 9
Joined: Thu May 21, 2020 6:09 pm

Re: Modbus Plugin causing complete program crash

Postby dezsoe » Wed Jun 03, 2020 9:45 pm

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.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Modbus Plugin causing complete program crash

Postby Bagels » Wed Jun 03, 2020 10:03 pm

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.
Bagels
 
Posts: 9
Joined: Thu May 21, 2020 6:09 pm

Re: Modbus Plugin causing complete program crash

Postby dezsoe » Wed Jun 03, 2020 10:21 pm

Thanks. I'll try to find out something.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Report a bug

Who is online

Users browsing this forum: Bing [Bot] and 25 guests