What's new
What's new

Macro help please

rjwalker1973

Stainless
Joined
Feb 2, 2016
Location
Lakeland, Florida
Hey folks I am hoping to get a few things straight on the Okuma control. I am working with two l300 genos lathes with live tooling. I am used to fanuc macro B but so far I have been able to easily carry what I know over to the okumas. What I actually need to know is Can I call a subroutine from a if statement? I.E If[v1=1]CALL 0BORE. I am setting up a generic face/turn/drill/tap subprogram for some of our easier stuff. Thanks in advance
 
It's been a while since I ran an Okuma with macro programming; but I'm not familiar with the CALL command... That isn't C++, is it? If I was going to attempt that, I would just put M98 P#### after my IF statement; where #### is the 4-digit program number.
 
100% sure what you want, can be made.
First it has te to be IF [V1 EQ 1]
Second it has to be OBORE not 0BORE

But maybe you have to do it an other way.

IF[V1 NE 1] NSRN
CALL OBORE
NSRN
....continue the
.... rest of
.... the program

Hope this helps you
 








 
Back
Top