Hello Guest it is November 13, 2019, 03:00:50 AM

Author Topic: G code pause for specified amount  (Read 23337 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

*
  • *
  •  7,985 7,985
  • 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.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
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

*
  • *
  •  7,985 7,985
  • 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.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: G code pause for specified amount
« Reply #4 on: October 21, 2010, 12:17:59 PM »
Great.....Thanks again.

Offline Hood

*
  •  25,856 25,856
  • 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