Confusion regarding Tool Length Offset / M585
-
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?
-
Hey, did you ever find an answer to this?
I'm trying to understand your distinction between "spindle" tool number and "endmill" tool number.
Do you have separate tools for each endmill, or does your machine automatically toolchange into the same spindle?
If it's the second one, I imagine you could just redefine the tool number in the tool change macros for each endmill/cutter, so that each one has it's own offsets, referenced by G10 P...
-
@tealfixie the M585 command is normally used to probe in the X or Y direction, not Z.