Set parameter 6005#0 = 1
Then use M98 Q100 to jump to N100 of the same program and come back to the block following M98 after reaching M99.
If P address is also included, then it would go to N100 of the subprogram called.
Hi,
My question is about Fanuc 18iM and Fanuc31i-A controllers: I'd like to jump inside the program itself using M98 like this (works with Mori Seiki's MSX-850IV -controller):
%
O1234
M98 H1
M98 H2
M30
N2 M0
M99
N1 M0
M99
%
The program above first jumps to line N1 and stops, then jumps to line N2 and stops, and then ends.
So how do you do this with the above mentioned controllers?
(I don't want to use GOTO to jump because in the program I'm working on I need to jump to these subroutines from various points of the program and I need to return back to the point where I came from. Using GOTO would require using a variable to remember where the jump was made from and I'd rather not do that.)
Similar Threads:
- Newbie- Does the Center Line of the Y Axis Line up with the Center Line of the Table T-Slot
- Problem- Zero jumping
- Need Help!- Y axis jumping
Set parameter 6005#0 = 1
Then use M98 Q100 to jump to N100 of the same program and come back to the block following M98 after reaching M99.
If P address is also included, then it would go to N100 of the subprogram called.
Sinha,
Do you have reference to this in any 18i-M or 31i-A manuals? I can't find it in the ones I have.
Dcoupar,
It is there in 0i. No idea about 18i/31i. Since most of the common types of parameters are same across the control versions, I though it would work with 18i/31i also.
Search for SQC in these manuals. Maybe some other number is being used.
0i is a basic model. If some facility is available in 0i, it must be available in higher models also.
Thank you Sinha - that worked great!