View Single Post
  #7   Spotlight this post!  
Unread 21-12-2009, 12:04
Rion Atkinson's Avatar
Rion Atkinson Rion Atkinson is offline
The CAD Guy
no team
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Oklahoma City
Posts: 386
Rion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond reputeRion Atkinson has a reputation beyond repute
Re: G Code with a Mill

Quote:
Originally Posted by Cory View Post
To clarify, here is an excerpt from the Haas user manual. Note that this is not Haas specific-any Fanuc based controller will follow these same rules. I am certain that his code would not run correctly on your program, as I and J are always incremental distances to the arc's center.
You said that his program would most likely not work on mine. But the way I have been writing programs says that it would.

Here is a program I have written the does indeed work.

Quote:
;Rion Atkinson
;12-1-09
;Ornament Project
G90 M03 S250 ; Turn on spindle
G00 X0 Y0 Z1 ; Move to starting point
G00 X1.0 Y0.3 ; Move rapid above point A
G01 Z-0.125 F5 ; Plunge to point A
G01 X0.9 Y0.5 F20 ; Cut to point B
G01 X1.9 Y1.4 ; Cut to point C
G02 X2.3 Y0.6 I2.1 J1.0 ; Cut Clockwise to point D
G01 X2.2 Y0.8 ; Cut to point E
G03 X2.0 Y1.2 I2.1 J1.0 ; Cut Counter-Clockwise to point F
G01 X1.0 Y0.3 ; Cut to point A
G01 Z1 ; Move up out of material
G00 X2.0 Y0.3 ; Move rapid above point G
G01 Z-0.125 F5 ; Plunge to point G
G01 X2.1 Y0.5 F20 ; Cut to point H
G01 X1.1 Y1.4 ; Cut to Point I
G03 X0.7 Y0.6 I0.9 J1.0 ; Cut CC to point J
G01 X0.8 Y0.8 ; Cut to point G
G01 Z1 ; Raise up out of material
G00 X1.5 Y1.2 ; Move rapid above point M
G01 Z-0.125 F5 ; Plunge into material
G02 X1.5 Y1.2 I1.5 J1.55 ; Cut Clockwise to point M
G01 Z1 ; Raise up out of material
G00 X2.3 Y1.4 ; Move rapid above point N
G01 Z-0.125 F5 ; Plunge into material
G03 X2.3 Y1.4 I2.5 J1.6 F20 ; Cut CC to point N
G01 Z1 ; Raise up out of material
G00 X0.8 Y1.5 ; Move Above point O
G01 Z-0.125 F5 ; Plunge to point O
G02 X0.8 Y1.5 I0.6 J1.6 ; Cut Clockwise to point O
G01 Z1 ; Raise out of material
G00 X2 Y5 ; Move rapid to off loading point

(Sorry for no line numbers. I had to write this out of a piece of paper so I left them out.

It cut this out of butter board.


http://picasaweb.google.com/lh/photo...eat=directlink