Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: resonance on September 24, 2015, 03:24:56 AM

Title: Setting Spindle Speed
Post by: resonance on September 24, 2015, 03:24:56 AM
Hello guys,
I have a problem with spindle speed: I often have programs involving M3 and M4 (both clock and anti-clock turning) but I can't set Mach3 to WAIT until the given speed is reached and, even more important, to wait for the motor to slow down to zero before inverting the sense of turning.
I correctly use the S command and indeed the spindle goes to that speed in the end but it can take a from 3 to 8 seconds depending on the rpm you choose: the faster, the longer it takes.
I know there is a setting in the config page to set how many seconds to wait after the S command before starting machining but this is not enough when you have to wait for the spindle to slow down before changing the sense of rotation.
Since the lathe has an rpm sensor that works perfectly it would make much more sense if it were read by Mach3 to know when to start machining or to wait until TE counter reaches zero before issuing the change sense of rotation.
Can it be done on mach3? What is the command?
Thanks!


Inviato dal mio iPhone utilizzando Tapatalk
Title: Re: Setting Spindle Speed
Post by: BR549 on September 24, 2015, 03:50:47 AM
Mach3 does not have that function.

(;-) TP
Title: Setting Spindle Speed
Post by: resonance on September 26, 2015, 01:04:42 AM
Oh... :(
Second attempt: is there a command to tell mach3 to wait motionless for a given amount of seconds?


Inviato dal mio iPhone utilizzando Tapatalk
Title: Re: Setting Spindle Speed
Post by: patton on September 26, 2015, 08:27:25 AM
Why not use dwell in your gcode... "G04 P5" after the s command..... waits 5 seconds before it starts cutting
Title: Re: Setting Spindle Speed
Post by: BR549 on September 26, 2015, 10:17:14 AM
Just make sure that Mach3 is set for seconds not Msec.

(;-) TP
Title: Re: Setting Spindle Speed
Post by: Hood on September 26, 2015, 04:41:14 PM
You could likely alter your M3 and M4 macros to add the G4P* and have it look at the spindle speed to determine how long it should be.
Hood
Title: Setting Spindle Speed
Post by: resonance on September 29, 2015, 10:42:46 AM
What do you mean by have it look at the spindle speed?


Inviato dal mio iPhone utilizzando Tapatalk