Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:12:08 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  G code pause for specified amount
Pages: 1   Go Down
Print
Author Topic: G code pause for specified amount  (Read 916 times)
0 Members and 1 Guest are viewing this topic.
michaelthomas
Active Member

Offline Offline

Posts: 22


View Profile
« on: October 21, 2010, 09: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?
Logged
Tweakie.CNC
Active Member

Online Online

Posts: 3,262


Super Kitty.


View Profile WWW
« Reply #1 on: October 21, 2010, 09: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.
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
michaelthomas
Active Member

Offline Offline

Posts: 22


View Profile
« Reply #2 on: October 21, 2010, 10:17:02 AM »

Thank you!

Do you have to use whole numbers, or can a decimal be used?
Logged
Tweakie.CNC
Active Member

Online Online

Posts: 3,262


Super Kitty.


View Profile WWW
« Reply #3 on: October 21, 2010, 10:42:06 AM »

You can use decimals.

Tweakie.
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
michaelthomas
Active Member

Offline Offline

Posts: 22


View Profile
« Reply #4 on: October 21, 2010, 11:17:59 AM »

Great.....Thanks again.
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« Reply #5 on: October 21, 2010, 12:09:50 PM »

It can also be specified in mili seconds, the option is on General Config page.
Hood
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!