I am looking for a program restart M code. It is M99 on a fanuc. I cannot seem to find it in book. Thank you in advance.
I am looking for a program restart M code. It is M99 on a fanuc. I cannot seem to find it in book. Thank you in advance.
M99 on Fanuc is 'End of sub program, return to main program'
To restart Okuma press soft button RESTART, type N number where you want to start and then press SEQUENCE RESTART hard button.
Brian,
I'm assuming you are wanting to run continuous?
N10 (RGH TURN)
G50S1500
G0G95G97X30.Z30.S375T0101M42M3M8
program
program
program
yada
yada
yada
/ GOTO N10
M30
%
correct, Okuma uses more of a basic approach.
Same program with a part count. V1 on the variable display page will show part count.
N1 V1=0 (RE SET PART COUNT TO 0)
N10 (RGH TURN)
G50S1500
G0G95G97X30.Z30.S375T0101M42M3M8
program
program
program
yada
yada
yada
V1=V1+1
IF [V1 LE xxx] N10
M30
%
( LT=less than, LE less than or equal to, GT greater than, GE greater than or equal to, EQ equal to. There are more, these are the most used ones.)
Thank you very much. I was wondering if it had variables as well. I will dig deeper. This gets me through a crunch. Any ideas where to learn a bit of this? I am pretty good with the Fanucs, but lousy here. I live far outside of any metropolitan areas.
Brian
Okumas had variable since before they had CRT's
You can assign pretty much anything as a local variable. Then you have the V variables, and system variables for tool offsets, chuck functions, on and on.
Local variable program...
G50 S3500
M42
S100M3
RPM=100
NSTART
S=RPM
RPM=RPM+1
IF[RPM LT 3500]NSTRT
M30
I dont have a way to test this, but I think it's correct. Makes "RPM" a local variable. This just runs the spindle up to 3500 for a warm up.
there is also schedule program in OSP. You can learn from any Okuma programming manual, differences are minor