Results 1 to 7 of 7
Thread: Dwell for G-Code l??
08-06-2012, 08:16 AM #1
Dwell for G-Code l??
I'm turning grooves in a 3/16 dia workpiece that is kinda long. I would like to have a short dwell at
the bottom of the groove. I thought I could add #250 to the code thinking the tool would remain at the bottom of the groove for a few milliseconds before retracting but it does not work.
When Mach 3 sees the first line with the #250 it stops and says there needs to be an equal sign.
Where does the equal sign need to be? I tried to add the equal sign like this #=250 or =#250 but Mach3
still does not accept the code.
This should be an easy fix but I'm lost.
08-06-2012, 03:49 PM #2
Not sure about Mach 3, but the usual g-code for dwell is G4.
G4 P500 (or G4 X500) will give you a .5 second dwell. No decimal is allowed in the P value (or X value), and the unit is milliseconds.
Other controls (Milltronics, for example) allow a decimal, and the unit is seconds.
G4 P.5 will give a .5 second dwell.
08-06-2012, 03:59 PM #3
On my machines g4 g04 are the codes for dwell also. If this will not work a easy work around would be to slow the feed to .0001 per rev for the last 1/2 thousanths of feed assumming this is a lathe. If a mill do the same thing just slow feed the last little bit.
08-06-2012, 04:06 PM #4
Any Fanuc that I have used dwell on takes decimals just fine.
G4 X.5 = 1/2 second
Can substitute U for X
I think our older Mits only takes U's.
If your Mach doesn' take this code - I would be surprised...
I am Ox and I approve this h'yah post!
08-06-2012, 04:17 PM #5
G4P*** as has been mentioned is for a dwell, the **** will be the amount of dwell you want, it can either be in seconds or milliseconds and you choose which on General Config page.
08-06-2012, 04:32 PM #6
Didn't the length of dwell with G04 depend on whether you were feeding in Inches per Revolution (lathe) or Inches per Minute (mill)? I thought one timed the dwell in seconds and the other in spindle revolutions. (Been a long time...)
08-06-2012, 04:35 PM #7