CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-02-2008, 10:13 AM
 
Join Date: May 2007
Location: USA
Posts: 896
g-codeguy is on a distinguished road
Help me understand feedrate for degrees.

Mr. James Weed's last post, "converting ipm to dpm macro question?" reminded me of my ignorance.

We have a part that was programmed by the seller of our lathe. 17 degree helix over .34 length. Our first ever C-axis program, and obviously not as easy to figure as drilling holes.

His 6 passes were based on these figures.

G98X.5Z.25C25.5
G1X.14F100.S5000
Z.14F10.M88
Z-.495C0F600.
G0X.5

This resulted in about an 8 degree helix, but was used by a sister company like this. So I have to assume it was doing its job as we never got any parts back or rejections. However, last time it was set up, I figured why not make it right?

I wound up with this.

G98X.5Z.05C52.
G1X.145Z.015F100.S5000M88
Z-.62C0F1500.
G0X.5

How does one go about figuring the feedrate for C-axis rotation? I used cycle time and eyeball to get my modified program to cut at about the same feedrate. I have no idea where to start looking for this information.

Thanks.
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 09-02-2008, 12:29 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

If you have a simultaneous move combining a rotary with a linear axis move, then I would assume that the linear feedrate is 'boss' because both motions must begin and end at the same moment. IOW, the feedrate along a ZC vector will be the same as a feedrate along a single axis Z vector movement.

For a single C axis rotation, there you might have to consult the manufacturer's instructions for C axis feedrate programming.

In a machine like a Haas, there is a setting that one can make where the OD of the part is input for the job at hand. So using this value, the controller can determine (automatically) what the feedrate in degrees would be for a rotary axis, based on the last linear feedrate in mode. So a Haas is nice in that regard, that we don't have to be mixing linear ipm commands with dpm commands.

Perhaps that information will help you figure out what to do. Not all controllers handle this in as neat a manner, so you'd have to read the manual to see what to do.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 09-02-2008, 12:56 PM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

g-codeguy,
What is the od of that part? I have a conversion program in my caculator that is very close(???) problem is i have to figure how to put this program back to formala on paper to share with you. need od to convert helix to a pitch.
On my 2ea allen/bradley lath conversions and my fanuc rotory mill, if you have c axis or b axis involved, then it auto interpolates in dpm . drop b or c axis then its back to ipm. maybe machine builder set it up this way???
I looked at formula on a website just the other day, i'll try to find it again. that formula just figures c axis moves, involve a helix(zc) and its different.

here is a link to site;
http://www.cncsnw.com/4thHowTo.htm

Last edited by jamesweed; 09-02-2008 at 02:42 PM. Reason: added link
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 09-02-2008, 06:04 PM
 
Join Date: May 2007
Location: USA
Posts: 896
g-codeguy is on a distinguished road

Mr. HFD: I've seen your posts before so I know you are one smart guy. This time, tho, your assumtion that the feedrate should be the same as the Z axis feedrate is wrong. Witness the F1500. I think my Z axis is 1430 IPM for max rapid, tho I would have to find one of those pesky manuals to be sure.

We have 3 of this model. Meaning we should also have 3 sets of manuals. Just made a quick run thru the shop & our library. Will try harder tomorrow to find one.

Both: The move is a ZC. I don't see what the diameter would have to do with my feedrate. Since it is brass, I am running RPM wide open. There are 6 vanes at .026+/-.001 thick.

Mr. Weed: I looked at your link. Only one formula looked like it was close, but I don't think it is the correct one tho I definitely could be wrong. It is using Diameter as part of the formula. If I changed the X.14 to X1.5 and ran my current program, I don't see why the feedrate should change. It is a function of the distance traveled in Z while the C axis rotates 52 degrees.

I'm glad I have a couple good mill guys helping me out. Thanks.

EDIT: O.D. is .426 diameter.
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 09-02-2008, 09:48 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Gcodeguy,
Yes, you're right about the ZCF1500, that would certainly look like a higher than normal linear feedrate, so perhaps that is the inverse time feedrate. I've not used that, but I have heard about it. Check this link, the third post down discusses this briefly.

http://www.cncmagazine.com/archive01/v3i08/v3i08k.htm
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-02-2008, 10:11 PM
 
Join Date: May 2007
Location: USA
Posts: 896
g-codeguy is on a distinguished road

Obviously something new for me. If I understand it correctly, time for each cut would be 60/1500=.04 seconds per pass. I can guarantee that each pass takes longer than that, so I guess that isn't the solution either. Interesting information to keep in mind, tho. Thanks.

BTW, I get grouchy quite often anymore. Does that mean I have become good and fast?
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-02-2008, 10:53 PM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

well the od does matter cause your tool is cutting on the circum of the part. bigger the circum the greater the distance for the cutter to travel. 52 degrees on 1.4 cir is not the same as 52 degrees on 1.5 cir.
1.4=4.3982 cir cir/360=.0122 per degree 52*.0122=.6344 travel around cir
1.5=4.7123 cir cir/360=.0130 per degree 52*.0130=.676 " " "

remember that you may program z .340 but cutter travels more than that because its moving around cir on an helix(pitch)
I do understand that a degree feedrate with just c axis is not the same as z and c going together. with both going then your pitch has to be included as well. I think...
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 09-03-2008, 12:08 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Still trying to wrap my mind around the inverse feedrate concept

In the original program, the X axis was being commanded to move at 100ipm, so we could presume that approximately the same feedrate would be desired during rotary motion.

So if we know the OD of the part is 0.426" then a 25.5° move represents a distance (along the part circumference) of
.426*Pi *25.5/360 = .0947"
If this movement were executed along a linear axis at 100ipm, it would take
.000947 minutes. To get the inverse feedrate figure, we take the reciprocal:
1/.000947 = F1056

Since the original programmer used F600, the time allotted for the ZC move is 1/600 = .00167min.
The ZC move is a hypotenuse, and I calculated
SqRt[(.638^2) + (.0947)^2] = 0.642 in
.642in/.00167min = 384ipm equivalent

Note that on a Haas and maybe most controls, you'd need a G93 to turn inverse time feedrate on and G94 to turn it off. When G94 is modal, that will give you your standard ipm.

So the inverse time feedrate is not a constant. It needs to be recalculated for every dissimilar movement involving the C axis (combined with another axis), because the time duration for the cut needs to be known exactly, then the reciprocal is calculated.

There may be limits on what the controller will permit for the feedrate command. This means that it is readily possible with inverse time, to exceed the number of placeholders allowed. So, that is something to watch out for.

On your new trial program, you used a 52° rotation and F1500.
So the distance along the circumference if the part is 0.426 = 0.1933 inches.
Your inverse time F1500 indicates that the move should take:
1/1500 = .00067 minutes

The ZC vector in your code is of length 0.663" if I calculated correctly.
.663in/.00067 = 990ipm equivalent.

I'm not sure how that jives with the real world results. Seems a tad fast, but you'd also need to check that inverse feedrate mode has actually been invoked and is active in what you actually are looking at in your current trial run.

We still are not certain at this time, if in fact your controller is using inverse time, or whether it is using degrees/min format for the rotary axis.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Last edited by HuFlungDung; 09-03-2008 at 12:31 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #9  
Old 09-03-2008, 01:15 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Best I can figure out from that Haas Apps's post is that when they say divide the inverse time figure into 60, that they are looking for an inch/second conversion rather than ipm. However, since most of us think in terms of ipm, I don't think it helps matters to use 60 as the dividend when 1 works better.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-03-2008, 09:14 AM
 
Join Date: May 2007
Location: USA
Posts: 896
g-codeguy is on a distinguished road

Originally Posted by jamesweed View Post
well the od does matter cause your tool is cutting on the circum of the part. bigger the circum the greater the distance for the cutter to travel. 52 degrees on 1.4 cir is not the same as 52 degrees on 1.5 cir.
1.4=4.3982 cir cir/360=.0122 per degree 52*.0122=.6344 travel around cir
1.5=4.7123 cir cir/360=.0130 per degree 52*.0130=.676 " " "

remember that you may program z .340 but cutter travels more than that because its moving around cir on an helix(pitch)
I do understand that a degree feedrate with just c axis is not the same as z and c going together. with both going then your pitch has to be included as well. I think...
I do realize that a 52 degree arc segment of a 2 inch dia. circle will be greater than the same segment of a one inch dia. circle, as would a 1.001 dia. circle segment. I also realize that the tool isn't just traveling .34 in Z, but also in an arc. Figuring that distance is beyond me.

I've always liked math, and been fairly good at it, but if you've never used something....?

I ran 2 test programs this morning. My part program and one with 4 inches added to the X dimensions. Cycle time was 18 seconds for both. Machine is a Daewoo 200MS. Here are the programs if you'd like to try them.

:2 (PLUS 4 INCH)

N820G54M91 (SPECIAL TOOL)
M35
T0808
G98X4.5Z.05C52.
G1X4.145Z.015F100.M88
Z-.62C0F1500.
G0X4.5
Z.05C112.
G1X4.145Z.015F100.
Z-.62C60.F1500.
G0X4.5
Z.05C172.
G1X4.145Z.015F100.
Z-.62C120.F1500.
G0X4.5
Z.05C232.
G1X4.145Z.015F100.
Z-.62C180.F1500.
G0X4.5
Z.05C292.
G1X4.145Z.015F100.
Z-.62C240.F1500.
G0X4.5
Z.05C352.
G1X4.145Z.015F100.
Z-.62C300.F1500.
G0X4.5M90
G0Z1.
M91
M30

:1 (NORMAL)

N800G54M91 (SPECIAL TOOL)
M35
T0808
G98X.5Z.05C52.
G1X.145Z.015F100.M88
Z-.62C0F1500.
G0X.5
Z.05C112.
G1X.145Z.015F100.
Z-.62C60.F1500.
G0X.5
Z.05C172.
G1X.145Z.015F100.
Z-.62C120.F1500.
G0X.5
Z.05C232.
G1X.145Z.015F100.
Z-.62C180.F1500.
G0X.5
Z.05C292.
G1X.145Z.015F100.
Z-.62C240.F1500.
G0X.5
Z.05C352.
G1X.145Z.015F100.
Z-.62C300.F1500.
G0X.5M90
G0Z1.
M91
M30
%


This is the only job I've every run like this so I am having a hard time visualizing. Plus I am an old dog, and you know what they say about us.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-03-2008, 09:37 AM
 
Join Date: May 2007
Location: USA
Posts: 896
g-codeguy is on a distinguished road

HFD. 2 things. I couldn't find inverse time mentioned in the manual, and 18 second cycle time is way too long if it were using inverse time feed. So I guess this means the control is using degrees per minute???

Bringing me back to my original question. How do I figure feedrate? Would a call to Daewoo be appropriate? I've always had good luck tapping into the knowledge on forums.

BTW, G94 is a canned facing cycle. No G93 mentioned.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 09-03-2008, 10:22 AM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

Originally Posted by g-codeguy View Post
I've always liked math, and been fairly good at it, but if you've never used something....?

Plus I am an old dog, and you know what they say about us.
me i don't like math, which is why i try to get formulas programmed into my caculator as soon as possible so i can forget about it.
i'm a old dog also...a tired old dog!
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quadrant marks at 90 degrees Mic6 Haas Mills 7 08-14-2008 01:52 PM
2 degrees of a learning Circle Smitty911 Dolphin CADCAM 4 02-12-2008 07:02 PM
how do i get sweep to do more than 360 degrees ??? yamaha_r1 Post Processors for MC 0 09-21-2007 10:41 AM
Controlling stepper motor, readout in degrees KC8QVO Stepper Motors and Drives 5 03-23-2007 04:34 AM
How to weld plate to tube at 90 degrees? coolman Welding, Brazing, Soldering, Sealing 12 12-23-2004 03:03 PM




All times are GMT -5. The time now is 10:09 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353