Hello Guest it is October 18, 2019, 10:55:11 PM

Author Topic: Problem; rapid at end of op  (Read 2878 times)

0 Members and 1 Guest are viewing this topic.

Problem; rapid at end of op
« on: November 22, 2008, 10:24:50 PM »
I've ran into a problem and I'm not sure if mach3 is to blame, mastercam, or most likely, me.

The machine is an X3 that I recently converted to CNC.

The problem is that at the end of the operation, the machine decides to go somewhere instead of straight up and stop. The first time, I was pocketing and at the very end the machine rapided to another xy coordinate and snapped the bit. The second time, the machined rapided up, then  over and then back down partially into the part, ejecting the part.

So I guess my question is what dictates where the machine goes at the very end of the operation? I don't know what safeZ is. Could that possibly help?

Thanks,
Adam
Re: Problem; rapid at end of op
« Reply #1 on: November 22, 2008, 10:36:24 PM »
Adam,

   You need to examine the G-code, and see what is causing those moves.  It is almost certainly in the G-code, not a Mach problem.

Regards,
Ray L.
Regards,
Ray L.
Re: Problem; rapid at end of op
« Reply #2 on: November 22, 2008, 10:58:03 PM »
Here is the end of the gcode:

Code: [Select]
N256Z-.69
N258G1Z-.8F.8
N260X1.6747Y-.5929F4.
N262X1.3253
N264X.0371Y-.7844
N266G0Z.25
N268M5
N270G91G28Z0.
N272G28X0.Y0.A0.
N274M30
%

I'm confident that the code was fine until N266. I don't know what a M5, G91, G28 or M30 is but there is no place where it rapids down a good half inch. Could it possibly be trying to go to a home location or something?

I don't have my machine quite setup properly as it stands. The part I'm machining is the stop for the y axis limit switch so I don't have my homing location setup. Could this be a part of the problem?

Offline Sam

*
  • *
  •  988 988
    • View Profile
    • hillbillyhilton.com
Re: Problem; rapid at end of op
« Reply #3 on: November 22, 2008, 11:31:05 PM »
G28 returns the machine to home position. There is a definition of G and M codes on the start-up page in Mach, next to the reset button. The manual has a superb wealth of knowledge for such things too. Definitely worth the time to read through it.

« Last Edit: November 22, 2008, 11:42:42 PM by Sam »
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."
Re: Problem; rapid at end of op
« Reply #4 on: November 22, 2008, 11:52:30 PM »
Alright, thank you very much. So the machine is going home, which I have set incorrectly, inside the part,as in the latter case.