Page 1 of 1

Halt pause movement, but continue executing tool changer routine.

Posted: Fri Nov 04, 2022 2:59 am
by gui_marchioro
Hello,

I am facing some problems when trying to halt during an M6 command execution. The halt only seems to pause the axes movements, but keep executing the tool changer routine (video attached).



Is that the expected behavior from the halt command?

Thanks in advance for the reply.

Sincerely,
Guilherme

Re: Halt pause movement, but continue executing tool changer routine.

Posted: Fri Nov 04, 2022 4:53 pm
by TomKerekes
Hi Guilherme,

You would have to add checks throughout the Tool Change program to detect Halt and stop/exit. You could add the checks at points where it would be appropriate to stop. Most likely every place that loops waiting for something to finish. You should be able to check JOB_ACTIVE to determine if the Job was Halted. ie

Code: Select all

		if (!JOB_ACTIVE) return;  // if Job was terminated exit
Depending on the situation you might want to do something besides exiting. Such as Stopping a motion with a Jog to zero speed.

HTH

Re: Halt pause movement, but continue executing tool changer routine.

Posted: Mon Nov 07, 2022 1:17 pm
by gui_marchioro
Hello,

I have tested and it worked. Thank you for the insight!

Sincerely,
Guilherme