Hello Guest it is March 29, 2024, 02:12:27 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - CNCUserDK

Pages: 1
1
Mach4 General Discussion / M3 macro does not start spindle
« on: October 21, 2021, 04:07:45 PM »
I have created a macro that is activated every time the M03 g code occurs. It works as it should.
The two commands I have inserted in the macro also work.
However, the spindle is not started. The G code continues without the spindle rotating.

Do I need a command to activate the spindle

Code: [Select]
function m3()
    inst=mc.mcGetInstance()
mc.mcCntlGcodeExecute(inst, "G00 Z36.000");
mc.mcCntlGcodeExecute(inst, "G04 P3.00");
end
 
if (mc.mcInEditor() == 1) then
    m3()
end

Pages: 1