Hello - thanks for all the replies.
I assume that the Z-axis DRO on the screen display is the actual tool tip position
If that is so, all intermediate positions of the display appear to be OK
impossible to measure or check as the tool keeps moving even with single step mode in operation
The first tool change always seems to occur at whatever level Z is set to at the start of the run
I can get around this by issuing a dummy tool change at the start of the program with the TLO set at around 2
Is it possible to set the AXIS GUI in some sort of pause mode during a run that will enable manual control (either by jogging or issuing MDI commands) and possibly using the touch-off command
I can only get it to do it by effectively killing the run - that leaves me with the problem of restarting it at the correct line - not good.
There is a definite bug in the M6 routines when different tool lengths are involved -
clicking on the tool change continue button instantly moves the display to the new tool position, but omits to move the actual mill Z-axis - the clue is in the "instantly".
It would be good to fix this, but where is the source code? I have found a load of code in
github.com/LinuxCNC/linuxcnc/tree/master/docs/src/code
but which is the relevant bit?
If I fix my own version, do I need to compile it? If so, how? Or do I just remap the M6?
The manual says about remapping the M6 code - "Note than when remapping an existing code, we completely disable this codes’ built in functionality of the interpreter".
Obviously if I am going to remap the M6 it would be good to see what the original version is doing so I can replicate it - another good reason to find the source code
Once that is fixed, I think there is a need for a new M6 that copes with different tool lengths.
If the headstock is moved to the new tool length (which is the case if the above bug were fixed) there is a risk of crashing the previous tool into the material (or other parts of the mill) if the new tool is shorter.
Tool change should be a 2 step operation where different tool lengths are involved -
first - move to the TLO position for current tool - remove tool
second - move to the TLO position for the new tool - fit new tool, save tool data for next tool change first stage
Parameters for the above operations appear to be -
#5400 - tool number
#5403 - Z tool offset
#5422 (also called #<_z>) - current Z position
My drills vary in length from 1.5" to 4.25", the drill chuck adapter adds a further 1.8" to that
I am doing a lot of drilling operations in the mill, hence the problem with the tool lengths
Jog & MDI appear to be inactive during M6 - this is explicitly stated for M0 & M1, but not mentioned for M6
So how do you jog (or do an MDI) in the middle of a program execution?