Learn CAD/CAM or Gcode

More
08 Feb 2013 06:11 #29776 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode
That's Andy that is stuck in some hotel, I'm in the backwoods of Missouri.

To clarify a bit you change the move to the the hole location to a G0(rapid move) then G1(feed move) down then G0 back out. The feed rate set by F is for the G1 feed move. The G0 move is at machine maximum rate.

If you need extra clearance during the traverse moves you can G0 down to Z0.1 then G1 to the bottom of the hole from there. This will reduce the length of the feed move and speed up the cycle.

John

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 06:30 #29777 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode
Just taking a couple of holes for example, your moving from place to place at 50IPM by using G1 feed moves everywhere.
(Paperclip Graph #1)
G20 G54 G40 G49 G61 G90 G80 G94 F50

(Start End Hole)
G1 X.53125
G1 Z-.5
G1 Z.5

Y.4375 X.375
G1 Z-.5
G1 Z.5

Y.6875 X.375
G1 Z-.5
G1 Z.5

Changing the move to the hole location and to rapid out we have:
(Paperclip Graph #1)
G20 G54 G40 G49 G61 G90 G80 G94 F50

(Start End Hole)
G0 X.53125
G1 Z-.5
G0 Z.5

Y.4375 X.375
G1 Z-.5
G0 Z.5

Y.6875 X.375
G1 Z-.5
G0 Z.5

Reducing the clearance height to 0.1 for Z we have:
(Paperclip Graph #1)
G20 G54 G40 G49 G61 G90 G80 G94 F50

(Start End Hole)
G0 X.53125
G1 Z-.5
G0 Z.1

Y.4375 X.375
G1 Z-.5
G0 Z.1

Y.6875 X.375
G1 Z-.5
G0 Z.1

The next thing to do to reduce cycle time is to change the hole sequence to have the shortest move between holes.

John

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 06:36 #29779 by Sterling
Replied by Sterling on topic Learn CAD/CAM or Gcode
Ahhh... Okay - I think I got it, thanx~!

So, something like this...

(Paperclip Graph #1)
G20 G54 G40 G49 G90 G80 G94 F50

(Start @ End Hole)
G1 X0.53125
G1 Z-.5
G0 Z.1

('Y' track #1)
Y0.4375 X.375
G1 Z-.5
G0 Z.1

Y0.6875
G1 Z-.5
G0 Z.1

Y0.9375
G1 Z-.5
G0 Z.1

Y1.1875
G1 Z-.5
G0 Z.1

Y1.4375
G1 Z-.5
G0 Z.1

etc, etc...

>>> Sterl

PS - Sorry you're stuck in a hotel Andy (maybe you can visit the bar?)

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 06:46 - 08 Feb 2013 06:47 #29780 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode
Yep, except the first move can be a G0 rapid move as well.

Did you catch the part about the cycle timer ?

John
Last edit: 08 Feb 2013 06:47 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 07:44 #29781 by Sterling
Replied by Sterling on topic Learn CAD/CAM or Gcode

Yep, except the first move can be a G0 rapid move as well.

Did you catch the part about the cycle timer ?

John

First part G0 = got it, thanx.
Cycle timer? nope...looking it up now~!

>>> Sterl

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 15:47 #29784 by andypugh
Replied by andypugh on topic Learn CAD/CAM or Gcode

After fixing the typo in Andy's code and adding a feed rate of 50 I get a properties time of 6.0 minutes for his code.
Edit: Andy's tool 19:43 to run...


I suspect that this is due to very conservative peck and drilling rates.

My code was more intended to show how to create an adaptable board drilling system, and also to show the canned drilling cycles.

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 20:24 #29786 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode

After fixing the typo in Andy's code and adding a feed rate of 50 I get a properties time of 6.0 minutes for his code.
Edit: Andy's tool 19:43 to run...


I suspect that this is due to very conservative peck and drilling rates.

My code was more intended to show how to create an adaptable board drilling system, and also to show the canned drilling cycles.


Using G98 without actually moving to a Z position first means it will retract to what ever Z position you might have been in and ignore the R word. Makes me wonder if you use G98 can you leave out the R word. Well a quick test shows that you have to have the R word even if it is not used. Also not moving to X0 Y0 before the move or specifying the X0 Y0 location in the G81 or G83 means that drill one hole here then move to the next hole. For some reason that I can not pin point your code drills the first hole twice. Oh I see it now the G83 line drills at X0 Y0 then the o103 drills again at X0 Y0 then increments the X. In any case a classic example of repeating patterns of drilled holes. I just wish I could figure out how to make it only drill the first hole only once.

John

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 20:43 - 08 Feb 2013 21:14 #29787 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode
Andy I fixed the double drilling of the first hole and used a little indentation to make the O codes a bit easier to follow and it is a wonderful example. This example ran in 5:17 on my config, so I'd say the peck drilling does take a bit longer.
;Cribbage Board Drilling

#<hole-to-hole> = 0.25
#<track-to-track> = 0.5
#<five-to-five> = 0.5
#<board-to-board> = 1

;Assumes bottom-left hole = (0,0)
#1 = 0 (x position)
#2 = 0 (y position)

G20 (inches)
F50
G0 X0 Y0 Z0.5
G90 G99 G81 Z-0.25 R0.1 (.25 deep, safe height 0.1)
o100 repeat[2] ; Drill 2 board sets
  o101 repeat[2] ; Drill 2 tracks per board
    o102 repeat[12] ; Drill 12 sets of 5
      o103 repeat[5] ; Drill 5 in a row
        o104 if [#1+#2 NE 0] ; If both #1 and #1 are 0 then skip to stop double drilling
         X#1 Y#2  ; This line does the actual drilling
        o104 endif
       #1 = [#1 + #<hole-to-hole>] ; Increment the hole to hole distance
      o103 endrepeat
    #1 = [#1 + #<five-to-five>] ; Increment the 5 to 5 distance
    o102 endrepeat
  #1 = 0
  #2 = [#2 + #<track-to-track>] ; Increment the track to track distance
  o101 endrepeat
  #1 = 0
  #2 = [#2 + #<board-to-board> - #<track-to-track>] ; Increment the board to board distance
o100 endrepeat
G80
M2

Edit: changing to G90 G99 G83 X0 Y0 Z-0.25 R0.1 Q0.05(.25 deep, 0.05 peck increments, safe height 0.1)
resulted in a 19:39 cycle time for peck drilling.

John
Last edit: 08 Feb 2013 21:14 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 23:20 - 08 Feb 2013 23:20 #29788 by Sterling
Replied by Sterling on topic Learn CAD/CAM or Gcode
Golly...glad you gents understood what you were talking about in those last few posts...~! :blink:

>>> Sterl
Last edit: 08 Feb 2013 23:20 by Sterling.

Please Log in or Create an account to join the conversation.

More
08 Feb 2013 23:49 #29789 by Sterling
Replied by Sterling on topic Learn CAD/CAM or Gcode
Update:
The latest run knocked the time down to 20min. Getting better, thanx for the help gents!

>>> Sterl

Please Log in or Create an account to join the conversation.

Moderators: Skullworks
Time to create page: 0.137 seconds
Powered by Kunena Forum