271
Mach4 General Discussion / Re: Spindle warm
« on: March 22, 2019, 10:16:28 PM »
I'm with craig, I can't see anything wrong with the code either.
However, why don't you just make a G Code file to warm up your spindle?
%
(Spindle Warm Up)
S12000 M3
G04 P240.0 (4 Min)
S18000
G04 P240.0 (4 Min)
M5
M30
%
I made a G Code file to warm up the spindle, I just keep it saved in my G Code Folder.
You can still put it in a button and make that button call a sub program.
You can save the spindle warm up program as a subprogram, and save it in the Subprogram folder in the Mach4 directory; save it as O9000 or something like that.
Then in the button script, use the MdiExecute API to call the subprogram. M98 P9000
However, why don't you just make a G Code file to warm up your spindle?
%
(Spindle Warm Up)
S12000 M3
G04 P240.0 (4 Min)
S18000
G04 P240.0 (4 Min)
M5
M30
%
I made a G Code file to warm up the spindle, I just keep it saved in my G Code Folder.
You can still put it in a button and make that button call a sub program.
You can save the spindle warm up program as a subprogram, and save it in the Subprogram folder in the Mach4 directory; save it as O9000 or something like that.
Then in the button script, use the MdiExecute API to call the subprogram. M98 P9000