I've recently added a 4th axis to my homemade machine, and I've most likely overlooked something simple to get it working properly.
When Mach4 gets to line 18 of my code, the machine suddenly slams to a halt while on it's way to start the operation. As if a limit switch or e-stop has been triggered.
The spindle remains on.
After the slam, I am able to jog the machine around, like for a manual tool change but with the spindle still running.
When I hit cycle start again, the machine returns to the same position before slamming to a stop again, never actually reaching the origin I set.
I'm running Mach4(5570) with Pokeys57cnc.
I'm generating my g-code in Fusion360: Mach4Mill post, and autodesk machine configuration (4ax table yxa head z).
Could this be a post processing issue? Or have I messed up my settings in Mach4 itself?
I've attached my code.
Download link for a vid of the machine running the code:
https://we.tl/t-h0NZub3G18Thanks in advance for any tips,
Reece!