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 > Mach Software (ArtSoft software) > Screen Layouts, Post Processors & Misc



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-08-2010, 09:49 PM
 
Join Date: Aug 2007
Location: New Zealand
Posts: 42
jrslick22 is on a distinguished road
Why does my Gcode not work? Bobcad to Mach3

Can someone please help me figure out what is going on with my Gcode, when i run a simulation under bobcad it looks perfect, when i import the code into Mach3 it looks mental. (the not blue part)
I'm thinking it has to be my post processor.



GCODE:

%
O1(LID)
G17 G90 G40 G80 G54
G00 Z1.
X4.5158 Y2.5119
G01 Z-1.4286 F100.
G02 X2.5158 Y4.5119 I0. J2. F600. G41
G01 Y48.5119
G02 X4.5158 Y50.5119 I2. J0.
G01 X36.5158
G02 X38.5158 Y48.5119 I0. J-2.
G01 Y4.5119
G02 X36.5158 Y2.5119 I-2. J0.
G01 X4.5158 G40
Z-2.8571 F100.
G02 X2.5158 Y4.5119 I0. J2. F600. G41
G01 Y48.5119
G02 X4.5158 Y50.5119 I2. J0.
G01 X36.5158
G02 X38.5158 Y48.5119 I0. J-2.
G01 Y4.5119
G02 X36.5158 Y2.5119 I-2. J0.
G01 X4.5158 G40
Z-4.2857 F100.
G02 X2.5158 Y4.5119 I0. J2. F600. G41
G01 Y48.5119
G02 X4.5158 Y50.5119 I2. J0.
G01 X36.5158
G02 X38.5158 Y48.5119 I0. J-2.
G01 Y4.5119
G02 X36.5158 Y2.5119 I-2. J0.
G01 X4.5158 G40
Z-5.7143 F100.
G02 X2.5158 Y4.5119 I0. J2. F600. G41
G01 Y48.5119
G02 X4.5158 Y50.5119 I2. J0.
G01 X36.5158
G02 X38.5158 Y48.5119 I0. J-2.
G01 Y4.5119
G02 X36.5158 Y2.5119 I-2. J0.
G01 X4.5158 G40
Z-7.1429 F100.
G02 X2.5158 Y4.5119 I0. J2. F600. G41
G01 Y48.5119
G02 X4.5158 Y50.5119 I2. J0.
G01 X36.5158
G02 X38.5158 Y48.5119 I0. J-2.
G01 Y4.5119
G02 X36.5158 Y2.5119 I-2. J0.
G01 X4.5158 G40
Z-8.5714 F100.
G02 X2.5158 Y4.5119 I0. J2. F600. G41
G01 Y48.5119
G02 X4.5158 Y50.5119 I2. J0.
G01 X36.5158
G02 X38.5158 Y48.5119 I0. J-2.
G01 Y4.5119
G02 X36.5158 Y2.5119 I-2. J0.
G01 X4.5158 G40
Z-10. F100.
G02 X2.5158 Y4.5119 I0. J2. F600. G41
G01 Y48.5119
G02 X4.5158 Y50.5119 I2. J0.
G01 X36.5158
G02 X38.5158 Y48.5119 I0. J-2.
G01 Y4.5119
G02 X36.5158 Y2.5119 I-2. J0.
G01 X4.5158 G40
G00 Z1.


Please help.

Last edited by jrslick22; 03-08-2010 at 10:20 PM. Reason: img linking
Reply With Quote

  #2   Ban this user!
Old 03-08-2010, 10:58 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

My version of Mach (v3.042.029) actually renders the toolpath a little differently. I'm just seeing the blue and white and not the extra purple arcs. NCPlot does not show the odd white and purple arcs at all. (BTW, NCPlot is a nice program to have installed, just to do a sanity check on your code when these things happen.)

If you single step through the code in Mach, it looks perfect. The correct movements are highlighted and I don't see any funny business. The odd stuff looks like it might should on the last straight (G01) line movement before the next downward Z movement.

Those G01 moves have a G40 (cutter compensation off) at the end. I don't use cutter comp, so I don't know what Mach expects. I see G41 (cutter comp on) but I don't see any values indicating how much to offset for the cutter diameter.

If you comment out the G40 codes (just use ;G40) then Mach renders everything ok. My guess it you are using a bad post processor or something is funny with the way Mach is setup to handle cutter comp.

What happens if you try and run the code? No cutting, just set a safe Z height and run the code.

Steve
Reply With Quote

  #3  
Old 03-08-2010, 11:04 PM
dertsap's Avatar
Gold Member
 
Join Date: Oct 2005
Location: canada
Posts: 3,668
dertsap is on a distinguished road
Buy me a Beer?

you can't apply cutter comp in an arc move
use a right angle lead in
__________________
A poet knows no boundary yet he is bound to the boundaries of ones own mind !! http://cnctoybox.org
Reply With Quote

  #4   Ban this user!
Old 03-08-2010, 11:11 PM
 
Join Date: Aug 2007
Location: New Zealand
Posts: 42
jrslick22 is on a distinguished road

Originally Posted by stevespo View Post
My version of Mach (v3.042.029) actually renders the toolpath a little differently. I'm just seeing the blue and white and not the extra purple arcs. NCPlot does not show the odd white and purple arcs at all. (BTW, NCPlot is a nice program to have installed, just to do a sanity check on your code when these things happen.)

If you single step through the code in Mach, it looks perfect. The correct movements are highlighted and I don't see any funny business. The odd stuff looks like it might should on the last straight (G01) line movement before the next downward Z movement.

Those G01 moves have a G40 (cutter compensation off) at the end. I don't use cutter comp, so I don't know what Mach expects. I see G41 (cutter comp on) but I don't see any values indicating how much to offset for the cutter diameter.

If you comment out the G40 codes (just use ;G40) then Mach renders everything ok. My guess it you are using a bad post processor or something is funny with the way Mach is setup to handle cutter comp.

What happens if you try and run the code? No cutting, just set a safe Z height and run the code.

Steve
Im using the Post called Mach of the artsoft website along with the scrips that are also provided as part of the download. is there a newer ver. than this?
machine is at the workshop so i can try cutting at safe Z. but i can say that the mach on the mill also shows the funny business.

Ideas
Reply With Quote

  #5   Ban this user!
Old 03-08-2010, 11:38 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Post your .bbcd file and I'll try and take a look at it tomorrow.

Like I said, I don't use cutter comp, but dertsap says you can't use G41 on an arc and I believe him. Change your lead in and see if that improves anything.

Also, are you sure you're using the Mach3-Router.MillPst post processor? I don't remember what the installation process was, but it should be visible in your CAM tree.

Steve
Reply With Quote

Sponsored Links
  #6  
Old 03-09-2010, 12:15 AM
dertsap's Avatar
Gold Member
 
Join Date: Oct 2005
Location: canada
Posts: 3,668
dertsap is on a distinguished road
Buy me a Beer?

1 problem that I've noticed with bobcad is that when g 41 or g42 is used it will program to the center of the tool , so you will need to add the d comp into your tool offsets manually or you can add a g10 to your code so that the program will put the compensation in there for you , other than that you will have undersized parts .
__________________
A poet knows no boundary yet he is bound to the boundaries of ones own mind !! http://cnctoybox.org
Reply With Quote

  #7   Ban this user!
Old 03-09-2010, 12:23 AM
CNCRim's Avatar  
Join Date: Feb 2006
Location: usa
Posts: 947
CNCRim is on a distinguished road

don't see anything wrong with your program...... my backplot is fine, I think Mach itself have trouble. Check the Mach setting, that's all I can see is wrong.
__________________
The best way to learn is trial error.
Reply With Quote

  #8  
Old 03-09-2010, 12:31 AM
dertsap's Avatar
Gold Member
 
Join Date: Oct 2005
Location: canada
Posts: 3,668
dertsap is on a distinguished road
Buy me a Beer?

mach is fine , i put the code into my mach and had the same reaction , removed the g41 and all is good
the problem is the d comp on an arc
__________________
A poet knows no boundary yet he is bound to the boundaries of ones own mind !! http://cnctoybox.org
Reply With Quote

  #9   Ban this user!
Old 03-09-2010, 12:49 AM
 
Join Date: Mar 2010
Location: China
Posts: 22
PEsystem is on a distinguished road

do not suggest use PC to control machine. PC can do many good jobs but that is also its weakness. suggest use a professional controller like DSP or Syntec(with screen)
Reply With Quote

  #10   Ban this user!
Old 03-09-2010, 01:00 AM
 
Join Date: Aug 2007
Location: New Zealand
Posts: 42
jrslick22 is on a distinguished road

The reason i suggested it was the post.p was because my mill has and does run perfectly.
Mach in my opinion is a great product, the PC its running has also been problem free and versatile. will DSP or Syntec play Movies or MP3's while its running a job?

Of course finding the solution to this problem may change all this.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-09-2010, 01:08 AM
 
Join Date: Aug 2007
Location: New Zealand
Posts: 42
jrslick22 is on a distinguished road

I found this post http://www.machsupport.com/forum/ind...ic,3820.0.html and have recreated the code using it, so far i have not produced the junk.

I would have thought that a decent post for Bobcad and Mach3 would have been really easy to find, the artsoft website only had an old Mach1 post.
Do peapol make there own? what are you other Mach+bobcad guys using.
I use to have a perfect one by Sorin on my old machine but lost it when the HD failed. i have since been on Sorins website to DL the same one but can only seem to find posts for everything except Mach.
Reply With Quote

  #12   Ban this user!
Old 03-09-2010, 09:33 AM
 
Join Date: Dec 2008
Location: canada
Posts: 226
Pandinus is on a distinguished road

Hi there,
One thing is the I J commands are incremental in your code, but your machine in in absolute, you could try adding a g91.1 for incremental IJ to the file right after the g90. then its correct every time you run the file, but if you also do stuff in IJ absolute add a g90.1 to the other files...
Second the white lines are something to do with cutter compensation. It is showing a weird curve because the CC is turned off for the z move then back on again. Third, I did a couple of experiments with the CC and found that unless I specified the tool# on the g41 line the CC did not make an offset.

So
G41 P1
Would be cutter comp. keep left, using the diameter(radius?) of tool #1 in the tool table.
Last the cutter comp needs some sort of lead in to get the tool in the correct position for cutting. the easiest might be just to start above your work and do an extra thickness cut in "AIR" but on more complex parts that might become an issue.

If your software will do it, I suggest you let the CAM do the cutter compensation for the tool and not the controller.
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
Need Help!- Can Bobcad be coaxed into making gcode for a 4 axis hot wire machine? seanreit BobCad-Cam 14 06-03-2010 03:56 AM
Conditional gcode execution in Mach3 bobeson Tormach PCNC 5 12-13-2009 08:39 PM
Condition gcode execution is possible in Mach3 bobeson G-Code Programing 2 12-05-2009 01:20 PM
Radius problems when generating gcode from bobcad for mach3... ? scyan BobCad-Cam 7 12-14-2006 12:33 PM
Shoptask CNC Lathe and Mach3: Gcode delima KaptainKarst Shopmaster/Shoptask 20 08-05-2006 05:55 PM




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