Newbie G-Code Machine Pause


Results 1 to 10 of 10

Thread: G-Code Machine Pause

  1. #1
    Member Project_Hopeless's Avatar
    Join Date
    Feb 2019
    Location
    Sterling Heights Michigan
    Posts
    114
    Downloads
    0
    Uploads
    0

    Question G-Code Machine Pause

    I generated the G-code in Fusion 360. I ran the file and Z axis retracts to zero and the program pauses were indicated without any prompt. If I skip the indicated line the program runs as expected.

    It almost seems like waiting for manual tool change. What am I missing?

    Code:
    %
    (SPOILBOARD)
    (1ST ATTEMP AT SPOIL BOARD)
    (T1  D=6.35 CR=0. - ZMIN=-19. - FLAT END MILL)
    N10 G90 G94 G17 G91.1
    N15 G21
    N20 G53 G0 Z0.  <<<<<<<<<<<executes this line then stops>>>>>
    (BORE1)
    N25 T1 M6
    N30 S5000 M3
    N35 G54
    N40 G0 X44.18 Y49.702


    Similar Threads:


  2. #2
    Member CitizenOfDreams's Avatar
    Join Date
    Nov 2012
    Location
    USA
    Posts
    1267
    Downloads
    4
    Uploads
    0

    Default Re: G-Code Machine Pause

    Maybe it is waiting for a manual tool change at "T1 M6"? How are tool changes set up on your CNC controller (and what kind of controller is it)?



  3. #3
    Member Project_Hopeless's Avatar
    Join Date
    Feb 2019
    Location
    Sterling Heights Michigan
    Posts
    114
    Downloads
    0
    Uploads
    0

    Default Re: G-Code Machine Pause

    Quote Originally Posted by CitizenOfDreams View Post
    Maybe it is waiting for a manual tool change at "T1 M6"? How are tool changes set up on your CNC controller (and what kind of controller is it)?
    You might be right, pausing on T1 M6.

    I'm running LinuxCNC "Axis" GUI driving a Mesa 7i96e card. I'm not sure if I set a tool change mode. I'm not getting any message dialog to indicate a tool change event.



  4. #4
    Member CitizenOfDreams's Avatar
    Join Date
    Nov 2012
    Location
    USA
    Posts
    1267
    Downloads
    4
    Uploads
    0

    Default Re: G-Code Machine Pause

    Probably best to ask about this in the LinuxCNC forum. You likely need to change some script or a config file to tell LinuxCNC how it should handle tool changes.



  5. #5
    Member The Engine Guy's Avatar
    Join Date
    Jun 2008
    Location
    UK
    Posts
    1838
    Downloads
    0
    Uploads
    0

    Default Re: G-Code Machine Pause

    I would look in your configuration area, if it is anything like Mach3/4 then there is a "Stop Spindle. Wait for Cycle Start" option for how the Tool Change is handled, looking at your code the next line is the tool change line so as has already been suggested check out your tool change settings



  6. #6
    Member Project_Hopeless's Avatar
    Join Date
    Feb 2019
    Location
    Sterling Heights Michigan
    Posts
    114
    Downloads
    0
    Uploads
    0

    Default Re: G-Code Machine Pause

    I must have enabled manual tool change in the initial setup under 360. I have three tool paths, 2 with one tool and the third another. Oddly only the first tool path had a M6 command.

    I think short term I'll just create each tool path as a separate file.



  7. #7
    Member CitizenOfDreams's Avatar
    Join Date
    Nov 2012
    Location
    USA
    Posts
    1267
    Downloads
    4
    Uploads
    0

    Default Re: G-Code Machine Pause

    Quote Originally Posted by Project_Hopeless View Post
    I must have enabled manual tool change in the initial setup under 360.
    Your 360 is fine, leave it alone. It does not know or care how your machine changes tools, it just tells it which tool to use. The "T1 M6" line would be the same for manual or automatic tool change. It is the LinuxCNC that you need to configure.



  8. #8
    Member Project_Hopeless's Avatar
    Join Date
    Feb 2019
    Location
    Sterling Heights Michigan
    Posts
    114
    Downloads
    0
    Uploads
    0

    Default Re: G-Code Machine Pause

    Quote Originally Posted by CitizenOfDreams View Post
    Probably best to ask about this in the LinuxCNC forum. You likely need to change some script or a config file to tell LinuxCNC how it should handle tool changes.
    Yes got it taken care of over there with an event handler.

    That being said Fusion must be doing something different when I group tool paths into a single file vs. kicking them out each in an individual file. LinuxCNC should only read the file and follow the commands.



  9. #9

    Default Re: G-Code Machine Pause

    Did you solve this problem?



  10. #10
    Member Project_Hopeless's Avatar
    Join Date
    Feb 2019
    Location
    Sterling Heights Michigan
    Posts
    114
    Downloads
    0
    Uploads
    0

    Default Re: G-Code Machine Pause

    Quote Originally Posted by MrSolution View Post
    Did you solve this problem?
    Yes, adding the manual tool change handling code.

    https://forum.linuxcnc.org/49-basic-...uestion#174274

    I still get the pause on one of three spoil-board files. But now a dialog box pops up, hit Ok, rock n roll.



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

G-Code Machine Pause

G-Code Machine Pause