221
General Mach Discussion / Re: Inconsistant ATC Positioning
« on: March 09, 2017, 08:02:30 PM »
I think your problem is real simple. You have a code block for every tool position. While G90 is modal and stays in effect if your progrsm uses a g91 anywhere your macro will fail. So just two things you need to check. Issue the G90 before every move in each of the 8 tool blocks of code. Then make sure each code block does a G0A0 for tool one, G0A45 for tool two, G0A90 for tool 3 and so on.
I see there is also code to reverse the travel direction for 2 degrees probably to set your position against a hard ratchet stop. I can't quite see how that works with a stepper motor as I think it could cause the motor to lose a couple of steps each time and the position will walk off over multiple tool changes. Might need to remove that code from each tool block if that happens.
I see there is also code to reverse the travel direction for 2 degrees probably to set your position against a hard ratchet stop. I can't quite see how that works with a stepper motor as I think it could cause the motor to lose a couple of steps each time and the position will walk off over multiple tool changes. Might need to remove that code from each tool block if that happens.