Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: lew on April 25, 2016, 12:16:07 AM

Title: Spindle stop after subroutine question
Post by: lew on April 25, 2016, 12:16:07 AM
OK, this is weird to me. I have been running Mach 3 for a long time. Lately, I've run some programs with subroutine calls and it always seemed to me that I put an M3 command in before the call to subroutine (way at the beginning of the program) and the spindle just keeps running even after the subroutine ends. Now, I need to put in an M3 command within the subroutine because without it the spindle stops after the first subroutine call and doesn't start again because the M3 is way at the beginning. There is not an M5 command in the subroutine. 
I'm not sure if a setting got hosed or I'm losing it.
Can anybody shed some light on this for me?