Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Making Programs Shorter - How To?


Bill H
 Share

Recommended Posts

I use the 2D Dynamic Mill toolpath quite a bit and the G-code output can get crazy long.  In looking at this, I've seen twenty or thirty consecutive lines of code that are only X-axis moves.  Is there a setting or option that would eliminate some of this unnecessary code?  Thanks!

Link to comment
Share on other sites
18 minutes ago, Bill H said:

Filter?  Please explain.

All Toolpaths in Mastercam have a Line/Arc Filter option. 2D Contour, 2D Dynamic, Flowline, Raster, Etc.

This is the page where you set the Total Tolerance, and then break that total tolerance up between the Cut Tolerance (accuracy of the tool position, relative to the geometry)  and the Line/Arc Filter. 

The Line/Arc Filter takes your path, and first applies a Linear Filter, which tries to combine linear moves within the given tolerance. Then, an Arc Filter is applied to the path, using the Tolerance specified in the Operation settings.

There are some radio buttons which control "us max tolerance value for lines and arcs", "bias the Filter toawrds creating only lines", or "bias the Filter to create only arcs".

Set your Total Tolerance to  10-20% of your Stock to Leave value. 

If you are leaving 0.040" Stock for your roughing, for example, I'd use 0.004" Total Tolerance. 

For roughing, I typically use a 50% split for Cut Tolerance and Filter Tolerance. Set the Min Arc Rad to 0.004, and the Max Arc Rad to 40.", with the top radio button option selected. 

Make sure XY, XZ, and YZ checkboxes are enabled. Also, turn on 'create arcs on entry motion' checkbox.

 

 

Link to comment
Share on other sites

I also use Fixed segment length. when using dynamic paths and cutting splines sometimes you can get a series of breaks in a single axis move. this eliminates them quite well.

 Untitled.png.4c57ce2e44d5bb4599db23c7142818e2.png

 
(WITHOUT FIXED SEGMENT LENGTH)
 
N1G17G98G40G49G80G90
N2G0X0.Y7.
N3T1M6
N4S1000M3
N5G0G90G54X-4.2745Y2.4416B0.
N6G43H1Z4.
N7M08
N8Y2.4415Z.1
N9G1Y2.4416Z0.F10.
N10G41D1X-4.2245
N11G2X-3.1005Y2.6916I.5898J0.
N12G1X-2.2949
N13X-1.2949
N14X-.2949
N15X.3784
N16X1.3784
N17X2.3784
N18X3.3784
N19X3.8539

N20G2X5.0489Y2.4416I.5714J-.25
N21G1G40X5.0989
N22G0Y2.4415Z4.
N23Y2.4416
N24M09
N25G0G28G53G49Z0.M19
N26G90X0.Y7.
N27M01
 
 (WITH FIXED SEGMENT LENGTH AT 44.00)
 
N28G17G98G40G49G80G90
N29T1M6
N30S1000M3
N31G0G90G54X-4.2745Y2.4416B0.
N32G43H1Z4.
N33M08
N34Y2.4415Z.1
N35G1Y2.4416Z0.F10.
N36G41D1X-4.2245
N37G2X-3.1005Y2.6916I.5898J0.
N38G1X3.8539
N39G2X5.0489Y2.4416I.5714J-.25
N40G1G40X5.0989
N41G0Y2.4415Z4.
N42Y2.4416
N43M09
N44G0G28G53G49Z0.M19
N45G90X0.Y7.
N46M30
%

Link to comment
Share on other sites
5 hours ago, Colin Gilchrist said:

All Toolpaths in Mastercam have a Line/Arc Filter option. 2D Contour, 2D Dynamic, Flowline, Raster, Etc.

This is the page where you set the Total Tolerance, and then break that total tolerance up between the Cut Tolerance (accuracy of the tool position, relative to the geometry)  and the Line/Arc Filter. 

The Line/Arc Filter takes your path, and first applies a Linear Filter, which tries to combine linear moves within the given tolerance. Then, an Arc Filter is applied to the path, using the Tolerance specified in the Operation settings.

There are some radio buttons which control "us max tolerance value for lines and arcs", "bias the Filter toawrds creating only lines", or "bias the Filter to create only arcs".

Set your Total Tolerance to  10-20% of your Stock to Leave value. 

If you are leaving 0.040" Stock for your roughing, for example, I'd use 0.004" Total Tolerance. 

For roughing, I typically use a 50% split for Cut Tolerance and Filter Tolerance. Set the Min Arc Rad to 0.004, and the Max Arc Rad to 40.", with the top radio button option selected. 

Make sure XY, XZ, and YZ checkboxes are enabled. Also, turn on 'create arcs on entry motion' checkbox.

 

 

One of the best arc filter explanations I've read.  

  • Thanks 1
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...