arkypita / LaserGRBL

Laser optimized GUI for GRBL
http://lasergrbl.com
Other
1.22k stars 486 forks source link

The machine stops while working engraving machine #1793

Open T-Szabolcs opened 2 years ago

T-Szabolcs commented 2 years ago

LaserGrbl v3.8.9.0 Grbl v1.1f Wrapper: UsbSerial Win 7, Ultimate, 6.1.7601.65536, Service Pack 1 (0) CLR: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll 2.0.50727.8806 (QFE.050727-8800)

TypeOf exception [System.ObjectDisposedException] Exception message [A biztonságos leíró be lett zárva.] Exception source [System], thread [] Exception method [Boolean GetOverlappedResult(Microsoft.Win32.SafeHandles.SafeFileHandle, System.Threading.NativeOverlapped*, Int32 ByRef, Boolean)]

----------- stack trace ----------- a következő helyen: Microsoft.Win32.UnsafeNativeMethods.GetOverlappedResult(SafeFileHandle hFile, NativeOverlapped* lpOverlapped, Int32& lpNumberOfBytesTransferred, Boolean bWait) a következő helyen: System.IO.Ports.SerialStream.EventLoopRunner.WaitForCommEvent() a következő helyen: System.Threading.ThreadHelper.ThreadStart_Context(Object state) a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) a következő helyen: System.Threading.ThreadHelper.ThreadStart()

The machine stops while working and does not perform the job. Then from there s e I can move the laser. He doesn't react to anything.Write this error code above. What could be the problem?

arkypita commented 2 years ago

First of all you are using an old version of LaserGRBL, I suggest to upgrade to latest version.

This issue is related to a bug in Microsoft serial library that I was never able to solve because it is not into my code. I suggest to update Microsoft .NET framework to latest version too.

If it doesn't solve I suggest to try with UsbSerial2 that is a different implementation of serial port. image

T-Szabolcs commented 2 years ago

When I used LightBurn Software my age would stop after 2-3 hours. The program and time went by but the laser didn't go.

gmmanonymus111 commented 2 years ago

The program and time went by but the laser didn't go.

Do you mean the stepper motors kept going but there was no laser light, or the time/simulation kept going and then were no motor movement and laser light? I'm suspecting a bad connection between your PC and your engraver. Could you try a different USB cable and port just to make sure? Also, could you tell us what kind of engraver you use?

T-Szabolcs commented 2 years ago

The time/simulation kept going and then were no motor movement and laser light. My machine CNC2-6550.

gmmanonymus111 commented 2 years ago

Do you use an offline controller while you try to engrave? Offline controllers sometimes interfere with the communication between the PC and the engraver.

T-Szabolcs commented 2 years ago

what do you mean? what it means?"use an offline controller while engraver?"

gmmanonymus111 commented 2 years ago

An offline controller means a panel or screen capable of controlling your engraver without a PC. Like these: image image image

T-Szabolcs commented 2 years ago

Mine only computers go. Can't put usb.

T-Szabolcs commented 2 years ago

What to do? Should I move my PC further away or buy a laptop?

gmmanonymus111 commented 2 years ago

Mine only computers go. Can't put usb.

I don't understand that, sorry.

What to do? Should I move my PC further away or buy a laptop?

You shouldn't need to move away from your PC, you just need to use a different USB cable and/or a different USB port on your PC. If you have a working desktop computer, you don't need a laptop. PS: If you'd like to discuss it further in Hungarian, you can find my contact info on my profile. If a solution is found, I'll report back here. EDIT: After roughly a month, I assume the issue's resolved.

bsdnomad commented 2 years ago

Just an idea: It could be about the computer PSU/USB port power providing 5V as expected but with a lower current. Just a similar issue I had recently: there was a 3D printer (12V/150W PSU + ext. powered USB hub where a OrangePi/OctoPrint server was connected) and the CNC router + laser PSUs were connected to the same power inlet. At some point 3D printer was stopping the head in the middle of the print process (esp. when the printer was about to perform rapid movements) while CNC was on idle but both CNC PSU and laser powered. So , definitely it was about the power provisioning. Perhaps the same happens in the reported case - if there are any other devices connected to the same internal USB bridge they could drain bigger amount of current and affect serial communication b/n the computer and the CNC/laser