by Bluebell » Wed Dec 02, 2020 10:18 pm
Thanks for the prompt reply.
I Left a lot of boring detail on the code from my question in the hope there might be some generic things I should check,
So now some more detail:
Machine and software:
Net Framework 4.7.2
Win 7 Ultimate 64 bit Service Pack 1
Intel 3.5GHz processor 16GB Memory
Motion Control UCCNC100 connected to Gecko 540
This machine is dedicated to a 6040 CNC Router
When I installed UCCNC I reformatted the PC C Drive and installed Win 7 fresh.
There are no programs other than windows and network on the machine.
It is networked via WiFi to my home network for file sharing. Internet access is blocked by the router.
I use UCCNC for 2 purposes
1. Making PCBs. For this PCB Gerber files from (Ancient but fine for my hobby purposes) CircuitMaker are fed to Line Grinder to produce GCode. This is done in Imperial units (Mils) which is the native language of CircuitMaker and its component database. Because I as a matter of principle only use metric units on the router I use an Excel macro to read the imperial GCode and convert it to metric. In that process the Macro outputs a “Ring around the Rosie” file used to check the PCB fits in the space allocated on the blank PCB, A track cutting file, a Drilling file, a cut out file and from the latter a Level Probing file with an output in the format to be read by Auto leveller. The Macro produced level probing file overcame some issues I had with the AutoLeveler produced version and to speed up the whole process.
The probing grid is always 10mm.
Te probing is done direct to the grounded copper surface of the PCB with 15 degree Vee cutter.
This process works flawlessly for my PCBs, which are in the 150 x 150 mm range,
2. Making building models and model train parts in MDF Brass, aluminium and PCB Fibreglass. Parts are drawn in TurboCAD and GCode produced by its CAM module. Tuning of the GCode is done by hand (Mainly removing redundant duplicate code out put by TurboCAM) . The level probe code is produced by an Excel macro from corner coordinates of the part input entered into the spreadsheet. The The probing grid is always 10mm.
The probe is a mechanical micro switch fitted to the motor collet of the 6042.
It is this level probing that fails “UNCC Stopped Working” at random. As the failure is in different places in the code and the code is macro generated (no chance for Old Fingers Trouble) the problem is in my view unlikely to be in the code.
I cannot tell you how to reproduce the error as it happens at random. My suspicions radar is more or less locked on to PC software issues as you suggest and to electrical interference in the probe circuit. The Gecko has PullUp resistors on the probe input, so such interference should not happen – but Murphy’s Law would apply and over ride that logic.
During early probing sessions I had the probe lift set to a minimum clearance and did get an error where the program stopped saying the probe was aborted as the probe was operated at the start of the probe. I set the lift to 10mm and that problem went away, but was replaced by the random stopped working error. I have reset the lift to 5mm, which should still be above the height variation in the PDF blank and the probing process is much faster. I have completed and produced one successful probe file. But I hate unexplained things, especially as the probing process takes a long time and to have to keep repeating that until I at random get a successful run is exasperating.
To me it seems significant that UCCNC not only stops working, but disappears from the screen and from memory altogether. At least with the first error the program stopped but remained working (Still on screen), and went on successfully from where it stopped with a Cycle Restart.
I am sorry I cannot explain how to reproduce the issue, as it is completely random from my observations. But, I hope this somewhat lengthy diatribe might help you to suggest what is wrong and what I should do,
- Attachments
-
- 4DL Baseboard Level Probing A3 Working Area.txt
- (63.89 KiB) Downloaded 525 times