I have manually added these lines to my program and they work great. I have a floating head with a micro switch. This is on a plasma table that I just added an auto THC to.
G31 Z-1
G91 Z.3
G90
But when I have tried to do a subroutine (M98) with this it gives me an error on the G31 Z-1 line
G31 Z-1
G91 Z.3
G90
M99
%
Any idea of what I did wrong?
Thanks, Greg