Hello Guest it is April 18, 2024, 09:03:44 AM

Author Topic: Having Trouble with G4... Not Behaving as I think It should  (Read 5961 times)

0 Members and 1 Guest are viewing this topic.

Offline mhdale

*
  •  130 130
  • Knowledge is the Treasure.
    • View Profile
    • Black Dragon Technologies
Having Trouble with G4... Not Behaving as I think It should
« 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
Re: Having Trouble with G4... Not Behaving as I think It should
« Reply #1 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 :)


Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Having Trouble with G4... Not Behaving as I think It should
« Reply #2 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.

Offline mhdale

*
  •  130 130
  • Knowledge is the Treasure.
    • View Profile
    • Black Dragon Technologies
Re: Having Trouble with G4... Not Behaving as I think It should
« Reply #3 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
Re: Having Trouble with G4... Not Behaving as I think It should
« Reply #4 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

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Having Trouble with G4... Not Behaving as I think It should
« Reply #5 on: February 08, 2007, 03:51:18 AM »
P1000 is a second.

Graham.
Without engineers the world stops
Re: Having Trouble with G4... Not Behaving as I think It should
« Reply #6 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

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Having Trouble with G4... Not Behaving as I think It should
« Reply #7 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.
Without engineers the world stops