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 > Mastercam


Mastercam Discuss Mastercam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-09-2009, 11:41 AM
 
Join Date: May 2009
Location: usa
Posts: 5
chipcrazy is on a distinguished road
MX3 G code

hello everybody,I have a question about how can you change the way mastercam generate the g code for circular motion G2 And G3 I have been getting the code broken in two sections of 180 degree and thou there is nothing wrong with the final result, in this case is my boss who just does not like it that way since he is the one who actually does the set up I need to learn how to change this

G41 D3 X-.0262
G3 X.0262 R.0262
X-.0262 R.0262
G1 G40 X0.

to only one line for the 360 arc

G1 Z-.1667 F5.
G41 D3 X-.0262
G3 X.-0262 R.0262
G1 G40 X0.
Z-.3333

thank you for your help.
Reply With Quote

  #2   Ban this user!
Old 05-09-2009, 09:09 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

We agree that ther is nothing wrong with this code
Code:
G41 D3 X-.0262
G3 X.0262 R.0262
X-.0262 R.0262
G1 G40 X0.

on some machines, this code is wrong
full arcs require I J output ( sometimes a R- for arcs larger than 180 deg. )
Code:
G1 Z-.1667 F5.
G41 D3 X-.0262
G3 X.-0262 R.0262 ( I.0262 J0. )
G1 G40 X0.
It is in your interest to find out if your machine is capable of doing full arcs at a higher feedrate, breaking it into 2 segments helps to create a more quality job. Having multiple points on a toolpath, the machine will check its positioning before going on to the next block of code.

Let him know, that if it looks a neater code, is not neccessarily correct code
before changing, have him prove that the machine will hold it's accuracy


To allow full arcs, open your Machine Definition file and, under "arcs", turn ON " Allow Full Arcs"
Reply With Quote

  #3  
Old 05-12-2009, 09:20 PM
Mike Mattera's Avatar
Gold Member
 
Join Date: Mar 2006
Location: USA
Posts: 1,010
Mike Mattera is on a distinguished road

Somehow telling the boss to "prove" the benefit may not be the best thing to do if this guy wants to keep his job. The boss says do it. I don't think it's going to make any difference in the machining. Most likely he's concerned about smaller programs that are easier to edit at the machine.

To Change it... Go To....
Settings - Control Def.
Select "Arc" from the left side.
In the dialog on the right, under "Arc Breaks - XY Plane" check....
Allow 360 degree arcs and set Arc Break Point to "Dont Break Arcs".

I wouldn't bother to change it for YZ and ZX arcs. It's probably pretty rare that you ever do them.

That should fix you up.

Mike Mattera
__________________
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com
Reply With Quote

  #4   Ban this user!
Old 05-13-2009, 08:02 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

Originally Posted by Mike Mattera View Post
Somehow telling the boss to "prove" the benefit may not be the best thing to do if this guy wants to keep his job. The boss says do it.
Defining arcs with IJK as opposed to R is a contentious issue.
In this and other forums

Using IJK will give only (1) solution to a radius
Now, using R there can be (2) solutions, some machines have shown that position checking is not maintained thru the entire cut, features tend to be rounded

Yes, R is easier to read, alter and so on, but if you want accuracy IJK is the only way to go.

I have surfaced parts using both, and the IJK outputs leave the other for dead in respect of quality

As I said, let him physically and scientifically "PROVE" that R output will maintain quality on his machine. Do a test, interpolate 2 circles side by side-fast, (1) using R and the other IJ-and break circle into (2). Also do a surfacing test say a wave form ( 1" rads pitched 1" apart, fillet 3/4" and machine with a 1/2" ball ).
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
Newbie- Takeout Unused G Code commands in Mastercams Generated G Code shneek Mastercam 8 12-15-2010 02:32 PM
learning g code or cad-cam code output? slow_rider G-Code Programing 3 02-27-2010 08:48 PM
Need Help!- G-Code viewing source code Hussam Visual Basic 3 03-15-2009 12:15 PM
G-code for beginners - want to learn G-code FPV_GTp G-Code Programing 7 11-17-2008 11:25 PM
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 09:21 PM




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