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
-
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
-
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 :)
-
The p values you have in your sample file are in microseconds add two more zeroes and try again.
-
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
-
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
-
P1000 is a second.
Graham.
-
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
-
If you look in general config you can set the G04 delay type if its ticked its micro seconds.
Graham.