Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: allanjs on May 28, 2007, 09:44:32 PM

Title: Spindle won't stop on reset
Post by: allanjs on May 28, 2007, 09:44:32 PM
Hi Guys,
It's been a while since I last posted. I am having a problem and need some help.
I have set the esc key to the reset function. All axis stop fine and the program
stops execting when I press the esc key, but my spindle will not turn off. What
do I need to do to get the spindle to stop also ?
Thanks in advance.
Al
Title: Re: Spindle won't stop on reset
Post by: Brian Barker on May 28, 2007, 10:54:52 PM
You will need a DoSpinOFF()

That should do it
Title: Re: Spindle won't stop on reset
Post by: allanjs on May 28, 2007, 11:05:16 PM
Brian,
Does that need to go in a Visual Basic script ?
Where and how please ?
Thanks
Al
Title: Re: Spindle won't stop on reset
Post by: allanjs on May 29, 2007, 12:04:34 AM
Something wierd going on here.
If I set up the F2 function key for reset every thing works
fine including stopping the spindle.
Any guesses what's going on ? Is there a reason the esc key can not
be used for the reset function ?
Al
Title: Re: Spindle won't stop on reset
Post by: Chaoticone on May 29, 2007, 01:50:12 AM
Al, unless it has to be the F2 key I would set it back to the default. It is the ~` key, beside the 1 at the top. You may have to dissect the whole screen set to see what the interference is or maybe your system hot keys, or just a windows things.

Brett
Title: Re: Spindle won't stop on reset
Post by: Brian Barker on May 29, 2007, 09:02:12 AM
The esc Key is not something that you should  use :( The Esc key is hard coded into the software as a STOP NOW in Gcode moves... I would  use the ~ key.
Thanks
Brian
Title: Re: Spindle won't stop on reset
Post by: allanjs on May 29, 2007, 11:59:54 PM
Thanks Brian,
That would explain the problem. I thought I had this working with the
esc key at one time but that may have changed in some of the
latter Mach versions.
Al