Hello Guest it is March 29, 2024, 03:05:10 AM

Author Topic: Milling a cone  (Read 7878 times)

0 Members and 1 Guest are viewing this topic.

Offline Keith

*
  • *
  •  187 187
    • View Profile
Milling a cone
« on: December 22, 2005, 12:51:01 PM »
Hi,well now that I have my rotary axis 'pointing' where I want it,when I want it,I wonder if someone could 'shortcut' me to the 'accepted' way of milling a cone.My thoughts are to go crazy incrementally listing z cuts per 'x step' and a 360 turn per cut which seems to scream :"wrong" or do an interpolation of the 'z' and 'x' and have some ratio of 'z,x feed' to a-axis feed;which seems closer but being new to g-code,I'm not sure how to enforce the different feedrates to accomplish this within the code's lines.Just mssing the protocol of not changing one axis feedrate when enlisting a feedrate for another axis.Reminds me of first time head scratching for doing 'nested "if...then" statements in microcontroller coding.-Thanks,Keith
Re: Milling a cone
« Reply #1 on: December 22, 2005, 03:33:32 PM »
I would think the best way would be to do a small program with a loop:) You could write the code to feed the Z and X axis at the same time Inc the A axis and head back up the slope inc the A axis and so on....


That is a simple and fast way to cut a shape like that. To cut with the A axis may take a bit longer...

Hope that helps and If you would like I could post some example code

Thank you
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline Keith

*
  • *
  •  187 187
    • View Profile
Re: Milling a cone
« Reply #2 on: December 22, 2005, 06:12:46 PM »
I'd love to see some code as I haven't really gotten into 'macros' which I assume can give you a 'for x=n to n...next n' type of arrangement.If this was all micro code,I'd be a hit but I just haven't found the resources for 'logical' decision making in g-code yet.Thanks in advance,Keith
Re: Milling a cone
« Reply #3 on: December 23, 2005, 08:06:57 AM »
Here is an example of a program that would do that :

G00 G90
X0.0000 Y0.0000
Z.1000
F30.0
G01 Z0.0000 X0.0000
M98 P0100 L360 (Call The sub and run sub 360 times)  <-- fixed the G98 to M98
G90 G00 Z1.00
M30

O0100
G90 (Abs mode)
G01 X-2.0000 Z-1.0000
G91 (Inc mode)
A0.500 (Do inc move)
G90
G01 X0.0000 Z0.000
G91
A0.500
G90
M99

IF you have any questions please feel free to ask, But this will give you a place to start :)
« Last Edit: December 28, 2005, 02:53:35 PM by Barker806 »
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline Keith

*
  • *
  •  187 187
    • View Profile
Re: Milling a cone
« Reply #4 on: December 23, 2005, 11:15:05 AM »
Thanks Brian.Think I've got it.I commented every line and my only questions are : line 6- (G98 P0100 L360 'Call The sub and run sub 360 times)..."P0100"? Is this a circumstantial use of a 'P' command?
And: I assume you are coding this so increment of A-axis is every half degree?
Thanks for your help,nothing like 'bouncing' questions off someone besides ones self.Looks like learning VBscripting is in my future as well.-Keith 
Re: Milling a cone
« Reply #5 on: December 23, 2005, 06:33:08 PM »
The P is calling the sub number... so P0100 is calling the O0100 sub.

Yes the Inc is ever half Deg but one Deg every time the sub is run.

VB is a very cool was to solve problems with making programs! If you have an Opp that you need to do over and over it is worth the time to learn VB

Have fun
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com