@dc42 said in software limits prevent negative tool offset on IDEX Printer:
Why don't you change the Z limit in the tool change file to a value based on the Z offset of the incoming tool? That way you can use the same code for all tools.
@CR3D
Based on DC42's advice, I think this would work in your tool change file
M208 S1 Z{min(0,0 - tools[state.nextTool].offsets[2])} ; set Z minima to the lower of zero or zero minus incoming tool offset
But this line in the G10 documentation
Tool offsets are given as the offset of the nozzle relative to the print head reference point, so the signs are opposite to what you might expect because tool offsets are subtracted from the required printing locations during printing.
makes me wonder if the math should be
Z{min(0,0 + tools[state.nextTool].offsets[2])}
I don't have multiple tools, so I,m not 100% sure on the G10 setup.
e.g.
Let's say tool 1 is zero offset (reference) and tool 2 is 1mm higher in Z
If that means your Z offset for tool 2 is +1, then use the first example.
If it means your tool 2 offset is -1, then use the second example.