Sounds like it's your Cam (G-code) but unfortunately, I don't use F360 so can't help.
However, if you want to check your moving correct amounts regard steps per then Zero the work Coordinate then goto MDI type G0 Z10 (or any amount you prefer) then measure to see if it moved this amount. Then G0 Z0 and it should go back exactly to point you touch off at.

If this works then it's your Code.