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 09-28-2004, 05:17 PM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road
How am I screwing up G41/G42 Compensation?

I am still trying to just get this going in Cutviewer, let alone my actual cutting.

Here is my simple test program. I want to remove .25mm material from the edge of this material using cutter compensation.

Compensation appears to be ignored, and the first cut winds up being .25mm + the radius of the tool.

Any help greatly appreciated!
Thanks,
Swami

----------
(TOOL/MILL,4,0,25,0)
(STOCK/BLOCK,200,25.5,6.35,0,0,0)
(FROM/-5,5,10)

(Setup)
G90 G21
G00 G90 X-5 Y5

(SmallPocket Entry Move)
G00 G42 Y0 X0 Z-1 D4

(What is supposed to be a .25mm cut)
G01 Y.25 F200
X46

M30
%
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 09-28-2004, 05:34 PM
*Registered*
 
Join Date: Apr 2004
Location: Norway
Posts: 678
ESjaavik is on a distinguished road

And that is to be expected isn't it?
G-code is new to me too, and tool comp is one of the more difficult things.
But you have to start the tool comp on a lead in move, that will follow a different path for differing tool sizes, so it should be done through material that does not belong to your part. It might be explained as a move starting with the center of the tool at the programmed line, and ending up with the cutter to the right (G42) of the end of your line by half a cutter diameter. And the cutter edge will have passed the tangent to the endpoint of the line by half a cutter diameter. The path should continue straight ahead or to the left, or your program will *****. This is because you told it to gauge into your part. So much I believe I got right. but the not so easy part is how to do this. Especially approaching the inside of a circular pocket.

Anyone care to explain this in an easily understood way?
Or to correct me if I'm wrong in what I wrote?
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 09-28-2004, 05:54 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,714
Al_The_Man is on a distinguished road
Buy me a Beer?

The first move in a G41 G42 should be an initial move to pick up the Offset and should not be part of the machining process, the move should be greater that the radius of the tool. The plane (X,Y) G17 is usually implied, and does not have to be stated. Older controls required a I or J value to indicate the axis offset direction of the first cut. It look like in your case the offset is not being picked up, do you have the right offset in the D4 value? What is the controller?
Al
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(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

  #4   Ban this user!
Old 09-28-2004, 06:01 PM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road

Im just trying to get CutViewer to show this for now, but I use Mach2.
I originally thought D4 would be diameter of 4, but now I think it might mean "refer to tool 4" However, I have switched to D1 (with a defined 4mm tool), but still have the same problem.

Mach2 finds some wild orbits to try to get in there, but then there are plenty of errors about concave corners.

If someone could correct the script above, I think I could figure it out.

Thanks!
Swami
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 09-28-2004, 06:13 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,714
Al_The_Man is on a distinguished road
Buy me a Beer?

Yes the D is usually a Diameter register where the diameter value is stored.
So your first move should be at least 2mm which it look like it is, did you try doing the Z move on a separate line before or after? see if that makes a difference.
Al
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(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

Sponsored Links
  #6   Ban this user!
Old 09-28-2004, 06:15 PM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road

Yes I did try putting the Zmove on the next line. No better...
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 09-28-2004, 06:20 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,570
ger21 is on a distinguished road
Buy me a Beer?

In Mach2, all inside corners less than 90° need to have a radius if using G41-G42. The radius should be a little bigger than the tools radius.

Try something like this

G00 G90 X-5 Y5
G00 X-1 Y1
G42
G01 Y0 X0 Z-1 D4 (comp should occur during this move)
G01 Y.25 F200
G01 X46
G40
G00 xxxx (Exit move to remove comp)

Not sure how the D works in Mach2, though.
__________________
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)
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 09-28-2004, 06:23 PM
High Seas's Avatar
Gold Member
 
Join Date: Sep 2003
Location: Malaysia/Australia/NZ/USA
Age: 62
Posts: 1,124
High Seas is on a distinguished road

I've been trying to figure this out too, so I tried the following:
I used the wizzard in MACH2 to work this out - - maybe this will help - I hope so. There is a difference in left/right compensation tooMight check that as a possible problem. The file is supposed to cut a circle with diameter of 10 inches, with a 0.25 tool with compensation. Haven't tried it other that a few sims in MACH2.


G0 G49 G40 G17 G80 G50 G90
M6 T0(TOOL DIA. 0.25)
G20 (Inch)
M04 S0
G64 (Constant Velocity Mode)
G00 G43 H0 Z0.1 (G43 apply tool offset LENGTH)
X4.7125 Y0.14375 (a location that includes the offset ~ I guess)
G01 G42 P0.125 X4.85625 F15 (G42 gioves the radius compensation for the 0.25 tool)
G01 Z-0.9000 F30
G02 X5 Y0 R0.14375 F15
G02 X-5 Y0 R5
X5 Y0 R5
G02 X4.85625 Y-0.14375 R0.14375
G40 (turns off compensation)
G00 Z0.1
M5 M9
M30
(end of file )
Cheers - Jim
__________________
Experience is the BEST Teacher. Is that why it usually arrives in a shower of sparks, flash of light, loud bang, a cloud of smoke, AND -- a BILL to pay? You usually get it -- just after you need it.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 09-28-2004, 06:27 PM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road

Originally Posted by ger21
In Mach2, all inside corners less than 90° need to have a radius if using G41-G42. The radius should be a little bigger than the tools radius.

Try something like this
The code ran, but the DRO showed that a cut happened at Y=0.25. Shouldn't the DRO show the compensated value of Y?

Thanks,
Swami
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-28-2004, 06:48 PM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road

I am still very shaky on this, but I got my one example to work like this:

G90 G17 G21
(Start on the "left side" of the path)
G00 G90 X-5 Y5
(Entry Move)
G00 G42 Y.25 X0 D1
X46
M30

Now I just have to see if I can figure out how to get started on my REAL part, lol.
Thanks!
Swami
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-28-2004, 06:53 PM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road

Man this is nuts. I swear that code just worked, although now it is not working
Tweet this Post!Share on Facebook
Reply With Quote

  #12  
Old 09-28-2004, 08:30 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,570
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Swami
The code ran, but the DRO showed that a cut happened at Y=0.25. Shouldn't the DRO show the compensated value of Y?

Thanks,
Swami
It probably should, but probably doesn't ( I haven't actually used Mach2, but I do read all the Yahoo messages)
__________________
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)
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backlash Compensation utengineer04 General Metalwork Discussion 5 04-26-2005 12:42 PM
Radius compensation in Mach2? MrBean General CAM Discussion 3 03-19-2005 08:49 AM
Any Info On Tool Diameter Compensation? FLUTE HEAD TurboCNC 13 10-26-2004 06:02 PM
Ballscrew or Backlash Compensation? RXTurbo General Metal Working Machines 14 08-05-2004 06:47 PM




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