Page 1 of 1

M5 to stop router at end of file

PostPosted: Tue Sep 20, 2022 8:12 pm
by bhdavis
I end my cut files with an M5 and then a G53Z0 just before a transit command to move the router out of the way of removing the part.

Sometimes I don't want the router to turn off at the end of a file. Such instances would be doing a repeat, quickly accomplished process on repeat parts.

However when I remove the M5 the spindle still turns off as soon as the file ends.

Is there a setting somewhere that is telling the spindle to turn off at the end of a file even if there is no M5 command? If so can it be turned off?

Thanks,
BH

Re: M5 to stop router at end of file

PostPosted: Tue Sep 20, 2022 8:50 pm
by Battwell
m30 also turns it off.
swap to m47 which is repeat

Re: M5 to stop router at end of file

PostPosted: Tue Sep 20, 2022 9:05 pm
by bhdavis
Here is the file edited as I tried to run it today. There is normally a G53Z0 and an M9 at the bottom but I removed those out of curiosity. The spindle still turns off after the G0 X50 Y30 last line. I'm running Ver. 1.2111 and this spindle shut off happens on all my files whether there is an M5 at the end or not.

G90
G53 Z0
M7 [Turn on dust collect. and hold down]
M3 S18000
G4 P2 [Dwell for about 3 seconds for spindle up to speed]

G0 X7.5 Y11.875
G0 Z0.5
G1 Z-0.3125F50
F50
G1 Y12.375
G1 X7.51
G1 Y11.875
G0 Z0.5

G0 X23.49 Y11.875
G1 Z-0.3125
G1 Y12.375
G1 X23.5
G1 Y11.875
G0 Z0.5

G0 Z3
G0 X50 Y30

Re: M5 to stop router at end of file

PostPosted: Sat Oct 15, 2022 11:25 am
by Battwell
if you want to repeat the code immediately. add m47 at the end.
this will repeat the code without switching spindle off.
otherwise you come to end of file .