winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.86k stars 757 forks source link

UGS Freezes in the middle of job #2359

Closed cah-98 closed 8 months ago

cah-98 commented 8 months ago

Version

2.0.21

Hardware / Firmware

GRBL 1.1

What happened

Whenever i try to run a job it gets a few minutes in, different every time and then it just stops and keeps the spindle on. Still it reports the "Run" state while continuing to count the time in the Send Status counter. All controls are disabled and i have to restart the controller and reconnect to it to get it started again. For me this happens with all jobs i have tried so far. I have tried both in the nightly and 2.0.21 with GRBL 1.1f. The machine i am using is a Genmitsu 3020 pro max.

How to reproduce

Start a job, so far for me any gcode seems to cause this issue, and then wait until eventually it freezes up.

Operating System

Windows 11 Pro V22H2 64-bit

Anything else

Here is the latest gcode i tried. x-axis-brackets_1-Pocket.zip

Here is my log file: messages.log

breiler commented 8 months ago

This is a common problem with cheap Arduinos with the CH340 USB serial drivers. But as you are running a more robust and better quality machine we can rule this out.

Are you using a proper shielded USB-cable that came with the machine? No extensions and no USB-hubs?

Are you running it with the spindle that came with the machine?

What happens if you try to run the machine without the spindle?

cah-98 commented 8 months ago

I am using an extension cable connected to the original usb cable. Could try it without the extension. The spindle is original and i will try without it running aswell.

cah-98 commented 8 months ago

Tried it without the extension and it seems to be working now. Is there a better preferred way of connecting to the machine instead of USB? Any good wireless solution?

breiler commented 8 months ago

Personally I prefer USB.

But you could very well use TCP/IP connection over WiFi if your controller has those capabilities (my Genmitsu Pro Max does not). I know that many people with capable controller do this, but I am a bit concerned that any RF interference from spindle and stepper would impact the WiFi signal quality, causing lower bandwidths. 🤷🏻‍♂️

Nice that you are up and running, I'm closing this issue.