Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: PeteG on January 19, 2020, 03:16:59 AM
-
Hi
Is there a G command that will pause a running program. I don't have option for an automatic tool change and want to use different tools on one piece, so I will have to manually change the tools. The G4 dwell code could give me a period of delay of however long I needed, but that is far too dangerous as it would start again once the time was up.
I could hit the 'Pause' button in Mach3, but a line of code would be far more elegant.
I have looked through the G and M code lists, but can't see a pause option.
-
why are you not using M6T?? and set toolchange to "Stop spindle wait for Cycle Start" ?
-
Hi
Thanks for the reply.
Why am I not using it? because I'm new to this. However, I think I've just answered my own question. I think it will go along the lines of:
(Time for tool change)
Z75 (Raise tool 75mm)
M00 (Stop program)
(Stop spindle the using the good ol' "switch it off" method)
(manually change tool, ensuring Z height is correct)
(Turn on spindle, hit cycle start to continue running the code)
Does that sound like it would work?
Cheers
Peter
-
Well, it worked.