I am working on writing a macro to automate a tool change, tool length probe, and return to a safe Z above origin of the the last operation.
I am a little confused about the functionality of the M585 command with regard to tool number. Specifically the confusion revolves around the spindle tool number versus the endmill tool number.
In the config.g, the spindle is defined with M563 as P0. Does the M585 use this tool number for offsets?
Or does it require a Tnnnn command before a M585 and offsets are saved to this endmill tool number?