I hope someone can help with this. I have an 8 position tool-rack and ATC, which I'm pleased to have now sorted out the majority of the issues I was having.
I have edited the //Example linear tool-changer code M6 macro and got it almost working but I need a small adjustment. I have tried a few times but can't seem to find the the right place in the macro to add the lines!
I edited and tested the M6 macro without any tool-holders in the spindle or the rack, to ensure no collisions. When doing a tool-change, it moves in the X and Y axis together, and therefore hits a tool in the rack. This seems more noticeable when a tool-change is required and the machine is at Home. This is only required when doing 'Manual' tool-changes by pressing one of the T1-T8 buttons, as when code is running, the X and Y axis will be away from the Home position
As I mentioned, I have edited the macro and got it almost working. I have added lines to try and move the X axis back to G53 X60 but only at SafeZ (-5), to prevent a tool in the spindle hitting any others in the rack.
It almost works but needs some tweaking. If someone could assist, and add //comments where the changes or additions have been made, that would be appreciated.