1
Mach4 General Discussion / Need help triggering feedhold with a driver alarm - Mach 4
« on: August 02, 2021, 08:45:56 PM »
I have hybrid stepper motors on my plasma table and I would like the alarm function to trigger a feed hold in Mach 4. I have tried numerous different times to write the code myself (more like copying others code) but I can't get it to work. Right now I have the code where it reads the pin when the state changes and it sends an error message but I can't get it to trigger a feed hold no matter what I try. Any help would be appreciated.
Code so far:
[mc.ISIG_INPUT0] = function (state) -- X Axis
mc.mcCntlSetLastError(inst, "X Axis driver ALARM - STOPPING")
end,
Thanks!
Code so far:
[mc.ISIG_INPUT0] = function (state) -- X Axis
mc.mcCntlSetLastError(inst, "X Axis driver ALARM - STOPPING")
end,
Thanks!