Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: DataDyne on October 21, 2020, 04:03:07 PM
-
Hi,
I have 2 programs that are nearly identical to each other (mirror images). The designs were made in Cut2D and then the coding was transferred over to Mach 3.
Program 1 does what it's supposed to at the end. Air turns off, tooling stops and goes back to the home position.
Program 2 for some reason does not stop at all. Instead it goes back to the start point (not even the home position) and starts over. It's like it's stuck on repeat.
Any idea why this would be happening? Is it a bug in the code? A setting in Mach 3 that would make the program start over automatically? I'm sure you can tell by now that I'm new to this software so any help would be appreciated.
Thanks!
-
Has the second program got a M99 or M47 at the end?
-
No. it has an M09 to turn off the air. Then some coordinates to go back to the start and home position. Then an M30.
-
Could you attach your problem Gcode file.
-
Could you attach your problem Gcode file.
Attached is the last bit of coding.
Line N247741 is when the air turns off but then after that it repeats the cycle.
-
That's perhaps not that helpful.
If you attach the complete problem file then it can be run here to see if there is an issue with the Gcode itself. At least that would rule out one possibility.
-
That's perhaps not that helpful.
If you attach the complete problem file then it can be run here to see if there is an issue with the Gcode itself. At least that would rule out one possibility.
Here you go
-
It simulates normally.
Two passes over same geometry at 0.0625 and 0.125 depth.
Could not find any errors in your code.
-
It simulates normally.
Two passes over same geometry at 0.0625 and 0.125 depth.
Could not find any errors in your code.
Bingo! I think this is the problem. I only need one pass at 0.125 depth. Thanks.
I'll update the coding and hopefully it solves my problem