counting program cycles with fanuc 18

D

Thread Starter

dave

would like to know if there is a line of code i can put at the end of a program for a 2 axis lathe with a fanuc 18 controller that will count cycles and stop the machine when the counter is full. a few years back i did it with a hardinge machine with fanuc control, but have forgotten how to do it.

thanks.
 
H
If you have custom macro you can use variable #500- to do the cound.

Set variable #500 to how many parts you want to stop oat.

At the end of the program:
#501=#501+1
IF [#501LT#500] GOTO999
#501=0
M0(YOU HAVE REACHED NUMBER OF PARTS)
N999 M30

You can also set 3901-#0F machined parts
3092 required parts.
 
Top