Why is my program stopping on this line?


Results 1 to 6 of 6

Thread: Why is my program stopping on this line?

  1. #1
    Member
    Join Date
    Mar 2007
    Location
    USA
    Posts
    67
    Downloads
    0
    Uploads
    0

    Default Why is my program stopping on this line?

    I'm bringing up my milling machine after replacing its ancient WinXP PC with a new Win10 one and a SmoothStepper. I thought I had everything dialed in, so I ran a program (admittedly a new one I'd never run before), and it stopped mysteriously about 85% of the way through (line 4990 out of 5660). I can't figure out why. I've attached a screenshot of Mach 3 showing the line it stopped on, a copy of the G code (generated by Cut2D from my drawing), and a photo of the part after the machine stopped (it was milling out that central pocket). Also, the spindle stopped gradually, like it was using Mach 3's deceleration parameter, not abruptly. Any ideas what's causing this?

    PS - I realize the cutout profile should have been cut last, but in my zeal to get the program running I didn't realize I saved it in the wrong order. The tabs held everything together just fine, though.

    Similar Threads:
    Attached Thumbnails Attached Thumbnails Why is my program stopping on this line?-mach3-screen-jpg   Why is my program stopping on this line?-part-123-jpg  
    Attached Files Attached Files


  2. #2
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Why is my program stopping on this line?

    It looks like that N5000 is just repeating over and over on the screen shot. Looks like Mach3 is confused. I just ran your code on Mach3 and it seems to work fine, except the unclosed comment in the first line.

    Jim Dawson
    Sandy, Oregon, USA


  3. #3
    Member
    Join Date
    Mar 2007
    Location
    USA
    Posts
    67
    Downloads
    0
    Uploads
    0

    Default Re: Why is my program stopping on this line?

    Huh. I was so focused on 4990 I didn't even look at 5000. That's crazy, especially since the code isn't written that way, as you can tell in the pdf. I'll load it up again tomorrow and see if I can duplicate it. I've used Mach 3 for years, though I'm hardly an expert, and I've never seen that happen. Thanks for pointing it out.



  4. #4
    Member
    Join Date
    Mar 2007
    Location
    USA
    Posts
    67
    Downloads
    0
    Uploads
    0

    Default Re: Why is my program stopping on this line?

    Btw, the first line sure looks like a closed comment to me. Can you explain why it's unclosed? Thanks.

    Here are the first few lines, for reference:

    ( 1Mill_250.tap )
    ( File created: Friday, May 29, 2020 - 01:11 PM)
    ( for Mach2/3 from Vectric )
    ( Material Size)
    ( X= 3.550, Y= 3.200, Z= 0.400)
    ()
    (Toolpaths used in this file




  5. #5
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Why is my program stopping on this line?

    Sometimes it just takes another set of eyes to look at the problem


    Quote Originally Posted by Involute View Post
    Btw, the first line sure looks like a closed comment to me. Can you explain why it's unclosed? Thanks.

    Here are the first few lines, for reference:

    ( 1Mill_250.tap )
    ( File created: Friday, May 29, 2020 - 01:11 PM)
    ( for Mach2/3 from Vectric )
    ( Material Size)
    ( X= 3.550, Y= 3.200, Z= 0.400)
    ()
    (Toolpaths used in this file

    I guess it was the second line. In the PDF, it was split into 2 lines like this:
    ( File created: Friday, May 29, 2020
    - 01:11 PM)

    Only took a second to find that one.

    Jim Dawson
    Sandy, Oregon, USA


  6. #6
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Why is my program stopping on this line?

    It looks like it's running in Demo mode, stopping at 500 lines of code. Is it actually licensed to you (Richard Lowe?), or is it a license that's been passed around?

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


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

Why is my program stopping on this line?

Why is my program stopping on this line?