Need Help! Jumping to a line using M98


Results 1 to 6 of 6

Thread: Jumping to a line using M98

  1. #1
    Member
    Join Date
    Mar 2011
    Location
    Finland
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Jumping to a line using M98

    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:


  2. #2
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Jumping to a line using M98

    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.



  3. #3
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2932
    Downloads
    0
    Uploads
    0

    Default Re: Jumping to a line using M98

    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.



  4. #4
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Jumping to a line using M98

    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.



  5. #5
    Member
    Join Date
    May 2016
    Location
    United Kingdom
    Posts
    526
    Downloads
    0
    Uploads
    0

    Default Re: Jumping to a line using M98

    Try
    %
    O1234
    N10M99 P1
    N20M99 P2
    M30
    N2 M0
    M99 P10
    N1 M0
    M99 P20
    %
    Dependant on the controller you may not need to put the M99 P10 and P20

    Quote Originally Posted by MRPM View Post
    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.)




  6. #6
    Member
    Join Date
    Mar 2011
    Location
    Finland
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Jumping to a line using M98

    Thank you Sinha - that worked great!



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Jumping to a line using M98

Jumping to a line using M98