Quote Originally Posted by m.marino View Post
skim over at Z0 to the first cutting location which is not good practice
I'd call it dangerous not 'not good practice'.

It sounds like at some point the Z-axis direction definition got inverted - i.e. positive downwards not upwards.

Can you post a sample of the code then we should be able to tell what's wrong immediately.