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 07-24-2003, 02:52 AM
bunalmis's Avatar  
Join Date: Jul 2003
Location: Turkey
Posts: 246
bunalmis is on a distinguished road
G41 and G42 How are works ?

Hello,

I am learning G codes but I didnt understand the G41, G42.

Who can teach to me these commands by example?

Bulent UNALMIS
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 07-24-2003, 03:08 AM
Klox's Avatar
Gold Member
 
Join Date: Mar 2003
Location: NZ
Posts: 509
Klox is on a distinguished road

It's offsets from the program line. When you're cuttining in a straight line (G01) is G41 offset to the left of the program line and G42 offset to the right of the program line. You must use D in conjunction with the G41 & G42 as the D value sets the amount of the offset. Eg: G41 G01 X10.0 Y25.0 D0.15, this translates to a offset of 0.15mm to the left of the program line.

Am I clear? If not Pm me and i'll e-mail you an example of a program.

Klox
__________________
*** KloX ***
I'm lazy, I'm only "sparking" when the EDM is running....
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 07-24-2003, 03:21 AM
bunalmis's Avatar  
Join Date: Jul 2003
Location: Turkey
Posts: 246
bunalmis is on a distinguished road
Re: G41 and G42 How are works ?

Thanks Klox,

I add 2 examples. May you said which motion must use G41 or G42 ?

(Arrow numbers show sequence of motion)
Attached Thumbnails
Click image for larger version

Name:	g41-42.jpg‎
Views:	680
Size:	10.0 KB
ID:	623  
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 07-24-2003, 12:29 PM
CAMmando's Avatar  
Join Date: May 2003
Location: Phila PA, USA
Posts: 146
CAMmando is on a distinguished road

Usually .....

A = G41
B = G42

But nothing would prevent a user from using them in reverse (in fact I worked in a shop that did just that). The operator just would put negative comp values in the register rather than positive and vice versa.
__________________
Wee aim to please ... You aim to ... PLEASE.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 07-24-2003, 12:45 PM
 
Join Date: Mar 2003
Location: Utah
Posts: 214
Mortek is on a distinguished road

In most fanuc based controls the D references a Diameter or radius entered into a registry page in the control. Hence if you called G41 D1 it would reference a pre-entered diameter or radius in register 1. Same goes for height offsets where you would call G43 H1 and that would select Height offset 1.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 07-24-2003, 06:37 PM
cadcam's Avatar
Community Director
 
Join Date: Apr 2003
Location: United States
Posts: 2,541
cadcam is on a distinguished road

Mortek , Most of the time Fanuc like to have a diffrent D value so more like T1 H1 G41 D21.

hope this helps just extra things to know.
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Cadcam
Mastercam Instructor , Programming Consultant and ME (Manufacturing Eng)
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 07-24-2003, 07:23 PM
JamesBond's Avatar
007 Member
 
Join Date: May 2003
Location: USA
Posts: 18
JamesBond is on a distinguished road

Also an important thing to remember when manually programming G41/G42 is that before your cut, you need to enable the G41/G42 with a move that is at least 1/2 the cutter diameter. This also goes for turning off cutter comp with a G40.
You might get some unexpected results if you try to turn cutter comp on with your first cut.
-JamesBond
__________________
Experience is the name every one gives to their mistakes.
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 07-24-2003, 07:29 PM
wms's Avatar
wms wms is offline
Moderator
 
Join Date: Mar 2003
Location: United States
Posts: 938
wms is on a distinguished road

Originally posted by cadcam
Mortek , Most of the time Fanuc like to have a diffrent D value so more like T1 H1 G41 D21.

hope this helps just extra things to know.
Cadcam,
I have to kindly disagree with your statment that most Fanuc or fanuc like controls like different number from your tool number.
I use the same offset as the tool number, have for about 15 years, never seen any problem.

You can use a different offset number, if you want to leave extra material, say for a finish pass.

So if you are using tool #1 that is a 1/2 mill, you could set offset #1 to .500 and use offset #21, set at .505 to leave .0025 material for clean up.
__________________
(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

  #9  
Old 07-24-2003, 09:03 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Originally posted by JamesBond
Also an important thing to remember when manually programming G41/G42 is that before your cut, you need to enable the G41/G42 with a move that is at least 1/2 the cutter diameter. This also goes for turning off cutter comp with a G40.
You might get some unexpected results if you try to turn cutter comp on with your first cut.
-JamesBond
Good point, James.

BTW, for the uninitiated, this is what we machinists refer to as "an approach", that extra bit of toolpath that we add onto the actual part toolpath, to give the machine a chance to apply cutter compensation without forcing the tool into the wall of the part (gouging we call it), before the machine can figure out which side of the path it is supposed to be on. The reason the machine doesn't know how to apply compensation from a standstill, is that left and right are meaningless until a move is made down a path. In other words, there is no left or right to a starting point, but there is left or right to a starting movement.

A lot of this depends on how smart your controller is. If it can "look ahead" in your program before executing any movement, it may be able to apply compensation quite intelligently.

Nonetheless, at minimum, the machine is going to have to move your commanded amount from your compensation table before it is on path. Whether it makes this move all by itself when it reads a G41/G42, or combines it with the first linear/circular) movement, it has to do something to get the cutter in position. This is why the first entity in your path must be either "in the waste", or "in the clear".
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 07-24-2003, 09:44 PM
hardmill's Avatar  
Join Date: Mar 2003
Location: United States
Posts: 499
hardmill is on a distinguished road

Originally posted by wms
Cadcam,
I have to kindly disagree with your statment that most Fanuc or fanuc like controls like different number from your tool number.
I use the same offset as the tool number, have for about 15 years, never seen any problem.

You can use a different offset number, if you want to leave extra material, say for a finish pass.

So if you are using tool #1 that is a 1/2 mill, you could set offset #1 to .500 and use offset #21, set at .505 to leave .0025 material for clean up.
Sorry Wms,
I have to dissagree also. Fanuc controls are actually 50/50
in regards to using the same offsett. As far as multi passes
for finish thats what our cadcams are for. JM2C

PEACE
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11  
Old 07-24-2003, 09:59 PM
wms's Avatar
wms wms is offline
Moderator
 
Join Date: Mar 2003
Location: United States
Posts: 938
wms is on a distinguished road

Originally posted by hardmill
Sorry Wms,
I have to dissagree also. Fanuc controls are actually 50/50
in regards to using the same offsett. As far as multi passes
for finish thats what our cadcams are for. JM2C

PEACE
So maybe the word "most" should be "Some" or even "half".

I too agree that the cad/cam will handle the finish stuff. I was just giving an example of how different offset number and values could be used.
__________________
(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

  #12  
Old 07-24-2003, 10:23 PM
cadcam's Avatar
Community Director
 
Join Date: Apr 2003
Location: United States
Posts: 2,541
cadcam is on a distinguished road

I know that not all fanuc controls do it this way.
But at least half would be a btter statment from me.

As the last few years that most of the controls the customers keep telling me that they have to add 20 to the D value and that it can not be the same.

I know that the Yasda 5axis that has a Fanuc 16i control does not have to have a diffrent D as I have mentioned.

But most of the older ones do like the OM, 6M and many more have it this way.

So I have to do this again today and say I am sorry for a over statment.
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Cadcam
Mastercam Instructor , Programming Consultant and ME (Manufacturing Eng)
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
Help needed to Debug G41 G42 problem Al_The_Man General CAM Discussion 4 07-05-2004 07:22 PM
How does G 41, G42 works ? BanglaTech General CAM Discussion 7 11-04-2003 12:38 PM




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