We are currently building a custom M6 macro to support automatic tool change on our machines, and things are going quite well! However, we have encountered a few hiccups that we need help for

- First one is that on a few occasion, without being able to pin point the "why", the macro has "bugged" and executed all steps without any movement, leading to the machine just releasing the tool holder where it is located, instead of in the tool rack. On each occasion, restarting UCCNC fixed the problem, but it is a little bit puzzling.. Any idea of what could cause that?
- Second, we wanted to add the tool measurement after each toolchange. So we wouldn't have to reinvent the wheel, we decided to use the "start" probe button to run the standard UCCNC probe sequence.
When we do a manual toochange (MDI or tool change button) it works perfectly, but when we try to run it inside a GCode, it just skips the probing sequence.
Is there something that we missed there?
Thank you very much and have a nice day!