Hello Guest it is February 27, 2021, 01:07:46 AM

Author Topic: Why is my program stopping at this line?  (Read 516 times)

0 Members and 1 Guest are viewing this topic.

Why is my program stopping at this line?
« on: May 29, 2020, 09:14:21 PM »
I'm bringing up my milling machine after replacing the WinXP PC with a Win10 one and 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?

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.

PPS - The uploader keeps telling me there's already an attachment with the same name as mine (even though they all have different names).  I've tried uploading just a single attachment but it gives me the same error, so I'm afraid I can't upload any attachments.  I've even tried uploading a single attachment as a reply to this post, to no avail.  Any tips on what's causing THIS problem?
« Last Edit: May 29, 2020, 09:16:24 PM by Involute »

Offline Tweakie.CNC

*
  • *
  •  8,659 8,659
  • Super Kitty
    • View Profile
Re: Why is my program stopping at this line?
« Reply #1 on: May 30, 2020, 01:03:12 AM »
Rename and give each of your attachments a unique name eg. Involute1a, Involute2a, etc.

This thread refers;  https://www.machsupport.com/forum/index.php?topic=24585.0

Tweakie.
KEEP SAFE !
Re: Why is my program stopping at this line?
« Reply #2 on: May 30, 2020, 01:39:30 AM »
Aah, thanks.  Here they are.

Since my initial post I've noticed that, in the Mach 3 screenshot, line N5000 is endlessly repeated, so I assume that's the problem.  Maybe not, but, regardless, what would cause that?  You can see in the code in the pdf that that's clearly not how it's written.  I'll load it up again tomorrow, scroll down, and see if I can duplicate it, but I've never seen Mach 3 do that before (change code in that way). 

Offline ZASto

*
  •  351 351
    • View Profile
Re: Why is my program stopping at this line?
« Reply #3 on: May 30, 2020, 03:59:06 AM »
What is your Mach3 version?

On Version R3.043.062 everything looks fine.
Attached is code from your .pdf
Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.

Offline Tweakie.CNC

*
  • *
  •  8,659 8,659
  • Super Kitty
    • View Profile
Re: Why is my program stopping at this line?
« Reply #4 on: May 30, 2020, 04:40:46 AM »
It looks very much like your license has not been accepted and Mach3 is stopping at line 500 (as it would in Demo Mode).

Perhaps re-install you Mach3 license.

Tweakie.
KEEP SAFE !

Offline ZASto

*
  •  351 351
    • View Profile
Re: Why is my program stopping at this line?
« Reply #5 on: May 30, 2020, 07:11:59 AM »
Tweakie, it is visible on the screenshot that the license is present: Richard Lowe
Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.

Offline ZASto

*
  •  351 351
    • View Profile
Re: Why is my program stopping at this line?
« Reply #6 on: May 30, 2020, 07:19:26 AM »
GCode window without and with license, no differences. W/O license Mach should stop at line N5000, have not tested :)

Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.

Offline Tweakie.CNC

*
  • *
  •  8,659 8,659
  • Super Kitty
    • View Profile
Re: Why is my program stopping at this line?
« Reply #7 on: May 30, 2020, 07:23:16 AM »
Tweakie, it is visible on the screenshot that the license is present: Richard Lowe

Hi ZASto,

Indeed it does, but that does not mean that the license has been accepted by Mach3.
(Running the Gcode file in Demo mode stops at the same line #4990).

Tweakie.
KEEP SAFE !

Offline ZASto

*
  •  351 351
    • View Profile
Re: Why is my program stopping at this line?
« Reply #8 on: May 30, 2020, 07:41:48 AM »
It stops, but it does not replicate line #5000 until the end of time :)
Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.
Re: Why is my program stopping at this line?
« Reply #9 on: May 30, 2020, 08:57:34 AM »
Aah.  I’ll recheck the license today.  I don’t know the program version off the top of my head, but I downloaded the demo version in the last week.