What's new
What's new

M98 repeat on a Fanuc OTb controlled Conquest 42.

Houndogforever

Hot Rolled
Joined
Oct 20, 2015
Location
Boring
I have an old 1988 Hardinge Conquest lathe with a Fanuc OTb control.

I'm trying to run bar stock and it works fine until it gets to the end of the bar.
Then it keeps on going.

I have M99 as the last line in my program to make it return to line 1 and start again.
I want to add a counter to this and have it stop after 25 parts which is getting close to the bar end.

There is no L on this machine, which is what I thought the counter address was.

How do I set this up to run 25 repeats and stop?
 

dandrummerman21

Stainless
Joined
Feb 5, 2008
Location
MI, USA
I don't have a 0tb manual, but an 0tc/0td book says M98PLLLLxxxx

Where LLLL is the number of repeats and xxxx is your sub program.

so M98P00251111 would call program 1111 25 times.
 

CITIZEN F16

Titanium
Joined
May 2, 2021
Even though they are common to many machines M codes are assigned by the MTB, on my Takisawa M12 is the code to count. To set you hit Diag/Param button once then page down arrow. Set the number with MDI. Mine I believe is a Fanuc OT revision C.
 

CITIZEN F16

Titanium
Joined
May 2, 2021
Even though they are common to many machines M codes are assigned by the MTB, on my Takisawa M12 is the code to count. To set you hit Diag/Param button once then page down arrow. Set the number with MDI. Mine I believe is a Fanuc OT revision C.

No need for a subprogram, I think that way is better in case you stop it before it runs the whole 25.
 

DouglasJRizzo

Titanium
Joined
Jun 7, 2011
Location
Ramsey, NJ.
There are a few ways.
If you want a simple count, #500+#500+1 would do it.
If you wanted to count and stop - there's a macro for that.
If you want an "L" - and none is on the "limited" keyboard, use a text editor.
 








 
Top