M98 P/Q? - Page 2


Page 2 of 2 FirstFirst 12
Results 13 to 19 of 19

Thread: M98 P/Q?

  1. #13
    Registered
    Join Date
    Aug 2007
    Location
    uk
    Posts
    58
    Downloads
    0
    Uploads
    0

    Default

    Hi Old Newbie,

    Why use GOTO[0+#17] and not just GOTO 0?

    I'm trying to understand the best wat to layout my progs.
    The application I have is machining small parts......
    a 4 sided trunnion, 6 parts on each side and 6 tools.

    Cheers
    Derek.



  2. #14
    Registered
    Join Date
    Apr 2011
    Location
    bunga country
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default

    In my example, G65 P1000 Q123 calls the current program again. At that moment, GOTO[0+#17] equals to GOTO123. That's how it emulates M98 Q123.



  3. #15
    Registered
    Join Date
    Jul 2007
    Location
    USA
    Posts
    34
    Downloads
    0
    Uploads
    0

    Default

    I love your use of G65 as a branch jump. I can see how you would be able to, say, change some variables and then jump back to repeat N123 or go anywhere else as a sub, all within the same program. Brilliant work.
    yours,
    newc

    Last edited by newc; 05-24-2011 at 01:04 PM.


  4. #16
    Registered
    Join Date
    Jan 2010
    Location
    Norway
    Posts
    113
    Downloads
    0
    Uploads
    0

    Default Re: M98 P/Q?

    Old topic but think i have the solution
    Take a look at parameter 6005 Bit 0, set it to 1 and M98 Qxxxx should work, if you have the parameter,



  5. #17
    Registered jamessiffel's Avatar
    Join Date
    Jun 2011
    Location
    u.s.a.
    Posts
    124
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ProToZyKo View Post
    Old topic but think i have the solution
    Take a look at parameter 6005 Bit 0, set it to 1 and M98 Qxxxx should work, if you have the parameter,
    Dude, its FOUR years later and they already said that.



  6. #18
    Registered
    Join Date
    Jan 2010
    Location
    Norway
    Posts
    113
    Downloads
    0
    Uploads
    0

    Default Re: M98 P/Q?

    Oh my bad i must have mixed it up with another post wich had no solution.



  7. #19
    Registered OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    890
    Downloads
    0
    Uploads
    0

    Default Re: M98 P/Q?

    M98 P1000 will call a sub program in file O1000.

    With 6005.0 set to 1, M98 Q1000 will Jump to line N1000 for the sub. This works well since line N1000 can be placed after the M2 and only one file is needed but can include multiple sub programs, so only one file to upload and download.

    M198 will call a sub program on the external flash card. Handy when memory is at a minumum.

    I know this is an old post, but wanted to add a tidbit to clarify how 6005.0 works.

    Best regards,

    PS: This works on the 0i control. Not sure about the 18...don't have one to try.

    Experience is what you get just after you needed it.


Page 2 of 2 FirstFirst 12

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

M98 P/Q?
M98 P/Q?