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 03-21-2008, 10:40 AM
 
Join Date: Nov 2007
Location: us
Age: 35
Posts: 2
450rwhp is on a distinguished road
G42 explained?

Just to give a quick overview of me, i have been operating cnc's for about 7 yrs. at the current im in my second semester of school for programming. i have a problem that im not sure which is the correct way to program this segment of the next project. i roughed the dia. using a G02 command. im at the point that i am ready to do a finish pass im required to use a G42 command.

G42 G02 X____ Z_____ ? would this be the correct way? Or do i leave out the G02 for the following block?
Reply With Quote

  #2   Ban this user!
Old 03-21-2008, 06:00 PM
The Pininator's Avatar  
Join Date: Mar 2008
Location: USA
Posts: 9
The Pininator is on a distinguished road

You should lead in with a G01, then use the G42
This explains it better
http://tinyurl.com/29s9vx

Surprised that's not in any of your books?
Reply With Quote

  #3   Ban this user!
Old 03-21-2008, 06:32 PM
 
Join Date: Nov 2007
Location: us
Age: 35
Posts: 2
450rwhp is on a distinguished road

i have the hand outs but it didn't explain it as such. ty for the link. ill study it a bit. thanks.
Reply With Quote

  #4   Ban this user!
Old 03-21-2008, 08:30 PM
 
Join Date: Nov 2005
Location: Only the USA
Posts: 213
theemudracer is on a distinguished road

turn cutter comp on and feed to the start point and then make your radius.

G0X---Z--- (RAPID TO .100 OF STARTING POSITION OF RADIUS)
G42GO1X---Z----(START POSITION FOR RADIUS)
G02X---Z---R--- (RADIUS)
G01X---Z--- (MUST HAVE LINEAR FEED AFTER RADIUS TO TURN CC OFF)
G40 (TURN CUTTER COMP OFF)
Reply With Quote

  #5   Ban this user!
Old 03-22-2008, 11:12 AM
 
Join Date: Jul 2007
Location: US
Posts: 12
custer is on a distinguished road

450, mudracer has it correct.

If I could expand on it a bit.....

Before we call radius comp, we're programming the intersection of the horizontal and vertical tangent lines to the insert radius.

When you call radius comp the control takes over and compensates for the radius on the insert by no longer moving using the intersection of the tangent lines. It moves the insert to the intersection of the two radii.... the radius you intend to make and the radius on the insert.

Let's do a simple one. We have a 10." diameter OD. We want a .1" radius on the face of the part at the 10." dia. The part face is Z0. Let's round the 1/32" nose radius on the insert to .03" for simplicity.

N10 G0 X9.8 Z.1 [10." DIA MINUS .1 RADIUS DOUBLED]
N20 G42 G1 X9.8 Z0 F.007 [X REDUNDANCY FOR CLARITY]
N30 G3 X10. Z-.1 R.1
N40 GO X10.1 [MOVE MORE THAN DOUBLE THE INSERT RADIUS]
N50 G40 Z.1
N60 X12. Z10. [HOME].
M30 [DONE]

On the N20 line, the control will 'look ahead' to the G3 move.
It will cause the actual position to be 9.8" minus .03" x 2, or 9.74", assuming the control is working correctly.
Imagine holding a ball of .2" diameter [the .1" part radius] and a ball of .06" diameter [the .03" radius on the insert].
Hold both balls up in the air so that their centers are both aligned horizontally. Move them together so they touch. That's what you want, that's what the control does for you when you call radius comp.

On line N30, your actual Z will be Z-.13, not Z-.1. Again that's radius comp saving you from doing the math.

Notice N40. Save yourself a crash. If you rapid to only X10.01 the control will look ahead and see the Z.1 move coming and will crash down into the part. It's still in G42 [right side compensation].
Always rapid to a clearance postion more than twice the amount of the insert radius.

Have they fully explained G41 and G42?

Draw an arrow. Point it directly away from you. That's the travel direction or line of travel.
Draw a ball [representing the insert radius drawn full circle] tangent to the line of the travel on the right hand side. That's G42.
Draw a ball [again, representing the insert radius drawn full circle] on the left hand side. That's G41.

I've had a lot of new programmers try to face a part from the top down using G42. They were taught simply "G42, face and OD"
"G41, Bore" That's wrong.
See? Face a part from the top down, direction of travel.... insert on the left side with the arrow pointing away from you [turn the sketch upside down]? G41.

Back bore? Direction of travel... insert on the right side.... G42.

Back turn? Direction of travel... insert on left hand side.... G41.

See? It seems backwards from normal to them. So just think of the direction of travel, arrow pointing away from you, which side of the line the insert radius is on and it's easy.

I hope I haven't confused you.

Last edited by custer; 03-22-2008 at 11:23 AM. Reason: clarity and typo
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-29-2008, 09:18 PM
 
Join Date: Feb 2006
Location: USA
Posts: 22
mcash3000 is on a distinguished road

does anyone know if ther is a parameter to turn radius comp on. I currently can only do offsets in the x and z. I cannot enter the radius and tool. I am running a murata ms100 fanuc 18i control.
Reply With Quote

  #7   Ban this user!
Old 05-09-2008, 09:53 PM
 
Join Date: Feb 2006
Location: USA
Posts: 22
mcash3000 is on a distinguished road

figured 9it9 2out7.6
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
Stepper basics explained paul3112 Stepper Motors and Drives 0 12-24-2007 10:27 PM
SFPM explained? NShiflet General Metalwork Discussion 8 08-07-2007 08:34 AM
dac explained R.thayer General Electronics Discussion 4 12-15-2006 11:41 AM
CNC Routers explained. Looking for a detailed guide (newbies level) RunningWild DIY-CNC Router Table Machines 0 09-25-2005 02:23 PM
Amps, Volts, Watts, explained ynneb DIY-CNC Router Table Machines 2 04-28-2004 06:11 PM




All times are GMT -5. The time now is 10:10 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 354 355 356 357 358 359 360 361