ioSender icon indicating copy to clipboard operation
ioSender copied to clipboard

Use G59.3 As TLR - tool length reference

Open LoganFraser opened this issue 2 years ago • 6 comments

Basically add an option to use the G59.3 directly as the TLR - Tool length reference. That way it's persistent between resets, and tools are measured compared to a static machine space point.

I don't know if this is a grblhal core thing or if it could just be set within iosender as T98 or something (since T99 is often used for 3d probe)

LoganFraser avatar Dec 12 '22 06:12 LoganFraser

It is a core thing, the sender handles all tool change modes (except ATC toolchanges which are 100% transparent to the sender) the same way.

Associating a tool with the probe is new info for me, any links or further information on how this is supposed to work?

terjeio avatar Dec 12 '22 09:12 terjeio

Basically, the PrintNC group runs M6T99 in to "pick" the probe, and touch off and set the tool offset reference. But if a reset occurs, the initial TLO is lost and set to the next tool in the series instead which means G54 Z changes. So the hope is to have a set TLR that survives a reset.

LoganFraser avatar Dec 12 '22 14:12 LoganFraser

So the hope is to have a set TLR that survives a reset.

Ok, can you try with moving these lines to down below line 359 (after alarm)? I am not able to test this myself as I am away.

terjeio avatar Dec 12 '22 22:12 terjeio

I'll see if I can get a teensy environment setup for compiling tonight and give it a test. Thanks.

LoganFraser avatar Dec 13 '22 14:12 LoganFraser

Would it be possible to set a manual TLR? When we could set it at a known location that would basically provide a workaround route for just setting $TLR after homing. We've tried issuing a $TLR (since the documentation implies this is possible) over the MDI and it responds with OK but doesnt give the tool referenced flag.

Dietz0r avatar Dec 15 '22 21:12 Dietz0r

Would it be possible to set a manual TLR?

Yes, by adding parsing of an argument to TLR. TLR=<offset>...

We've tried issuing a $TLR (since the documentation implies this is possible) over the MDI and it responds with OK but doesnt give the tool referenced flag.

The reference offset is set from the last successful probe, if not available the reference offset is cleared.

terjeio avatar Jan 06 '23 12:01 terjeio