Hi Gertjan,
I attached your project solved. I removed your additional axis that represents the rotation. I also increased the joint limit for axis 3. You should flip the Z axis of the tool or add a 180 deg rotation on the tool pose to make the "Teach" button work automatically.
To have this by default you can change this setting:
Tools-Options-CAM-Invert machine tool axis
Albert
I attached your project solved. I removed your additional axis that represents the rotation. I also increased the joint limit for axis 3. You should flip the Z axis of the tool or add a 180 deg rotation on the tool pose to make the "Teach" button work automatically.
To have this by default you can change this setting:
Tools-Options-CAM-Invert machine tool axis
Albert