Results 1 to 5 of 5

Thread: Is it possible to loop a g-code program?

  1. #1
    Registered
    Join Date
    Oct 2008
    Location
    United States
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Is it possible to loop a g-code program?

    I need help.
    I have a Robodrill with a fanuc 16i controller and pallet changer.
    Is there a command to loop the program back to the top and keep running the program without stopping?
    I'm trying to get it so all I need to do is load the extra pallet and hit the pallet ready button and walk away.
    I don't want to wait for the program to finish and have to hit the start button as well.

    Is this possible?

    Any advice would be greatly appreciated.

    Thanks
    sul1

    Similar Threads:


  2. #2
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    561
    Downloads
    0
    Uploads
    0

    Default

    On my bar-fed lathe, if I program an M30 at the end of program, I have to press cycle start every time, so instead, I program an M99 before the M30. If I get really daring, I'll point it to the line I want to restart at, like M99P1 to restart at N1. M99 is not always an end of sub/return to main code. Sometimes it's a branch (GOTO) code. Come to think of it, I could even use a GOTO command, but I'm used to M99



  3. #3
    Registered cnc-king's Avatar
    Join Date
    Jul 2003
    Location
    united states
    Posts
    263
    Downloads
    0
    Uploads
    0

    Default

    try this at the end of your prog
    /M30
    M99

    with block skip on machine will run continously
    with block skip off machine will stop at the M30
    also you can try setting the prog calls in the pallet setting page and all you have to push the pallet ready button . we run all 12 of our Robs that way

    If you can ENVISION it I can make it


  4. #4
    Registered
    Join Date
    Oct 2008
    Location
    United States
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default

    I tried the M99 by itself on the line before M30, but with no luck.
    I'll try directing it to the first line.
    Thanks for the tip.
    When you use a GOTO command do you also use P1 to direct it to N1?



  5. #5
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    561
    Downloads
    0
    Uploads
    0

    Default

    IIRC, GOTO 1 is the syntax.



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 from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed