Exit C program on Halt or Feed Hold
Posted: Mon Apr 25, 2022 11:41 pm
I am using a C program to handle auto tool changes.
If the toolchange program is running and I hit the Halt or FeedHold buttons in KmotionCNC, the axes halt but the C program continues, resulting in the ejection of the tool from the spindle wherever it has halted on the table. Not ideal.
What code can I add to the toolchange program to test for Halt or FeedHold and exit out of the toolchange C program to prevent this from occurring?
Or is there a better way to prevent this situation from occurring?
Regards,
Laurence
If the toolchange program is running and I hit the Halt or FeedHold buttons in KmotionCNC, the axes halt but the C program continues, resulting in the ejection of the tool from the spindle wherever it has halted on the table. Not ideal.
What code can I add to the toolchange program to test for Halt or FeedHold and exit out of the toolchange C program to prevent this from occurring?
Or is there a better way to prevent this situation from occurring?
Regards,
Laurence