Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jpentlan on November 04, 2016, 10:27:29 AM

Title: Reset spindle speed at startup
Post by: jpentlan on November 04, 2016, 10:27:29 AM
Hello,
I am hoping someone can help me with a small, but annoying, problem.  When I start Mach3, the spindle speed SRO% is at 0% instead of 100%, so if I try to run a program without manually hitting the reset SRO button, my spindle won't turn (VFD controlled spindle).  Does anyone know how to reset the initial spindle speed SRO% value from 0 to 100?  Thanks
Joe
Title: Re: Reset spindle speed at startup
Post by: joeaverage on November 11, 2016, 04:13:34 AM
Hi,
when I fire up Mach3 I get SRO=100% as default. Don't know how to change that.

You could write a script and perform that script as initialisation string, a work around to be
sure but I think a workable one.

Use 'Edit VBscrpit' on 'operator menu'

sub main()
setOEMdro(74,100)
end sub

and save it as m150 say if m150 is not already in use.

The first argument is the DRO number of the Speed Rate Over Ride=74.
The second argument is the desired percentage over ride, 100 in this example.

Then add 'm150' to your 'initialisation string' on the 'General Config' page.

Craig
Title: Re: Reset spindle speed at startup
Post by: jpentlan on November 11, 2016, 11:14:58 AM
That's a great idea.  I'm going to do it now.