Is no one really using manual tool change with probe?
I looked at both setups and they all share the same problem and I could use some creative ideas to get around it and the tool change would then perhaps work fine in all scenarios.
Now it will break a programmed cycle if using multiple fixtures with anything else than G54. I can get around it by shifting G54 before moving to the next part. But if I run with G55 instead it will return to G54 after the tool change. I know I will want to have one tool do its work on all parts and then be changed for other tool before next operation. Like this it should work with no problem.
1)The basic problem is that G38.x does not give result in G53 system. As I said before, now I'm using G59.3 (which is set to 0) before probing. One way not to do it will be G53 G0 to probe position, then perform ultra-short probing G91 G38.3 Z.00001 (this is an example from other topic. Does G38 even care about G91?), store the result, then do real probing and calculate delta from the two results.
2) Another way is to get current coordinate system number and return to it after the tool change, or zero it in the process and then revert the values. I found a way to get the coordinate system number 0-9 from variable but there is no gcode to use that number again to select it. It would have to be an ugly if-elseif-elseif or case() thing.
3) Maybe even better would be to use the variable number of cs*20 + 5223 to get current Z offset and use that to get real value after probing? Less ugly? Does not require changing the coordinate system, is there anything else to consider?
Important thing is also to make it fail proof. The toolchange operation now has a timeout, and it would be very nice to return everything to a previous state if the change fails. Changing any offsets seems dangerous... There is another thread that got linked here:
forum.linuxcnc.org/38-general-linuxcnc-q...-tool-change-problem
It is mentioned there that Fusion360 post processor assumes Z=0 for the tool change or Z max. I will look into that as a friend will be using it.
Other than "that" the toolchange is fine. It was mentioned that routine should get back to a position where it was called from - what do You people think/believe? Of this two examples none does this. What is left is an assumed "safe" height so if next move is to XY it can be safe but does not have to - It will be, if first op after TC is a move to safe Z and then to XY in part area. This does not consider having anything on the machine table that may stick up a little bit more than Zsafe. Any safety advices?
Thanks. I hope someone can read this and have a response.