Safe Z Spindle off Restart error
Posted: Mon Nov 12, 2018 6:24 am
I am sort of convinced this may be a bug. My code was working with v4.33, but now it has a problem with 4.34. Upon halting a runing gcode within KMotionCNC on a 3 axis gantry router, it should stop the spindle and go to machine zero, which is does. Where it has trouble is with continuing the job.
With running the attached c program as the "Halt" command from KMotionCNC in mid gcode, the problem is seen after pressing the start again. It will drop the Z back to the appropriate height per the job, but then it will start running to the next XY per job but to the Z machine zero or whatever value I use in my Safe Z program.
My guess is Kmotion is confusing the last gcode commanded value, that was in this case from my Safe Z via MDI, with the next value when I am in mid gcode without any Z's further called until the end of program. The odd part is it does correctly recognize the last running gcode Z value, and does go to it first, but then overlays the Safe Z value to the next XY.
FYI, I am using the MDI function instead of Move in the initial KMotion example C due to a continued servo tuning problem that results in overshooting rapids that are not run as feeds, and a desire to command the specific machine zero location. Again, this was not a problem with 4.33.
Thanks
With running the attached c program as the "Halt" command from KMotionCNC in mid gcode, the problem is seen after pressing the start again. It will drop the Z back to the appropriate height per the job, but then it will start running to the next XY per job but to the Z machine zero or whatever value I use in my Safe Z program.
My guess is Kmotion is confusing the last gcode commanded value, that was in this case from my Safe Z via MDI, with the next value when I am in mid gcode without any Z's further called until the end of program. The odd part is it does correctly recognize the last running gcode Z value, and does go to it first, but then overlays the Safe Z value to the next XY.
FYI, I am using the MDI function instead of Move in the initial KMotion example C due to a continued servo tuning problem that results in overshooting rapids that are not run as feeds, and a desire to command the specific machine zero location. Again, this was not a problem with 4.33.
Thanks