Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: michaelthomas on October 21, 2010, 10:27:47 AM

Title: G code pause for specified amount
Post by: michaelthomas on October 21, 2010, 10:27:47 AM
I'm trying to debug and issue and would like to write program with a pause of a specified amount of time.

Is there a G code command to do this?

I'm familiar with M0, but I want something that will resume movement automatically at a specified time.

Any ideas?
Title: Re: G code pause for specified amount
Post by: Tweakie.CNC on October 21, 2010, 10:57:19 AM
For a delay or dwell in G-Code use code G4.

eg. to insert a delay of 5 sec use the line:

G4  P5

Tweakie.
Title: Re: G code pause for specified amount
Post by: michaelthomas on October 21, 2010, 11:17:02 AM
Thank you!

Do you have to use whole numbers, or can a decimal be used?
Title: Re: G code pause for specified amount
Post by: Tweakie.CNC on October 21, 2010, 11:42:06 AM
You can use decimals.

Tweakie.
Title: Re: G code pause for specified amount
Post by: michaelthomas on October 21, 2010, 12:17:59 PM
Great.....Thanks again.
Title: Re: G code pause for specified amount
Post by: Hood on October 21, 2010, 01:09:50 PM
It can also be specified in mili seconds, the option is on General Config page.
Hood
Title: Re: G code pause for specified amount
Post by: Chris.Botha on January 19, 2020, 06:19:00 PM
For a delay or dwell in G-Code use code G4.

eg. to insert a delay of 5 sec use the line:

G4  P5

Tweakie.

thanks! I have a mate with a cheap chinese machine, his spindle takes a few seconds to come to speed, had to edit his post processor to add this right after his M3. 3 seconds ;)
Title: Re: G code pause for specified amount
Post by: Tweakie.CNC on January 20, 2020, 01:18:31 AM
Hey Chris I know you have been away from the forum for a while but this thread is over 10 Years old  ;D ;D ;D

Tweakie.