Fanuc 4 axis lathe control help needed (tabs suck)

Got a job up & running on our new/used Mori ZL-250. I have a main program, consisting of 8 subprogram calls, identical for each turret. I have wait codes (i.e. M101,M102, etc.) in the main and subprogram. The main programs are basically a loop to call the subprogram 8 times, which machinines & parts off a large bearing race from a forging. Do the wait codes need to be numbered differently for the main & subprogram?

ABBREVIATED CODE SAMPLE:

HEAD 1 HEAD 2 O0011(MAIN); O0011(MAIN); G10L2P1Z-.5; G10L2P1Z-.5; M98P0012; M98P0012; M101; M101; M00(1ST PART DONE); M00(1ST PART DONE); G10L2P1W-1.0; G10L2P1W-1.0; M98P0012; M98P0012; M102; M102; M00(2ND PART DONE); M00(2ND PART DONE); G10L2P1W-1.0; G10L2P1W-1.0; . . . . (REPEAT 6 MORE TIMES) M30; M30;

HEAD 1 HEAD 2 O0012(SUB); O0012(SUB); G97S150M03; G97S150M03; G00T1010(FACE& TURN); G00T0100(ROUGH ID); G00X13.1Z0.M08; M101; G01 X11.5F.01; G00X11.6Z.05M08; G00X13.Z.05; G01Z-1.F.012; M101; G00X11.Z.1 G01Z-1.F.012; GOOX13.5Z5.; G00X13.5Z3.; G00T0202(FINISH ID); G00T0202(FINISH OD); M102; M102; G97S300M03; G97S300M03; G00X11.65Z.05M08; G00X12.95Z.05M08; G01Z-1.F.01; G01Z-1.F.01; G01X11.5; G00X13.1; G00X13.Z.1; M103; G00X13.5Z3.; GOOT0303(PART-OFF); M103; G97S100M03; G97S100M03; G00X13.Z-.95M08 M104; G01X11.5F.005; M30; G00X13.5; G00Z3.; M104; M30;

Reply to
Steve Walker
Loading thread data ...

Got a job up & running on our new/used Mori ZL-250. I have a main program, consisting of 8 subprogram calls, identical for each turret. I have wait codes (i.e. M101,M102, etc.) in the main and subprogram. The main programs are basically a loop to call the subprogram 8 times, which machinines & parts off a large bearing race from a forging. Do the wait codes need to be numbered differently for the main & subprogram?

ABBREVIATED CODE SAMPLE:

HEAD 1 HEAD 2 O0011(MAIN); O0011(MAIN); G10L2P1Z-.5; G10L2P1Z-.5; M98P0012; M98P0012; M101; M101; M00(1ST PART DONE); M00(1ST PART DONE); G10L2P1W-1.0; G10L2P1W-1.0; M98P0012; M98P0012; M102; M102; M00(2ND PART DONE); M00(2ND PART DONE); G10L2P1W-1.0; G10L2P1W-1.0; . . . . (REPEAT 6 MORE TIMES) M30; M30;

HEAD 1 HEAD 2 O0012(SUB); O0012(SUB); G97S150M03; G97S150M03; G00T1010(FACE& TURN); G00T0100(ROUGH ID); G00X13.1Z0.M08; M101; G01 X11.5F.01; G00X11.6Z.05M08; G00X13.Z.05; G01Z-1.F.012; M101; G00X11.Z.1 G01Z-1.F.012; GOOX13.5Z5.; G00X13.5Z3.; G00T0202(FINISH ID); G00T0202(FINISH OD); M102; M102; G97S300M03; G97S300M03; G00X11.65Z.05M08; G00X12.95Z.05M08; G01Z-1.F.01; G01Z-1.F.01; G01X11.5; G00X13.1; G00X13.Z.1; M103; G00X13.5Z3.; GOOT0303(PART-OFF); M103; G97S100M03; G97S100M03; G00X13.Z-.95M08 M104; G01X11.5F.005; M30; G00X13.5; G00Z3.; M104; M30;

Reply to
Steve Walker

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.