Subscribe to Blog
Email Address
 

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.

Code
O1 
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.

 

Comments:
No Comments posted yet, be the first one!

New Comment to: Repeating OKUMA CNC Lathe program number of times

Name: *
Solve Capcha:
*
Sing In

© 2009-2022 Eldar Gerfanov. All Rights Reserved.
© 2009 Eldar Gerfanov. Materials on this site are presented as is and are mostly for educational use.

You may freely reproduce information presented herein without any consent from me, provided you include link to this site.
In case when i am not the copyright holder, you may want to contact proper owner of material. Anyway, they are freely available on the Internet.
If you hold the copyright right for any of the materials on this site and want them removed, please contact me here