Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: shobley on March 06, 2013, 11:09:13 AM

Title: Delay in G-code - can't seem to eliminate it
Post by: shobley on March 06, 2013, 11:09:13 AM
Hi,

I'm not in front of the machine right now, but I've been having a problem recently with a 6-8 second delay before the machine starts to cut.

In the following G-code:

(Toolpaths used in this file:)
(center2_pocket)
(center2_cut)
(Tools used in this file: )
(1 = End Mill {0.125 inch})
N110G00G20G17G90G40G49G80
N120G70G91.1
N130T1M06
N140 (End Mill {0.125 inch})
N150G00G43Z0.8000H1

N160S12000M03  << This line waits

I'm assuming it is a "spin-up" delay for the spindle, but I've set everything back in Mach3 to 0.

I don't see anything in the preceding G-code that would override the values in the settings - does anyone have any ideas why it is still waiting?   

Thanks,
Steve
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: BR549 on March 06, 2013, 12:00:38 PM
Close down Mach3 and try it again. Go back and double check for the Spinup delay. What is the next line AFTER the M3 call?

Just a thought, (;-) TP
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: shobley on March 06, 2013, 12:22:02 PM
It's been doing it for several days now, so I don't think restarting is the issue.

Good idea on the G-code though - there's the rest of it...

N160S12000M03

N170(Toolpath:- center2_pocket)
N180()
N190G94
N200X0.0000Y0.0000F50.0
...
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: shobley on March 06, 2013, 01:17:07 PM
I guess the easiest thing to do would be to delete the M03 command from the G-code processor definition - I start the spindle manually so I don't really need it.
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: BR549 on March 06, 2013, 01:47:30 PM
Have you rechecked the value for the M3 delays in config??

(;-)TP
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: shobley on March 06, 2013, 01:48:57 PM
I will do that again, I was pretty sure that they were all set to 0.

When I get back tonight I will take a look.
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: BR549 on March 06, 2013, 02:18:16 PM
Also you may want to take a peak at what CODE is actually in your M3.

Has it ALWAYS done this??

(;-) TP
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: shobley on March 06, 2013, 03:17:48 PM
Not sure what you mean - how would I check that?

I thought the G-Code was pretty much the lowest level.

Steve

P.S. I recently went from a router to a spindle, and I played with the settings. At the same time I moved to a different G-Code generation processor - so before both of those changes everything was fine.
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: Chaoticone on March 06, 2013, 03:32:24 PM
Open the vb editor in Mach, (operator, VB script editor), file, open and browse to your mach 3 folder, macros, your profile, m3.m1s

Brett
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: shobley on March 07, 2013, 09:28:54 AM
The M3 code was "SpinCW()" - or something very similar. No timing commands.

I checked the values for delay in Mach3 and they all seem to be 0 - is there a place I may have missed?
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: Chaoticone on March 07, 2013, 09:44:37 AM
Post up your XML and g code and I will take a look in a little bit.  It may be a few hours as I'm going to a fab shop to have some pieces bent.


Brett
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: shobley on March 07, 2013, 09:56:52 AM
The GCode I posted at the start, the XML I'm unsure of, is this the configuration file for Mach3?
Title: Re: Delay in G-code - can't seem to eliminate it
Post by: Chaoticone on March 07, 2013, 10:05:42 AM
Yes, it will be in the C:/Mach3 folder and will have the .xml file extension.  There may be several so be sure to choose the one you use on your machine and when you upload it make sure it has a unique name.

Brett