Thank you to all who helped me with my hex homework over the last two weeks.
See this thread:
http://www.practicalmachinist.com/vb/cnc-machining/lathe-programmer-needs-help-306908/
I still don't know yet how much credit I was given for this assignment but after speaking with the instructor I believe it will be about 70%.
After going over all the replies I am still quite confused (I wish I had a simulator). Using the first explanation that angelw gave me; I created a spreadsheet to calculate some trig. I made the spreadsheet so that when I enter the number of sides of the shape and distance across the flats. The spreadsheet calculates start angle, hypotenuse (see CAD drawing in above post), incremental angle and X & Y positions. I used this spreadsheet to calculate my homework. The spreadsheet was not setup to calculate the .25 radii at the points.
After reading the second post from angelw I became a bit more confused as the tool path that was presented didn't match what I had calculated. I attribute this to the fact that my spreadsheet doesn't calculate the radii. However, when I calculate the distance from the point of the hex to the tangent point of the .25 radius I get .1082. This figure doesn't seem to 'fully fit' with angelw's tool path. When it is doubled (.2164), it works for some parts but not all.
What I would like to do is this: use my spreadsheet to calculate X&Y on an example hex and write some code then let the group critique my tool path.
In this example I have a part that was turned to a 5.0" OD. The hex is 4.0" over the flats with no corner rounding. The hex extends one inch back from the face of the part. The tool used is a .500" four flute EM.
When I enter 6 sides and 4.0" (distance over flats) into the spreadsheet this is what I get:
Hypotenuse: 4.6188
Incremental Angel: 60
From the table above I wrote a tool path in the program below. Is this remotely correct?
N14 (MILL HEX LEFT SIDE)
G99 G40 G20 G18
G00 G28 U0 W0
T0800
M05 P11
M35 (C AXIS ON)
G28 H0
T0808
G97 S1900 M03 P12
G17 U0 H0 (X/Y PLANE)
G112 (POLAR ON)
M89 (BRAKE ON)
G55 X6.5 Z.5
G42 X5.8 Z-1.0
G01 X5.0 C0 F.01
X5.0 C2.8868
X0 C5.7735
X-5.0 C2.8868
X-5.0 C-2.8868
X0 C-5.7735
X5.0 C-2.8868
G00 X5.1
G40 X6.0 Z1.0
M09
G113 (POLAR OFF)
G18 (X/Z PLANE)
M90 (BRAKE OFF)
M05 P12
M34 (C AXIS OFF)
M01
Again, thank you all for your help.
PR
See this thread:
http://www.practicalmachinist.com/vb/cnc-machining/lathe-programmer-needs-help-306908/
I still don't know yet how much credit I was given for this assignment but after speaking with the instructor I believe it will be about 70%.
After going over all the replies I am still quite confused (I wish I had a simulator). Using the first explanation that angelw gave me; I created a spreadsheet to calculate some trig. I made the spreadsheet so that when I enter the number of sides of the shape and distance across the flats. The spreadsheet calculates start angle, hypotenuse (see CAD drawing in above post), incremental angle and X & Y positions. I used this spreadsheet to calculate my homework. The spreadsheet was not setup to calculate the .25 radii at the points.
After reading the second post from angelw I became a bit more confused as the tool path that was presented didn't match what I had calculated. I attribute this to the fact that my spreadsheet doesn't calculate the radii. However, when I calculate the distance from the point of the hex to the tangent point of the .25 radius I get .1082. This figure doesn't seem to 'fully fit' with angelw's tool path. When it is doubled (.2164), it works for some parts but not all.
What I would like to do is this: use my spreadsheet to calculate X&Y on an example hex and write some code then let the group critique my tool path.
In this example I have a part that was turned to a 5.0" OD. The hex is 4.0" over the flats with no corner rounding. The hex extends one inch back from the face of the part. The tool used is a .500" four flute EM.
When I enter 6 sides and 4.0" (distance over flats) into the spreadsheet this is what I get:
Hypotenuse: 4.6188
Incremental Angel: 60
ANGLE: | 30 | 90 | 150 | 210 | 270 | 330 |
X: | 5.0000 | 0 | -5.000 | -5.000 | 0 | 5.0000 |
Y: | 2.8868 | 5.7735 | 2.8868 | -2.8868 | -5.7735 | -2.8868 |
From the table above I wrote a tool path in the program below. Is this remotely correct?
N14 (MILL HEX LEFT SIDE)
G99 G40 G20 G18
G00 G28 U0 W0
T0800
M05 P11
M35 (C AXIS ON)
G28 H0
T0808
G97 S1900 M03 P12
G17 U0 H0 (X/Y PLANE)
G112 (POLAR ON)
M89 (BRAKE ON)
G55 X6.5 Z.5
G42 X5.8 Z-1.0
G01 X5.0 C0 F.01
X5.0 C2.8868
X0 C5.7735
X-5.0 C2.8868
X-5.0 C-2.8868
X0 C-5.7735
X5.0 C-2.8868
G00 X5.1
G40 X6.0 Z1.0
M09
G113 (POLAR OFF)
G18 (X/Z PLANE)
M90 (BRAKE OFF)
M05 P12
M34 (C AXIS OFF)
M01
Again, thank you all for your help.
PR