Originally Posted by
drjimmy
I found a few post here where someone has asked how to replace M98/M99 from Fanuc on an Okuma. Many post have stated the CALL command replaces this. I'm not sure that's true as I can't get it to work. When I try to use it the same way I used M98/M99 on the Fanuc I get an error saying no subprogram exists. Here is the senario: On the fanuc I had a sub program called O1234 that milled a pocket. I could run this program from 6 different programs using M98 O1234 and putting an M99 at the end of O1234. The control would leave the main program O1000, run O1234, then jump back O100. I could call up O1234 from any number of other programs, O1000, O2000, O3000. The Okuma will not do this. If I use the CALL command, the sub program must be inside the body of the main program with an O1234 and RTS at the end. It will not leave the main program, run the sub, then return. This is very difficult if I have 8 different programs I need to have run that same sub program. I tried creating a program called O1234.sub, O1234.min, but it always gives me the error unless that program is captured in the main program. Does anyone know how to create a small sub program that can be run from any number of other programs? This is what M98/M99 does on the Fanuc. Thanks in advance for any help!
james