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 > Dolphin CADCAM


Dolphin CADCAM Discuss Dolphin CAD/CAM software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-19-2007, 08:08 PM
 
Join Date: Mar 2007
Location: usa
Posts: 6
ppsi is on a distinguished road
complex 3d milling

I am trying to machine molds with complex 3d surfaces (generated in Solidworks). Dolphin 3d generates some nice looking toolpaths, they load into Mach3 without a hitch, and I can scroll through the g-code and watch the toolpath (which appears to be correct) on the Mach display. The part cuts beautifully for 10,000+ lines until it randomly makes a catastrophic z move and eats itself. I can't find the problem line in the code or by scrolling through the toolpath in mach, but it is wrecking the part before I can e-stop. Any ideas what I should look for? Is anyone using Dolphin 3d to produce complex geometry? HELP!!!
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 11-19-2007, 09:20 PM
Khalid's Avatar  
Join Date: Apr 2006
Location: Pakistan
Age: 32
Posts: 2,786
Khalid is on a distinguished road
check on any other simulation program
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 11-20-2007, 08:41 PM
metalworkz's Avatar  
Join Date: Oct 2006
Location: Modesto, CA U.S.A.
Posts: 883
metalworkz is on a distinguished road
Hi,
Can you do a search of the Z's in notepad and check the depth of each Z? If you are aware of the approximate depth when the tool crashes you might be able to look for dimensions that are deeper than the known problem depth? Is it possible that the X and-or Y made an incorrect move and caused the tool to cut into the part in the wrong direction? I think the suggestion from Khalid about running the program in another simulator may be a good way to find the problem. Do you have a simulator to run it on? Maybe you can step through the program in Mach near the part where you are having a problem and you will be able to see the problem line of code? Sorry, I hope someone with better ideas gives you a reply.
Regards,
__________________
Regards,
Wes
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 11-21-2007, 04:14 AM
S4 Monster's Avatar
*Registered*
 
Join Date: Jan 2004
Location: England
Posts: 89
S4 Monster is on a distinguished road
Can you repeat the fault or is it a random fault?
If it's a random fault then I would suspect a machine / controller fault.
If you can repeat the fault, then I would suggest running the program (without the component loaded) and press feed hold (cycle stop?) when the fault occurs, this should give you an idea of where to start looking in the G-code program, it's going to be before the line that you have stopped on.
If it's difficult to stop it at the right position, then try turning the feedrate down as it gets closer to the problem position.
Alternatively, if you can get some soft material (e.g. Tancast), run the program cutting this material, you can then rerun the program and you will have a visual indication of when the problem is going to occur.

Failing that, as the previous posters have suggested, try some simulation software to track down the fault.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 11-21-2007, 08:26 AM
 
Join Date: Mar 2007
Location: usa
Posts: 6
ppsi is on a distinguished road
Thanks for the responses - I have a pretty good idea where in the code the problem comes from - I ran through it yesterday cutting air one line at a time and didn't see a rogue z move that would have caused the hole in the part. This would support the machine / controller fault. The strange thing is that I had run variations of this program in wood to get the settings right and had a similar fault in the same spot. I changed a bunch of settings after the first fault (speeds, feeds, strategy) and still see a fault in the same area of the part. I am now wondering if the source iges file is causing the problem (the iges file is about the only thing I didn't change between iterations).

My family tells me there is a holiday this week, and won't let me near the cellar for the next few days - I guess I'm not going to be allowed to resolve this until next week....
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 11-21-2007, 08:39 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road
It sounds like a DNC error, except that you're probably not running this in DNC mode.

I've seen instances myself, where large gcode programs are written to disk with an incorrect character, specifically a carriage return character is substituted for a line feed character. You cannot see these characters in an ordinary text editor, but they exist at the end of every line of text.

The result of this is two lines of code written together as one long command line.

Normally, the machine halts with an error because it cannot interpret such a line correctly, but I don't know if Mach reacts that way, or whether it does something else and keeps on going.

Anyways, some text editors will show you this condition, in that, as you scroll through the code, you will suddenly see two lines run together. Other editors 'autofix' this when the file is sent to the display for you, making the error impossible to see.

I use a hex editor to scan for this type of error, yes the very first one that comes up on Google Its a dandy little tool: Freeware Hex editor XVI32

The search method is to use 'find' to look for a string written in hex as this:
0D 0D

That string is the illegal string, and should never exist because it consists of two carriage returns. All the legitimate lines of text will end with:
0D 0A
which is carriage return and line feed.

So try searching your gcode file using the hex editor for the 0D 0D combination. If you find a few instances, don't be surprised. You can heal them all with search and replace in the hex editor.

BTW, this same error often occurs on large files transferred to a floppy disk. I'd hardly call this a random error, because of the precision of the mistake (it could be any of 255 other characters if it were actually random) so I think it is something to do with Windows interacting with certain hardware.
__________________
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)
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 11-21-2007, 06:53 PM
S4 Monster's Avatar
*Registered*
 
Join Date: Jan 2004
Location: England
Posts: 89
S4 Monster is on a distinguished road
Hu, that's very interesting........I remember a few years ago trying to track down a spurious error which was occurring for a customer using a well know CNC control (no names mentioned), the machine would bomb out when it got to a particular line of the code.
I checked the code in a windows based text editor and everything looked fine. Every time we ran it on the machine (DOS based control), we got the same problem. I deleted and rewrote the line in the same text editor, sent that to the machine and it ran perfectly.......
The only thing that I could put it down to was something to do with the windows text formatting........weird. Do you think that your hex editor idea could have been used to solve that?

Anyway, ppsi, have you tried taking a very close look at the cutter path in Dolphin 3D? Try zooming in on the 'problem' area, and turn off the model and workpiece visibility (only the toolpath remains), and see if you can spot something.......
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 11-21-2007, 08:20 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road
S4,
I wouldn't doubt that the double carriage return error has existed for a long time. I've never seen it happen in a smaller file, I have no idea where the cutoff point is in file size.

At the time I discovered it, I was running DNC using a cnc editor from Millwrite, and lo and behold, when the machine stopped, I ran over and looked at the line it had stopped on, had a WTF moment, and then did some research

Then, some time after I upgraded to a Haas, I noticed this problem again with file transfers from a floppy. The graphics check on the Haas would stop at the bad line, and would also show the error exactly as it was, two lines on one line. Incredible as it might seem, examining the file on the hard drive showed no errors, but the mere copying of the file to a floppy disk introduced the error. I was only too glad to switch to RS232 for file transfers, as this totally bypassed this spurious error on floppies.
__________________
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)
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
3D milling with TNC-155 praest General Metal Working Machines 2 10-01-2007 03:01 AM
Help Modeling a Part w/ Complex angles nlh Alibre Design 14 09-20-2007 05:31 PM
Complex sign design maxxgraphix G-Code Programing 4 03-25-2005 09:34 PM
complex patterns drc General CAM Discussion 7 09-22-2003 06:13 AM




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