Hi everyone,
I'm hoping that someone might be able to help be figure out what is going on with my Mach3 milling program, 3D adaptive tool path generated in fusion360.
The adaptive tool path seems to run flawlessly for the first 47865 lines of code but on 47866 it does something weird on what should be a simple straight diagonal move: X-58.484 Y30.804. On this line the Y moves fine but the X stays put, the X stepper making a weird noise like it is hitting its limits. This issue throws the X coords off by 58.484mm. By the time it runs a big linear move on line 47906, it's very obviously in the wrong place.
I have soft limits (I think) correctly set up: before I start the program I set the machine coords to the hard limits of the X,Y and Z axes. I then switch on soft limits and jog until the soft limits come into play, correctly. I've read that maybe something is causing the X stepper to stall, potentially mechanical... but here's the weird thing:
I worked backwards in the code incrementally from 47866, running the program from the start of each block of code: 47865, then 47847, 47804... etc. In this way I managed to narrow down the cause of the issue to the lines of code between 47003 and 47065. If I start the program AFTER 47065 then everything up to and including 47866 runs fine. But if I run from BEFORE 47003, the stalling/limits issue happens. I've tried running this at different feedrates, restarting mach3, re-posting the gcode - but the problem persists.
So I'm thinking it is most likely a gcode/mach3 settings issue rather than anything mechanical. Does that sound right?
Can anyone help me figure out what is going on?
Thanks in advance to anyone who reads this!
Full code file is here:
https://drive.google.com/file/d/1O8e...ew?usp=sharing