11
General Mach Discussion / Lathe tool change problem
« on: January 14, 2013, 05:32:10 PM »
This problem has existed since I started using my lathe, but I managed to tweak the g-code to get around it, but having just hit the problem again tonight, I want to figure what is actually causing the problem.
When changing between tools in the g-code, if there is a large distance on the X-axis needing moved, lots of steps get lost/the stepper stalls.
Tool changes are fine as long as the x-axis distance needing moved after the tool change is minimal (or is combined with a long Z move).
For example, if the new tool offset is 80mm different, and needs a physical movement of say 2mm to get to the next commanded position things are fine, or if it needs to move 100mm in the Z and 80mm in the X, things are fine.
However, if the physical movement needed is say 50mm in the X alone (or combined with a few mm in the Z), the x-axis will stall.
It's as though Mach ignores the max speed of the X-axis for that first move after a tool change.
If the first move is combined with a long Z move, because the two are interpolated to move diagonally, things go fine.
I'm not sure if it's related to some setting (G0 moves never cause any problems, and I've even tried reducing the X-axis max speed when I first had the problem), a bug with the SmoothStepper, or something wrong with Mach.
Anybody got any suggestions?
When changing between tools in the g-code, if there is a large distance on the X-axis needing moved, lots of steps get lost/the stepper stalls.
Tool changes are fine as long as the x-axis distance needing moved after the tool change is minimal (or is combined with a long Z move).
For example, if the new tool offset is 80mm different, and needs a physical movement of say 2mm to get to the next commanded position things are fine, or if it needs to move 100mm in the Z and 80mm in the X, things are fine.
However, if the physical movement needed is say 50mm in the X alone (or combined with a few mm in the Z), the x-axis will stall.
It's as though Mach ignores the max speed of the X-axis for that first move after a tool change.
If the first move is combined with a long Z move, because the two are interpolated to move diagonally, things go fine.
I'm not sure if it's related to some setting (G0 moves never cause any problems, and I've even tried reducing the X-axis max speed when I first had the problem), a bug with the SmoothStepper, or something wrong with Mach.
Anybody got any suggestions?