Hello
Guest
it is
March 28, 2024, 03:15:58 PM
Guest
Login
Register
Menu
Home
Help
Search
Calendar
Members
Members
View the memberlist
Search For Members
Login
Register
YouTube
Machsupport Forum
/
G-Code, CAD, and CAM
/
G-Code, CAD, and CAM discussions
/
Spindle speed control when changing direction
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Spindle speed control when changing direction (Read 3856 times)
0 Members and 1 Guest are viewing this topic.
DVanditmars
4
Spindle speed control when changing direction
«
on:
February 28, 2011, 07:09:08 PM »
Looked around and searched the forum...
The spindle motor controller in my machine requires that the motor is stopped before changing direction.
Ideally before changing the spindle direction;
1) Spindle speed is set to 0
2) Wait for the shaft index pulse to read 0 RPM
3) Change the spindle direction
4) Spindle speed back to what it was...
Is there a way to do this with G-Code, or is this something that needs to be done in Mach3?
If in Mach3 any help with that?
Thanks
Derek Vanditmars
Logged
ostie01
628
Re: Spindle speed control when changing direction
«
Reply #1 on:
February 28, 2011, 07:39:20 PM »
I'm not sure if I understand correctly your question.
Normally, M3 will spin motor CW
M4 will spin motor CCW
M5 will Stop motor
So you could use M3 S10000 , M5 to stop spindle and M4 S10000 to reverse it at 10000 RPM CCW.
Jeff
Logged
DVanditmars
4
Re: Spindle speed control when changing direction
«
Reply #2 on:
February 28, 2011, 07:49:03 PM »
In the example, between the M5 (stop) and the M4 S10000, (reverse at 10000 RPM).
There would not be enough time for the spindle motor to come to a complete stop, before starting up again.
Logged
ostie01
628
Re: Spindle speed control when changing direction
«
Reply #3 on:
February 28, 2011, 07:55:16 PM »
I think you could use a delay in the spindle tab configuration
But again, never used it myself.
Jeff
«
Last Edit: February 28, 2011, 08:00:05 PM by ostie01
»
Logged
DVanditmars
4
Re: Spindle speed control when changing direction
«
Reply #4 on:
March 01, 2011, 09:57:21 AM »
Thanks, Jeff.
I think that will work.
Logged
BR549
6,965
Re: Spindle speed control when changing direction
«
Reply #5 on:
March 01, 2011, 06:48:01 PM »
yOu can also modify the M3/M4 macros to allow the spindle to WAIT for it to stop before continueing.
(;-) TP
Logged
Print
Pages:
1
Go Up
« previous
next »