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 > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-21-2008, 02:29 PM
 
Join Date: Jan 2007
Location: Slovenia
Posts: 71
visky is on a distinguished road
Radius compensation error messages

I am having problems with radius comp. G41 .
Watch this program and tell me where is a problem.
I am running EMC 2.2.5
Attached Files
File Type: txt kvadrat.txt‎ (114 Bytes, 112 views)
Reply With Quote

  #2  
Old 05-21-2008, 04:20 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

You need to call the workshift G54 (or whatever).

You'd need a callout for the length compensation, for example
G43 H4 for your length offset.

You'd need a clearance plane (in Z) for the tool to approach the start point.

You'd need to call G41 D4 for the tool radius compensation register, and ensure that you actually have the tool radius entered in that register.
__________________
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

  #3   Ban this user!
Old 05-23-2008, 02:24 PM
 
Join Date: Jan 2007
Location: Slovenia
Posts: 71
visky is on a distinguished road

I tried this but doesnt help.
I am fighting with concave corner and cutter gouging error codes.
If i left tool diameter 0.00 it works ,but when i change it 0.02 inch i get concave corner error message.
tool diameter shuld be 0.023 inch or 0.6mm

I will give nc code ( it is PCB milling code )

Tell me if i have a change to mill this board with cutter compensation or not
Attached Files
File Type: txt analog2.txt‎ (160.3 KB, 108 views)
Reply With Quote

  #4   Ban this user!
Old 05-23-2008, 04:47 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Originally Posted by visky View Post
I tried this but doesnt help.
I am fighting with concave corner and cutter gouging error codes.
If i left tool diameter 0.00 it works ,but when i change it 0.02 inch i get concave corner error message.
tool diameter shuld be 0.023 inch or 0.6mm

I will give nc code ( it is PCB milling code )

Tell me if i have a change to mill this board with cutter compensation or not
You cant use cutter radius compensation to cut to the inside of any concave corner (angle between 0 and 180 degrees). You have to convert a corner to a radius greater than the radius of the milling cutter.

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #5   Ban this user!
Old 05-23-2008, 04:59 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Originally Posted by visky View Post
I am having problems with radius comp. G41 .
Watch this program and tell me where is a problem.
I am running EMC 2.2.5
Here is your original file modified to work with cutter compensation (outside rather than inside). At least this will give you an example of changing a concave corner to a radius.
Attached Files
File Type: txt kvadrat.txt‎ (348 Bytes, 75 views)
__________________
http://www.alansmachineworks.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-23-2008, 06:05 PM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Originally Posted by acondit View Post
You cant use cutter radius compensation to cut to the inside of any concave corner (angle between 0 and 180 degrees). You have to convert a corner to a radius greater than the radius of the milling cutter.

Alan
And I really wish they would consider that the bug that it is.
Every modern control I have programmed for will do it if the parameters are set correctly which is generally the default settings.

It really makes writing macro type pocketing programs difficult, you have no idea what size end mill the user is going to use. So you need to have the tool radius/dia. as a parameter passed in to the macro, which means the user needs to enter that data in two locations (EMC also does not make the tool table data available to macros) or just not use the rad comp and do it all in the macro, which means lots of trig calculations in the macro.
Reply With Quote

  #7  
Old 05-23-2008, 06:38 PM
Gold Member
 
Join Date: Dec 2004
Location: Newtown, CT, USA
Age: 68
Posts: 517
lerman is on a distinguished road

Originally Posted by Andre' B View Post
And I really wish they would consider that the bug that it is.
Every modern control I have programmed for will do it if the parameters are set correctly which is generally the default settings.

It really makes writing macro type pocketing programs difficult, you have no idea what size end mill the user is going to use. So you need to have the tool radius/dia. as a parameter passed in to the macro, which means the user needs to enter that data in two locations (EMC also does not make the tool table data available to macros) or just not use the rad comp and do it all in the macro, which means lots of trig calculations in the macro.
No... When you design a part, you need to specify the maximum radius of the internal corner. Write the macro to match that specification. Then use a cutter of that radius or smaller. If you try to cut it with a larger radius tool, you should get an error. You don't need to change the macro when you change the tool size.

When you specify a part with a zero internal radius, you can't cut it unless you have a tool of zero radius. That's what is happening here.
__________________
Kenneth Lerman
55 Main Street
Newtown, CT 06470
Reply With Quote

  #8   Ban this user!
Old 05-24-2008, 10:22 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Originally Posted by lerman View Post
No... When you design a part, you need to specify the maximum radius of the internal corner. Write the macro to match that specification. Then use a cutter of that radius or smaller. If you try to cut it with a larger radius tool, you should get an error. You don't need to change the macro when you change the tool size.

When you specify a part with a zero internal radius, you can't cut it unless you have a tool of zero radius. That's what is happening here.
Then you should go tell the little guys of control manufacturers like Fanuc, Mitsubishi, etc. that they have all been doing it wrong for the last few decades. And that programs running on controls all over the world are just all wrong.
Here is a Mit M300V Manual relavant stuff starts about page 112 of the PDF, page 100 of the scanned book.
Reply With Quote

  #9  
Old 05-24-2008, 10:41 AM
Gold Member
 
Join Date: Dec 2004
Location: Newtown, CT, USA
Age: 68
Posts: 517
lerman is on a distinguished road

Originally Posted by Andre' B View Post
Then you should go tell the little guys of control manufacturers like Fanuc, Mitsubishi, etc. that they have all been doing it wrong for the last few decades. And that programs running on controls all over the world are just all wrong.
Here is a Mit M300V Manual relavant stuff starts about page 112 of the PDF, page 100 of the scanned book.
I wouldn't suggest that it is wrong for a controller to support that; but I think it is wrong for a part programmer to depend on it. The whole point of cutter radius compensation is to get produce the same part without caring about the cutter diameter (within some range).

Failing to specify an inside radius defeats the idea of cutter radius compensation.

If I design a part with a sharp inside corner, I expect to get that part; I dont expect to get a part with a .250 or .240 internal radius depending on how many times the cutter had been resharpened.

If you are manually programming parts, I can understand that using this feature can save you time. Nowadays, though, the part should be drawn with a CAD program and the gcode generated automatically.

Ken
__________________
Kenneth Lerman
55 Main Street
Newtown, CT 06470
Reply With Quote

  #10   Ban this user!
Old 05-24-2008, 11:51 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

It is not the part design process as much as the machining process. I do lots of family part programs with lots of subs and macros. So that the machine operator can stand at the machine and grab a shop order punch a few numbers into the calling program run the 1 or 2 parts (with maybe a 2 or 3 minute cycle time) to fill the order, rinse and repeat. No time for messing with CAM software and loading new G-Code to the machine for each order. Once and a while a big order for 10 or 20 parts may come thru.

EMC or any control should be as flexible as possible and should not be a limitation on how a part is designed, or machined.

Say you do a lot of rectangular pockets. Most of the time radius on an internal corner is not that big of a deal and the CAD driver realizes he/she is going to get whatever radius in on the tool used, at most he/she may put a min and/or max rad callout on the drawing.
So you write a macro and put it in a sub program which is always in the machine and can be called by any program. You want the corner radius to be whatever the rad is on the end mill the operator/setup person picks. For one part they may be using a 0.050" diameter end mill and the next it may be a 1" diameter. There is no way to know at the time you are writing the macro in the sub. And it defeats the purpose of using subs if you have to edit it every time you use it.
If there was a way to get the tool radius from the tool table (like you can on any main stream control, #[13000+2] gives me the radius of tool 2 on the Daewoo sitting 100' from me) then the corner rads could be built into the macro, some small % larger then the tool.

The only way I know to do it will EMC is to require the operator to enter the tool radius in the tool table AND the same number into the program as a parameter being passed to the sub. A procedure which leads to errors by the operator.
So with EMC I would end up skipping the tool table and tool table and the G41/42 and just do the rad comp in the macro which on a complex tool path can make for a lot of extra trig calculations in the macro.


Related issue, this code will run on any mill control I have run or programmed, but last time I checked EMC would error and I never found a way to make it work.
A useful bit of program to keep in a control for carving out vice jaws.
Code:
#100=5.0
#101=-1.0
()
G0 X0 Y0
G0 Z1.0
G0 Z0.1
G1 Z#101 F50.0
G1G41 X#100 D1.0 F10.0
G3 I-#100 F20.0
G1G40 X0 F50.0
G0 Z1.0
Got to go, back on Tuesday.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-24-2008, 11:54 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

The emc group is working on this... (so you don't have to draw the original file 'correctly') It is not done yet and help is appreciated


or extreme
Reply With Quote

  #12  
Old 05-24-2008, 12:04 PM
Gold Member
 
Join Date: Dec 2004
Location: Newtown, CT, USA
Age: 68
Posts: 517
lerman is on a distinguished road

Andre,

I appreciate your thoughtful response and now understand the problem a little better. As far as your sample program is concerned, I haven't actually tried it, but this seems to be a problem

G3 I-#100 F20.0

After an "I", you must have either a number or an expression. Change that to:
G3 I[0-#100] F20.0

Have a great holiday.

Ken
__________________
Kenneth Lerman
55 Main Street
Newtown, CT 06470
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
Error messages. How do you deal with 'em? lamed Controller & Computer Solutions 1 04-01-2008 09:51 PM
error messages sqatch Dolphin CADCAM 2 12-11-2007 05:05 PM
Radius compensation? cncuser1 Mastercam 7 10-18-2007 07:54 PM
Error Messages and Information Jim Estes BobCad-Cam 12 02-22-2007 03:40 PM
Radius compensation in Mach3 kayakman Mach Mill 20 12-06-2006 10:43 AM




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