Hello Guest it is March 28, 2024, 04:31:53 PM

Author Topic: Setting Spindle Speed  (Read 2552 times)

0 Members and 1 Guest are viewing this topic.

Setting Spindle Speed
« 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Setting Spindle Speed
« Reply #1 on: September 24, 2015, 03:50:47 AM »
Mach3 does not have that function.

(;-) TP
Setting Spindle Speed
« Reply #2 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
Re: Setting Spindle Speed
« Reply #3 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Setting Spindle Speed
« Reply #4 on: September 26, 2015, 10:17:14 AM »
Just make sure that Mach3 is set for seconds not Msec.

(;-) TP

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Setting Spindle Speed
« Reply #5 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
Setting Spindle Speed
« Reply #6 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