Repeating OKUMA CNC Lathe program number of times
January 6, 2011, 1:00 pmArticle Summary
Eldar Gerfanov (Admin)
January 6, 2011, 1:00 pm
February 26, 2011, 7:07 pm
16027
Public
Author Summary
Fri April 26, 2024, 7:52 pm
Fri April 26, 2024, 7:52 pm
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.