Niigata HN50C Horizontal mill.
I just recently wrote a program to have the spindle come down to the table to pick up large tools.Here is how it operates:
Program:
O10
Calls blank tool
Calls O9000 program)
Calls pallet change macro O9003
JUMP back to O9000 with M99
Tells you to remove blank tool (must go into manual mode)
Goes to tool pickup position
Tells you to unclamp tool
Calls previous pallet (change macro O9003
JUMP back to O9000 with M99
Jump back to program O10 with M99
Ends program O10 with M30
Now, everything works except that M30 at the end of program O10 is acting like an M99 and starts program O10 all over again.
Why would that be?