Hello Guest it is April 14, 2021, 11:13:34 PM

Author Topic: Mach 3 Programming Question  (Read 302 times)

0 Members and 1 Guest are viewing this topic.

Mach 3 Programming Question
« 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!

Offline Graham Waterworth

*
  • *
  •  2,305 2,305
  • Yorkshire Dales, England
    • View Profile
Re: Mach 3 Programming Question
« Reply #1 on: October 21, 2020, 04:36:43 PM »
Has the second program got a M99 or M47 at the end?
Without engineers the world stops
Re: Mach 3 Programming Question
« Reply #2 on: October 22, 2020, 08:16:50 AM »
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.

Offline Tweakie.CNC

*
  • *
  •  8,692 8,692
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Mach 3 Programming Question
« Reply #3 on: October 23, 2020, 01:01:05 AM »
Could you attach your problem Gcode file.
KEEP SAFE !
Re: Mach 3 Programming Question
« Reply #4 on: October 23, 2020, 08:26:58 AM »
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.

Offline Tweakie.CNC

*
  • *
  •  8,692 8,692
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Mach 3 Programming Question
« Reply #5 on: October 23, 2020, 08:43:54 AM »
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.
KEEP SAFE !
Re: Mach 3 Programming Question
« Reply #6 on: October 23, 2020, 11:11:01 AM »
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

Offline ZASto

*
  •  371 371
    • View Profile
Re: Mach 3 Programming Question
« Reply #7 on: October 23, 2020, 12:46:13 PM »
It simulates normally.
Two passes over same geometry at 0.0625 and 0.125 depth.
Could not find any errors in your code.
Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.
Re: Mach 3 Programming Question
« Reply #8 on: October 23, 2020, 01:36:00 PM »
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