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 09-08-2008, 04:21 AM
StellasDad's Avatar  
Join Date: Aug 2008
Location: Canada
Age: 39
Posts: 5
StellasDad is on a distinguished road
Troubl understanding G41 and G42 codes

Ok... I'm a newbie. Now thats been said and out of the way, I'm having trouble understanding these codes.

I do not understand how and when to incorporate these codes. I do understand that the G41 compensates to the left of the toolpath and the G42 to the right. How does one use these in a manual lathe program? What rules are there to follow?

I would appreciate the help. Thanks in advance.
Reply With Quote

  #2   Ban this user!
Old 09-09-2008, 03:00 PM
 
Join Date: Feb 2008
Location: USA
Posts: 508
scadvice is on a distinguished road
Smile Sorry...

...we may be a little confused. Your, on one hand, talking about CNC ( Computerized Numerical Control) "G" codes (G41 & G42 ect...automated machines) then on the other hand you change over to refering to a "manual lathe".??? Try again with more background info...
Steve
Reply With Quote

  #3  
Old 09-09-2008, 06:52 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I don't know if there is a big list of rules to know. A couple perhaps.

First, pre-position the tool near the start of the profile to be cut, but not directly on the profile. When radius compensation is turned on, then the controller reckons that the path has now shifted from tool center to tool edge tangent. It may make an actual movement to adjust its position (by the tool radius amount), or, it may save that move and combine it with the next real positioning command.

So if you begin with the tool on the profile, you'll probably get a little gouge mark.

The lead off of the profile should follow a similar rule. Don't turn radius comp off (G40) while the tool is sitting on the part profile. Again, a gouge mark may result.

So in real life, you need to add a short line onto and off of the actual profile that you want to machine.

I think it is good practise to eliminate square internal corners from the path profile. The tool is not going to cut it anyways, so you might as well draw it the way it will actually look. Taking this step will help eliminate "cutter interference" alarms when the control cannot calculate the next move because the endpoint disappeared when the corner was trimmed. If you trim (fillet) the path first, then you won't have grief unless you call for a tool tip radius that is larger than your drawn fillet. You might or might not get an alarm, but the part will not be cut as drawn if the tool cannot fit into every corner of the path.

There are typically 'directions' for tool comp. There may be a chart or table of some sort in the manual that tells you which number to assign to the tool, given the direction that it must approach and execute a path. I'm not really "up" on the details of this, so maybe someone else would care to elaborate.
__________________
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

  #4   Ban this user!
Old 09-09-2008, 07:02 PM
 
Join Date: Feb 2008
Location: USA
Posts: 508
scadvice is on a distinguished road
Ahhh..

Did you mean lathe Manual??? How the cutter comp. is used is dependent on the the part rotation CW CCW , tool direction, and if it is an outside cut or a bore. I will post a formula later this week for slowing the feed rate as you make the turn that is based on the radius in the inside corner. I don't have it with me right now. Nice post HnFlungDung. Steve
Reply With Quote

  #5   Ban this user!
Old 09-10-2008, 12:54 PM
StellasDad's Avatar  
Join Date: Aug 2008
Location: Canada
Age: 39
Posts: 5
StellasDad is on a distinguished road

Ya... I meant manual programming for cnc lathes.

Thanks for all the advice. You've been very helpful!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-27-2008, 08:37 PM
 
Join Date: Jul 2007
Location: U.S.
Posts: 25
ikneb is on a distinguished road

The general rules are
G41 and G42 must be turned on in G1
G41 and G42 are turn off by G40 in G1
G41 outside of a part moves away from the chuck and towards center
G41 inside a part towards the chuck and center
G42 out side a part moves towards the chuck and away from center
unless you are working on the back side of a part(chamfering before cutoff)
G42 inside a part away from the chuck and center
Reply With Quote

  #7   Ban this user!
Old 09-27-2008, 11:13 PM
StellasDad's Avatar  
Join Date: Aug 2008
Location: Canada
Age: 39
Posts: 5
StellasDad is on a distinguished road

Thanks but that would all depend if you were climb or conventional milling. You just described comp if one were climb milling.


Generally, G41 would be compensation to the left of tool path and G42 would be compensation to the left of toolpath. Right?
Reply With Quote

  #8   Ban this user!
Old 09-28-2008, 03:13 AM
 
Join Date: Sep 2008
Location: united kingdom
Age: 33
Posts: 4
nathan.gibson is on a distinguished road
G41/42

hi Im not a lathe machinish myself i run a vertical miller but compensation is the same whatever your doing.
the main rule for compensation is to activate it properly, to activate the compensation you MUST make a 90deg movement after the g41/42, if you dont do this sometimes compensation is not active properly and your component will be incorrect.

Example:-
N170 G21 G40 G96 G99 S300 T202 M14
N180 G0 X24. Z0.
N190 G1 X-1.6 F.23
N200 G0 X24. Z3.
N210 G42
N220 G0 X14.5 -----90deg movement
N230 Z1. ------90deg movement
N240 G1 X20.0 Z-1.75 F.2---Profile
N250 Z-25.25
N260 X16.5 Z-27. F.05
N270 Z-30. F.2
N280 X46.
N290 X48. Z-31.
N300 Z-45.
N310 G28 G40 U0. W0. M9
N320 M1

Hope this helps
Reply With Quote

  #9   Ban this user!
Old 09-28-2008, 07:31 AM
 
Join Date: Jul 2007
Location: U.S.
Posts: 25
ikneb is on a distinguished road

No I just described bolth.G41 is always climbing G42 is always convetional.But it dosnt matter on a lathe,ecept to your canned roughing/finising cycles they HAVE to see motion towards the chuck and center
Reply With Quote

  #10  
Old 09-28-2008, 09:21 AM
Gold Member
 
Join Date: Oct 2005
Location: USA
Posts: 663
Caprirs is on a distinguished road

Originally Posted by StellasDad View Post
Generally, G41 would be compensation to the left of tool path and G42 would be compensation to the left of toolpath. Right?

This is exactly true. The control has no idea which side of the tool is in contact with the workpiece. It is only trying to follow the programmed path and move to the left (G41) or right (G42).

Further, on many milling machines, you can use a negative value for the tool diameter which effectively puts the tool to the opposite side. In other words, running G41 with a negative tool diameter will put the tool to the right of the programmed path. Some people only use G41 (never G42) and simply use positive and negative diameters to control the side they comp to.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-28-2008, 10:34 AM
StellasDad's Avatar  
Join Date: Aug 2008
Location: Canada
Age: 39
Posts: 5
StellasDad is on a distinguished road

I want to thank everyone or their valued input and I know understand compensation and feel comfy using it. Although I never thought of just using G41 and using a negative value, it makes sense to me.
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
using and understanding mach3 D CUSTOMS Bridgeport and Hardinge Mills 1 06-12-2008 09:13 PM
M-codes and G-codes 4 Matsuura ES-1000V maximusek G-Code Programing 2 11-27-2007 06:41 AM
Understanding Plasma THC nerginer CNC Plasma and Waterjet Machines 10 09-12-2007 04:33 PM
understanding engineers daleman CNCzone Club House 8 08-28-2006 07:18 PM
Understanding G-code ... or not! geoff p G-Code Programing 4 01-01-2006 01:46 PM




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