Hi dezsoe,
Attached is the debug log.
So I did the following steps
- zero z to the workpiece
- perform mobile probe (endmill returns to surface of the workpiece)
- lengthen the endmill
- perform mobile probe (endmill returns below the surface of the workpiece)
- z0 (endmill moves up to the surface of the workpiece)
I had a go at reading the debug and if I'm reading this correctly the probing routine is not changing the offset until after the moves back to the starting point.
So its moving to the offsets as they were at the start of the probing, then updating the offsets to the new value.
This does correspond to what I see. If I watch closely the DRO values during the process I can see when the endmill returns from probing it returns to z=0, THEN once the endmill stops z jumps to the offset distance (e.g. z=-8)
If I'm reading this right its just an order of operations issue, the offset needs to update just after probing completes (after fine probe) and before the move to return the endmill to starting position occurs.
So if the [zeroaxis] function ran after the [toolprobethreadframe] function and before the [safemoveto] function I think this would be solved? i.e do G10 before the safemoveto to get back to start position
I'm new to CNC but understand programming, so may be wrong, but its what it looks like from what I can see. If its not please let me know what it is as I'm keen to learn and understand the issue.