Hello Guest it is August 11, 2020, 04:11:08 PM

Author Topic: G code pause for specified amount  (Read 24770 times)

0 Members and 1 Guest are viewing this topic.

G code pause for specified amount
« 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?

Offline Tweakie.CNC

*
  • *
  •  8,414 8,414
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: G code pause for specified amount
« Reply #1 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.
KEEP SAFE !
Re: G code pause for specified amount
« Reply #2 on: October 21, 2010, 11:17:02 AM »
Thank you!

Do you have to use whole numbers, or can a decimal be used?

Offline Tweakie.CNC

*
  • *
  •  8,414 8,414
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: G code pause for specified amount
« Reply #3 on: October 21, 2010, 11:42:06 AM »
You can use decimals.

Tweakie.
KEEP SAFE !
Re: G code pause for specified amount
« Reply #4 on: October 21, 2010, 12:17:59 PM »
Great.....Thanks again.

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: G code pause for specified amount
« Reply #5 on: October 21, 2010, 01:09:50 PM »
It can also be specified in mili seconds, the option is on General Config page.
Hood

Offline Chris.Botha

*
  •  489 489
  • wine me.. dine me.. tram my mill for me...
    • View Profile
    • Digital-Jeweller
Re: G code pause for specified amount
« Reply #6 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 ;)

Offline Tweakie.CNC

*
  • *
  •  8,414 8,414
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: G code pause for specified amount
« Reply #7 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.
KEEP SAFE !