Thanks
I thought it would be a good thing to take one thing at a time so I made it simple so that UCCCNC i sending a combination of four signals that is the same as the toolchanger gives the arduino.
The little bit tricky thing was that I cant wait for the right signals on the toolchanger because then its too late to stop it and it will move on past the right position so I had to count the positions and then verify it with the sensors.
Attached is the macro if anyone is interrested.