Repeating OKUMA CNC Lathe program number of times
January 6, 2011, 6:00 pmArticle Summary
Eldar Gerfanov (Admin)
January 6, 2011, 6:00 pm
Eldar Gerfanov (Admin)
February 27, 2011, 12:07 am
16983
Public
Author Summary
If you want OKUMA Lathe to repeat program several times you can use a subprogram or a conditional GOTO statement.
On Many Okumas subprograms is an option you have to buy, so we have to use GOTO statement.
CN=7 (NUMBER OF CYCLES TO REPEAT)
CC=0 (CURRENT CYCLE)
N0
......
(part program)
......
CC=CC+1
IF [ CC LT CN ] N0
M2
Thats it
This little code helps alot when using bar feeder and stuff like that.