Creating CNC roughing and finishing passes
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Creating CNC roughing and finishing passes
Hi,
The changes that included the StepOver parameter also made the operation to respect the Finish Depth (edit: or is it Final Depth..? cant check now) Is that set correctly? For me at least, the guess that FreeCAD makes for that by default is often at the surface of the object, which seems to be the case here as well.
The changes that included the StepOver parameter also made the operation to respect the Finish Depth (edit: or is it Final Depth..? cant check now) Is that set correctly? For me at least, the guess that FreeCAD makes for that by default is often at the surface of the object, which seems to be the case here as well.
Re: Creating CNC roughing and finishing passes
I will check that when I get home. The default behavior definitely changed though as I explained it in my previous post...roivai wrote: ↑Thu Aug 30, 2018 5:02 am Hi,
The changes that included the StepOver parameter also made the operation to respect the Finish Depth (edit: or is it Final Depth..? cant check now) Is that set correctly? For me at least, the guess that FreeCAD makes for that by default is often at the surface of the object, which seems to be the case here as well.
Thanks
Re: Creating CNC roughing and finishing passes
Confirmed. Setting the final depth to a lower value (in my case 0) seems to take care of that problem. So I guess the only problem is that the default value for final depth is too high.roivai wrote: ↑Thu Aug 30, 2018 5:02 am Hi,
The changes that included the StepOver parameter also made the operation to respect the Finish Depth (edit: or is it Final Depth..? cant check now) Is that set correctly? For me at least, the guess that FreeCAD makes for that by default is often at the surface of the object, which seems to be the case here as well.
Thanks!
Re: Creating CNC roughing and finishing passes
I was playing some more with the 3D Surface and came across something completely unexpected. I took the outline of the Japanese kanji "Ai" and extruded it up 2mm and fused it with a cube of appropriate size. Here is a picture (disregard the profile lines that go around the perimeter).
Let me know if I can help with better screenshots or something.
Thanks!
At first I thought that it is just odd that the generated"3D Surface" lines above the lower portion of the kanji disappear in some areas and though that it is a matter of rendering but then I looked at the generated file with another program (CAMotics) and here is what I saw:
Basically the path climbs on top of the material and shortly after that plunges back in,Let me know if I can help with better screenshots or something.
Thanks!
Re: Creating CNC roughing and finishing passes
Can you upload the file?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Creating CNC roughing and finishing passes
File was too large with all the paths, so I had to remove them
Here is how to reproduce it:
Create a path job for "Ai Fusion".
Add a 3mm ballnose endmill tool (remove the default tool)
Create 3D surface.
Change Final Depth to 0
Change the Drop cutter from X to Y (so lines are horizontal... or should I say along the X axis)
You will see that path lines disappear in the lower half. Toggle visibility of Ai Fusion to see the lines diving into the material.
At one point I thought that the 3D Surface treats the extrusion as hollow object but notice how the lines stay on above the object in the upper half of the kanji.
Correction: It seems like 3D Surface does treat the extrusion as a hollow object (missing the top surface). The upper half (where the diving does not occur) is probably too narrow and the cutter would crash in the walls if it dives deeper. Any thoughts on what causes that (or rather how to avoid it)?
Thanks!
Here is how to reproduce it:
Create a path job for "Ai Fusion".
Add a 3mm ballnose endmill tool (remove the default tool)
Create 3D surface.
Change Final Depth to 0
Change the Drop cutter from X to Y (so lines are horizontal... or should I say along the X axis)
You will see that path lines disappear in the lower half. Toggle visibility of Ai Fusion to see the lines diving into the material.
At one point I thought that the 3D Surface treats the extrusion as hollow object but notice how the lines stay on above the object in the upper half of the kanji.
Correction: It seems like 3D Surface does treat the extrusion as a hollow object (missing the top surface). The upper half (where the diving does not occur) is probably too narrow and the cutter would crash in the walls if it dives deeper. Any thoughts on what causes that (or rather how to avoid it)?
Thanks!
- Attachments
-
- Aikido3_small.FCStd
- (377.2 KiB) Downloaded 42 times
Re: Creating CNC roughing and finishing passes
I get an error message in report view:
I attach the simplified model with the complete path showing the same issue.
Code: Select all
MEFISTO_2D failed on sub-shape #302 with error 13 "Error in Triangulation (aptrte())"
- Attachments
-
- AiSmall.fcstd
- (248.49 KiB) Downloaded 35 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Creating CNC roughing and finishing passes
I did the following:
- convert the Path4541 to a sketch
- use validate sketch to find missing coincidences
- found 2 of them, let it fix by the tool
- sketch shows errors, open it and remove the redundant constraint. I did not investigate this further, probably some tangency problem.
- pad the sketch, this succeded despite the missing coincidence
- create path as before.
I attach the file containing both variants.
- convert the Path4541 to a sketch
- use validate sketch to find missing coincidences
- found 2 of them, let it fix by the tool
- sketch shows errors, open it and remove the redundant constraint. I did not investigate this further, probably some tangency problem.
- pad the sketch, this succeded despite the missing coincidence
- create path as before.
I attach the file containing both variants.
- Attachments
-
- Bildschirmfoto 2018-09-05 um 09.32.47.png (44.39 KiB) Viewed 1194 times
-
- AiSmall_cb.fcstd
- (488.89 KiB) Downloaded 34 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Creating CNC roughing and finishing passes
Thanks!chrisb wrote: ↑Wed Sep 05, 2018 7:39 am I did the following:
- convert the Path4541 to a sketch
- use validate sketch to find missing coincidences
- found 2 of them, let it fix by the tool
- sketch shows errors, open it and remove the redundant constraint. I did not investigate this further, probably some tangency problem.
- pad the sketch, this succeded despite the missing coincidence
- create path as before.
I attach the file containing both variants.
Re: Creating CNC roughing and finishing passes
I no longer see that problem but... the gcode created by surface path is huge and it is actually very inefficient.
Here is an example: The following section:
G1 X-31.0000 Y15.1064 Z-2.0000 F300.00
G1 X-31.0000 Y16.6170 Z-2.0000 F300.00
G1 X-30.9600 Y16.6170 Z-2.0000 F300.00
G1 X-30.9201 Y16.6170 Z-2.0000 F300.00
G1 X-30.8801 Y16.6170 Z-2.0000 F300.00
G1 X-30.8401 Y16.6170 Z-2.0000 F300.00
G1 X-30.8001 Y16.6170 Z-2.0000 F300.00
G1 X-30.7602 Y16.6170 Z-2.0000 F300.00
G1 X-30.7202 Y16.6170 Z-2.0000 F300.00
G1 X-30.6802 Y16.6170 Z-2.0000 F300.00
G1 X-30.6402 Y16.6170 Z-2.0000 F300.00
G1 X-30.6003 Y16.6170 Z-2.0000 F300.00
G1 X-30.5603 Y16.6170 Z-2.0000 F300.00
G1 X-30.5203 Y16.6170 Z-1.9931 F300.00
Can be replaced with four lines:
G1 X-31.0000 Y15.1064 Z-2.0000 F300.00
G1 X-31.0000 Y16.6170 Z-2.0000 F300.00
G1 X-30.5603 Y16.6170 Z-2.0000 F300.00
G1 X-30.5203 Y16.6170 Z-1.9931 F300.00
That is because all but the first two and last two lines are simply moving in a straight line along the X axis without changing Y or Z
Is there a way to optimize that?
I mean even outside the scope of FreeCAD, is there something that could eliminate redundant gcode lines like the ones in the above example?
Here is an example: The following section:
G1 X-31.0000 Y15.1064 Z-2.0000 F300.00
G1 X-31.0000 Y16.6170 Z-2.0000 F300.00
G1 X-30.9600 Y16.6170 Z-2.0000 F300.00
G1 X-30.9201 Y16.6170 Z-2.0000 F300.00
G1 X-30.8801 Y16.6170 Z-2.0000 F300.00
G1 X-30.8401 Y16.6170 Z-2.0000 F300.00
G1 X-30.8001 Y16.6170 Z-2.0000 F300.00
G1 X-30.7602 Y16.6170 Z-2.0000 F300.00
G1 X-30.7202 Y16.6170 Z-2.0000 F300.00
G1 X-30.6802 Y16.6170 Z-2.0000 F300.00
G1 X-30.6402 Y16.6170 Z-2.0000 F300.00
G1 X-30.6003 Y16.6170 Z-2.0000 F300.00
G1 X-30.5603 Y16.6170 Z-2.0000 F300.00
G1 X-30.5203 Y16.6170 Z-1.9931 F300.00
Can be replaced with four lines:
G1 X-31.0000 Y15.1064 Z-2.0000 F300.00
G1 X-31.0000 Y16.6170 Z-2.0000 F300.00
G1 X-30.5603 Y16.6170 Z-2.0000 F300.00
G1 X-30.5203 Y16.6170 Z-1.9931 F300.00
That is because all but the first two and last two lines are simply moving in a straight line along the X axis without changing Y or Z
Is there a way to optimize that?
I mean even outside the scope of FreeCAD, is there something that could eliminate redundant gcode lines like the ones in the above example?