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! > CAM Software > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-16-2003, 01:12 PM
 
Join Date: Apr 2003
Location: Bend, USA
Posts: 16
badRandle is on a distinguished road
how does G2,G3 work??

I am trying to understand how g2 or g3 works. Does anybody know where I can find a good explanation of how this works?
It is most likely very simple and I am over thinking it....LOL
This may sound like a dumb question, but I have never programmed with G code only Mastercam, relying on good post processors.

Thanx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 05-16-2003, 01:28 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road
They work good!

Actually, to put it briefly, the G2 or G3 is a call code for your controller to use it's circular interpolation hardware to generate sinusoidal motion on two axis. Each axis moves different amounts and speeds during the movement, just as your pencil must do in X and Y if you were to draw a circle on a graph.

A G1 by contrast, is a call for simple linear motion of one or more axis, that means that they all start and end their linear movements at the same instants, but each axis moves at a constant speed throughout the movement.

The G2 and G3 commands also look more complex, because the controller also needs a parameter that describes where the center of the arc is supposed to be, in order that it can base its internal calculations on the correct point. So, quite often you will see the arc center described in terms of I and J, which are synonymous with the X and Y coordinates of the arc's center.

Your machine is always assumed to be at the start of the arc before reading the G2 or G3, so the G2 or G3 contains an X and Y component which describes the final position after the arc has been traversed.

More modern controllers, use a simple R (radius) value to determine the arc center, and leaves the geometric calculation of the center point up to your controller to figure out. This makes programming appear simpler to read, although it can skew a whole toolpath, if the R value is edited at the controller.
__________________
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 05-16-2003, 03:33 PM
 
Join Date: Mar 2003
Location: United States
Posts: 106
E-Stop is on a distinguished road
Wow HuFlung, That wore me out reading it. BadRandle wanted a "simple" explanation.

G2 will cut an arc in the Clockwise direction. G3 will cut an arc in the CounterClockwise direction. Make a linear move (G1) to where the starting point of the arc. Then program a line with G2 or G3 and an X,Y,I,J as follows:
X = the X coordinate of the end point of the arc.
Y = the Y coordinate of the end point of the arc.
Note: if cutting a full cirlce, X/Y will be the same as the starting point.
I = the distance and direction in the X axis from the starting point of the arc to the arc center.
J = the distance and direction in the Y axis from the starting point of the arc to the arc center.
Note: direction for I/J is defined using positve or negative numbers.

Also beware of cutter compensation (G41/G42) when using G2/G3. This will determine if you will cut to the inside of your arc or on the outside.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 05-16-2003, 04:34 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road
Don't overlook that some controllers require the arc center coordinates to be absolute coordinates, if your main program is in absolute, whereas others require that those arc center coordinates must be in incremental, even if your end coordinates are in absolute.

There are several permutations of these things that can drive a person wacky. Some things just look simple. but are very complex, the deeper you delve.
__________________
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 05-16-2003, 11:39 PM
hardmill's Avatar  
Join Date: Mar 2003
Location: United States
Posts: 499
hardmill is on a distinguished road
Lets not........

Lets not forget controls that only require an "R".
Thats the easy way to go if your just starting to
prog. manually.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-18-2003, 02:40 PM
Paul_S's Avatar  
Join Date: Mar 2003
Location: Mira Loma, California
Posts: 147
Paul_S is on a distinguished road
Summery:

G2 clock wise (CW) move.
G3 counter clock (CCW) wise move.
(G1 linear move.)
(G0 rapid traval)
And these codes are generally always model, that is, stay active until canceled.
G, X, Y, I, J, format.
The position BEFORE the G2 or G3 must lay on the arc.
The X & Y in the G2 or G3 block also lays on the arc.
The I & J tells the control where the center of the arc is.

The I & J standard format is the signed incremental distance from the start point, that is, the postion BEFORE the current active G arc block.

Then next most common I & J format is the I & J are the absolute coordinates of the arc center (I = X center, J = Y center.)

On old NC controls the I & J are the unsigned incremental distance from the start block postion to the arc center. An in that old format the end G arc code end X & Y coordinate must lay within 90 degress of the start block coordinate. The old quarter quadrant arc block format.

There were a few other formats that were in use (non-G2 or G3 formats.)

In the standard format:

I is equal to (the center block X - the start block X coordinate.)
J is equal to (the center block Y - the start block Y coordinate.)

The radius is equal to the square root of ( I^2 + J^2)

The X & Y in the block is the end point of the arc move.
__________________
Safety - Quality - Production.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 06-02-2003, 02:46 PM
DanFri's Avatar  
Join Date: Apr 2003
Location: Detroit, Mi
Posts: 21
DanFri is on a distinguished road
hardmill's got it right. R and end point are the way to go. Center points will mess with you. E-Stop also has it. Only depending on the machine you do or don't need I and J. My Fanuc doesn't.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 06-04-2003, 08:52 PM
CAMmando's Avatar  
Join Date: May 2003
Location: Phila PA, USA
Posts: 146
CAMmando is on a distinguished road
Talking G2 / G3 ... 2Nd Semester

Good stuff guys ... Just thought I'd pile on a couple of thoughts.

--- Modality---

G2/G3 are modal (in most machines.). Meaning that they stay active until cancled by another modal command in therir "Group". This would include G1, G2 or G3, Canned Cycles like G81 etc. Check the code list in your manual.

So after calling a G2, the next arc move does not require you to call another G2, Just the appropriate X Y Z I or J.

--- Helical Interpolation ---

If your control supports helical interpolation, this is usualy acomplished with a G2 o G3 that contains a Z Value in addition to X Y I & J. In this case all of the other values work the same.

-- Arcs in other planes ---

Most Fanuc type controls spend most of their life in the G17 (XY plane). Your programs prolly have a G17 up near teh beginning, and maybe before and or after a toolchange.

G17 is a modal command that tells the control to generate movement in the X,Y axis. (ie. the arc centerline is paralell to the Z axis). For working in other planes, you can still use the G2 or G3, But you must first tell the control to change planes. G18 and G19 is commanded to use XZ or YZ Arcs (centerline paralel to X or Y axis). For an example of this, toolpath an YZ Arc in Mastercam. Depending on how your post is set up and whether uo comp to the tip or the center of a ball mill you may need to check the filter box. Post the code and check it out. You should see a G18 or G19 then your G2 or G3. Notice the X or Y is replaced with Z.

A point of interest here. If you (or your post) dont command G17 before you change tools, you will probably receive an error message that seems to make no sense. The machine will be telling you it cant Go Home or to tool change position because the coordinate system is all goofed up.

To get really tricky you can use polar coordinates and do pretty cool stuff with G2 and G3 (machine domes etc.) that would be a topic for another day.

Hope that helps.
__________________
Wee aim to please ... You aim to ... PLEASE.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #9  
Old 06-05-2003, 04:40 PM
*Registered User*
 
Join Date: Jun 2003
Location: USA
Posts: 1
kingdavey is on a distinguished road
learning curve

Hi Guys,

I am new to cnc and I am about to pick up a foamcutter (foamlinx)and I want to be able to use it for more than just cutting wings. Can you recommend good software that I can use to make other shapes and that will not take the fun out of learning to use it?

I read through a few of these threads and I want to get to it!

Thanks in advance for any help you can give me.
David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 10-07-2003, 10:33 PM
M@T M@T is offline
 
Join Date: Oct 2003
Location: England
Posts: 38
M@T is on a distinguished road
Fanuc's are one of the easiest to do arc's on. Just take it to whatever start point you want, then put in the finish point and either G2 or G3 and away you go.

I remember the machines I used at college were a ****ing nightmare to do rads on
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does a power supply work. ynneb DIY-CNC Router Table Machines 1 07-27-2011 10:40 AM
What do you use to hold your work down? CNCadmin Work Fixtures and Hold-Down Solutions 2 06-03-2005 11:27 AM
Work Holding Methods InventIt DIY-CNC Router Table Machines 13 09-14-2004 04:13 AM
Looking for additional cutting work. ( Melbourne Australia) ynneb Australia, New Zealand Club house 2 08-05-2004 06:53 PM
What is 2.5 d work Patrick2by4 DIY-CNC Router Table Machines 9 07-05-2004 12:04 PM




All times are GMT -5. The time now is 02:35 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