On Monday 13 July 2015 05:29:57 Marcus Bowman wrote: > Being basically lazy, I often assemble programs from skeletons, and > add bits copied from text files or previously-saved code. I invariably > forget to renumber REPEAT loop references, so I end up with more than > one loop with the same reference number (like O500 REPEAT etc in 2 or > 3 places) When I load the program, LinuxCNC gets stuck in an endless > attempt to resolve the loop references. > > Is there a simple way to halt this? I can't find anything other than > shutting down LinuxCNC, and its a pain. Is there a keystroke > combination to force the program to stop? > > Regards, > > Marcus
I'll vote +100 on this one. I too am guilty of that, re-using code snippets that Just Work(TM). And I too would like to see a defined key combo that would stop it instantly in such a situation. So far, the only reliable way seems to be the front panel reset button. That works, but loses all the home & offsets in use, so that the machines setup to do that code once its fixed, can take an hour plus worth of fiddling around relocating the partial work on the table to within a fraction of a thou so that work on THAT piece can continue. Some of that can be speeded up if I took the time to rewrite tholefinder.ngc to take an arguement as to the expected radii of the hole, so it could move rapidly thru whats expected to be air. Right now, and unrelated to this other than that setup time, my toy mill is sitting, powered up, waiting on a couple envelops of 3/64" carbide drill bits I bought off fleabay Saturday night, as I seem to have lost/misslaid the two I had from a dremel kit, and thats the 75% tap drill size for an 0-80 screw. Estimated delivery is Thursday. But that will give me time to complete the rest of the encoders electronics. Hopefully, there will not be a weather related power failure to reboot that machine while I am waiting. 8-( That also might give me the poke in the ribs to rig the toy mill to do rigid tapping, but the way its built, it will take the removal of that whole 2 speed gearbox housing, and the construction of a new platform to hold the motor I took off the lathe, and make a 2 or 3 speed belt drive, above, or below which, I can mount an encoder. Its badly in need of additional rpms for engraving or pcb cutting. I figure the 400 watter from the lathe should do that nicely, and that the existing motor controller, whose output transistor blew years ago, and was replaced by a much better hexfet, can drive that bigger motor ok. Reversing it for tapping duty should work well but I'll have to cobble up some hal magic to assert a stop for about 1.5 seconds when the direction reversal is issued by motion. The current control setup stops it dead in its tracks in a second or less from full speed by dropping a power resistor near short (8 ohms IIRC) across it when stopped. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users