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


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-12-2009, 09:27 PM
 
Join Date: Feb 2006
Location: USA
Posts: 93
llilrex is on a distinguished road
G code A,B,C interploation

I am not sure if this is the right place to post this but here it goes. I am trying to figure out how the interpolation of A,B, and C axis are carried out. for example:

when x,y,z are moved the path is at a contant interpolation with respect to actual incident speed of the tool. but say you want to move X,Y,Z,A. how is this acheaved with respect to the actual incident speed of the tool path? do you treat the A,B,C axis seperatly from the X,Y,Z? by selecting a rotational interpolation? do you define a maximum radians or degrees per minute? are they combined like the X,Y,Z?
Reply With Quote

  #2  
Old 12-12-2009, 10:26 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Probably depends on the control that you are using.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #3   Ban this user!
Old 12-12-2009, 10:36 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

On Haas machines the XYZA motions are all combined to get the correct resultant feedrate. The angular A motion is converted to an equivalent peripheral linear motion using a diameter that is entered into the Parameters or specified in the program.

Or at least this is the way I interpret the explanation in the Haas manual.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #4  
Old 12-12-2009, 10:45 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Mach3 basically works the same way. You tell it the diameter of the part and it uses that info to calculate the required feedrate.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #5  
Old 12-13-2009, 01:01 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I think Geof has it right.

Whenever simultaneous axis motions are commanded, they must all begin and end in unison. So the controller calculates a proportional speed for each axis in order to make this happen.

If a linear and rotary XA simultaneous movement is commanded, the linear feedrate is 'boss' because the linear movement has an easily defined duration, and the rotary axis rate has to be proportioned so it is done when X is done.

When you have a solitary rotary movement commanded, but a linear feedrate is in effect, this is when the controller must know what the circumference of the part is supposed to be in order to convert inch/min to degrees/min. So it is theoretically possible on the Haas to have XA moves execute properly at a linear feedrate, but single axis A movements could be too fast/slow if the diameter input is way off.

Other types of controllers require degree/minute feedrates for all rotary movements, so then the rotary feedrate becomes 'boss' when A is active, but then you need to command linear feedrates whenever there are only linear axis involved. Personally, I like the way that Haas handles this, but it is understandably handling only comparatively simple motion situations. If you throw in a B and/or C axis, then you've probably got little choice but to use inverse time feedrates for all movements. That is where the duration of every movement is calculated and then inverted to give an inverse time feedrate, which is called by a particular gcode (I think?....I dunno, it has been a while since I studied inverse time).
__________________
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)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-13-2009, 01:07 AM
 
Join Date: Feb 2006
Location: USA
Posts: 93
llilrex is on a distinguished road

so, let me see if I can throw this out there without looking like a total moron.

if linear interpolation can be defined as:

Is = interpolation speed
t = time of move
x = vector component magnitude (G01 x#.###)
y = vector component magnitude (G01 y#.###)
z = vector component magnitude (G01 z#.###)

Is = sqrt(x^2 + y^2 + z^2) / t

add the a-axis:

a = vector component magnitude (G01 a#.###) = (angle/360) * 3.14 * r * 2

Is = sqrt(x^2 + y^2 + z^2 + a^2) / t

sorry for the computer version of the math, I don’t know how to insert actual mathematic notation.

so I suppose that it depends on the controller but will a controller automatically calculate the rotating path based on the tool location relative to the defined rotating axis or do you actually define a radius for the rotating cylinder? I read somewhere that there is a G2## code that converts an a-axis to a planer equivalent. mainly for laser marking on a cylinder, but I am talking about a 5 axis machining center.

by the way thank you very much for the quick reply. Tis great to have such a friendly resource. I hope that one day I can contribute and return the favor.
Reply With Quote

  #7  
Old 12-13-2009, 07:26 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by llilrex View Post

so I suppose that it depends on the controller but will a controller automatically calculate the rotating path based on the tool location relative to the defined rotating axis or do you actually define a radius for the rotating cylinder?
Depends on the control. As Geof and I said, with some, you define the radius. But I don't know how all controls handle this, and I'm sure they don't all do it the same way.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #8   Ban this user!
Old 12-13-2009, 10:36 AM
 
Join Date: Nov 2006
Location: Canada
Posts: 31
Heinz Reimer is on a distinguished road

http://www.linuxcnc.org/docview/html...ng_center.html

1.2.5 describes how EMC2 handles this.
Reply With Quote

  #9   Ban this user!
Old 12-13-2009, 01:03 PM
 
Join Date: Feb 2006
Location: USA
Posts: 93
llilrex is on a distinguished road

Thanks for the input.

So I read how EMC2 does it. It makes sense form a controller point of view, complex kinematic relationships are hard for a controller to do on the fly and keep everything timed right. So I suppose that if one was cutting a compressor in 5-axis the CAM used would probably calculate the tool path and force an inverse feed rate mode in the code to define the complex coordinated move explicitly with the time of move rather than the rate of move.

This was so much faster than me trying to figure it out myself. Thanks guys!
Reply With Quote

  #10   Ban this user!
Old 12-13-2009, 03:23 PM
Torsten's Avatar  
Join Date: Nov 2004
Location: U.S.A.
Posts: 260
Torsten is on a distinguished road

Our Postprocessor kicks out a inverse Feed Time command G-code for all multy Axes commands. Tell you the truth I don't know exactly how this is calculated. But anyway the burden of computation is on the Post and the controller just steps this down to ensure all Axes complete motion at the same time. The thing about this is that looking at the F-code dose not realy give you any clue at how fast a move you gone get it is all tied to the length of the move, you gone have to trust your Post to do the right thing.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-24-2009, 08:27 PM
 
Join Date: Nov 2006
Location: US
Age: 26
Posts: 181
Ydna is on a distinguished road

^ yeah, that's how many CAM programs do the 5 axis interpolation (or continuous-motion 4 axis too). The post processor will take the toolpath then segment it into a number of very small linear moves in X,Y,Z,A,B, say each 1/8" in length. The G93 code determines the amount of time it takes to reach the next block (depending on the spindle speed).

The feedrates of these moves are all different, but they'll probably be close to one-another. The tool's surface speed changes depending on where it's at in relation to the center of rotation for the A/B/C axes, so it has to slow down / speed up all throughout the movements.

I attached a sample part of a program for an impeller, it shows the movements pretty well. The program is for one small part of the program where it roughs the blade surface.
Attached Files
File Type: txt IMPELLER-ROUGH_LEFT.txt‎ (18.2 KB, 65 views)
Reply With Quote

  #12   Ban this user!
Old 01-27-2010, 03:10 PM
 
Join Date: Feb 2006
Location: USA
Posts: 93
llilrex is on a distinguished road

thanks for the file, it clears up allot of fragmented thoughts in my head. also it is nice to know what the norm is, considering that a controller might actually do multi axis cooperative feed rate, the cam programs dont assume that they do and dont take advantage of the feature. at least this is what I gather. I dont have a +3 axis cam so I dont know for sure. does any one know a good realitively inexpencive cam software that can handle 5 axis or 6 axis? possibly compatible with solidworks?

thanks again.
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
Need Help!- My Milling OKK with fanuc 6M can't recognize G-code & M-code nessei Fanuc 4 03-29-2011 08:39 AM
Newbie- Takeout Unused G Code commands in Mastercams Generated G Code shneek Mastercam 8 12-15-2010 02:32 PM
Need Help!- G-Code viewing source code Hussam Visual Basic 3 03-15-2009 12:15 PM
G-code for beginners - want to learn G-code FPV_GTp G-Code Programing 7 11-17-2008 11:25 PM
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 09:21 PM




All times are GMT -5. The time now is 12:25 AM.





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 354 355 356 357 358 359 360 361