Nope, failed again
![Sad :(](https://www.machsupport.com/forum/Smileys/default/sad.gif)
I manually ran through my whole tool rack, 20+ tools using MDI TxxM6 G0Z0 and every time it worked perfectly 100% tool on the TOM.
Loaded up the code, soft limit on Z Min warning, bypass, crash(e-stopped to avoid) The Z axis just dives.
Here is the screen after i stopped - the Z axis is at +85 and the code is calling for Z2 ??
![](http://davekearley.co.uk/wp-content/uploads/2018/01/IMG_2087.jpg)
The Offsets screen...
![](http://davekearley.co.uk/wp-content/uploads/2018/01/IMG_2088.jpg)
The Z of 186mm is about right - i had the z at about +30 when zeroing with the Haimer which is about 150mm long.
So, i'm stuck again - it works well in manual but can't run code
![Sad :(](https://www.machsupport.com/forum/Smileys/default/sad.gif)
Have attached the exact code file below.