1
Mach4 General Discussion / RefAllHome in Gcode end
« on: February 08, 2024, 04:02:24 AM »
Hi all guys!
A help please!
I need to perform a RefAllHome at end of my Gcode.
I did a macro m300:
Macro 300 --> RefAllHome ao fim do corte
function m300()
mc.mcCntlSetLastError(inst, "Referenciando eixos")
wait = coroutine.create (RefAllHome) -- Referencia eixos
mc.mcCntlSetLastError(inst, "Referência completada")
end
But it doesn't work!
I think to create a macro that simply make a click in the button for RefAxis in the Mc4, bbut... I don´t know how i can make a 'click' in button through a macro!
Waiting for suggestions...!
Thank you in advance!
A help please!
I need to perform a RefAllHome at end of my Gcode.
I did a macro m300:
Macro 300 --> RefAllHome ao fim do corte
function m300()
mc.mcCntlSetLastError(inst, "Referenciando eixos")
wait = coroutine.create (RefAllHome) -- Referencia eixos
mc.mcCntlSetLastError(inst, "Referência completada")
end
But it doesn't work!
I think to create a macro that simply make a click in the button for RefAxis in the Mc4, bbut... I don´t know how i can make a 'click' in button through a macro!
Waiting for suggestions...!
Thank you in advance!