Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: mhdale on August 25, 2006, 12:26:10 PM

Title: Having Trouble with G4... Not Behaving as I think It should
Post by: mhdale on August 25, 2006, 12:26:10 PM
Hello All. I have written a spindle warmup routine to baby my new spindle and I am having trouble making it work The code I have written is as follows
S6000 M03
G00 G90 X4. Y4. Z-2. F20.
X3. Y3. Z-1.5 F5 G4 P1500.
S12000 M03
X1. Y1. Z-1. F10. G4 P600.
S18000 M03
X1. Y1. Z0. F10. G4 P600.
S24000 M03
X2. Y2. Z-1.5 F10. G4 P900.
X0. Y0. Z0. F10.
M05
M02

Its supposed to start the spindle at 6000 rpm move to a spot wait 25 Minutes the move to a diff spot goto 12000 RPM wait 10 minutes etc.... What I Get is it starts moves to the 1st spot waits about 15 Seconds then moves to second spot and ran for about 55 minutes and hasnt done anything else..... and I did check to see what the dwell is set to in the config (its not milli seconds) Im preety green with g code perhaps I did a obvious blunder... anyone have any suggestions?

Mike
Title: Re: Having Trouble with G4... Not Behaving as I think It should
Post by: Brian Barker on August 25, 2006, 07:12:31 PM
You may hve gone past what we have  for a value that can be set...This is the longest dwell that I have ever seen :)


Title: Re: Having Trouble with G4... Not Behaving as I think It should
Post by: Will Slota on August 30, 2006, 05:29:08 PM
The p values you have in your sample file are in microseconds add two more zeroes and try again.
Title: Re: Having Trouble with G4... Not Behaving as I think It should
Post by: mhdale on August 31, 2006, 02:14:47 PM
Actually Brian had it nailed, I switched it so that it was only doing 1 min max per line and just added more lines and it works just right.

Thanks
M
Title: Re: Having Trouble with G4... Not Behaving as I think It should
Post by: alex718 on February 07, 2007, 08:07:00 PM
What are the units of time for the 'P' parameter ? I set the dwell to P12.0 and it does not wait 12 seconds. I need at least 2 seconds for my plasma to start.
Thanks for any help
Title: Re: Having Trouble with G4... Not Behaving as I think It should
Post by: Graham Waterworth on February 08, 2007, 03:51:18 AM
P1000 is a second.

Graham.
Title: Re: Having Trouble with G4... Not Behaving as I think It should
Post by: alex718 on February 08, 2007, 09:47:46 AM
Thanks Graham, but I am confused. Mike has this line   "X3. Y3. Z-1.5 F5 G4 P1500."  that I think says P1500 and Brian says "You may hve gone past what we have  for a value that can be set...This is the longest dwell that I have ever seen" . From what you said, this should only be 1.5 seconds --  correct ?

Thanks
Title: Re: Having Trouble with G4... Not Behaving as I think It should
Post by: Graham Waterworth on February 08, 2007, 01:00:32 PM
If you look in general config you can set the G04 delay type if its ticked its micro seconds.

Graham.