Path: how the OpFinalDepth variable is calculated?

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
nicokid
Posts: 30
Joined: Tue Oct 27, 2015 9:15 pm
Location: Verona, Italy

Path: how the OpFinalDepth variable is calculated?

Post by nicokid »

Hi all,
I still don't understand how the OpFinalDepth variable is calculated.
It seems to be set on the highest point of the surface. For example if I have a 4.5 mm high plate and create a profile (i.e. I want to make a through hole) OpFinalDepth is set to 4.5 mm.

Am I doing something wrong? Do I always have to change it by hand? What is the correct way?

Thanks.
Nicola.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path: how the OpFinalDepth variable is calculated?

Post by chrisb »

Perhaps you are milling from behind? Positive Z points upward in the direction of the mill.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
nicokid
Posts: 30
Joined: Tue Oct 27, 2015 9:15 pm
Location: Verona, Italy

Re: Path: how the OpFinalDepth variable is calculated?

Post by nicokid »

Yes, the Z axis is positive in the direction of the spindle.
Pockets go in the correct direction. :?:

Thanks.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path: how the OpFinalDepth variable is calculated?

Post by chrisb »

If you have selected Profile from Face on the top face then the profile works just down to this face. If you want it to profile to the bottom, select something from the bottom, be it a path or a face.
For further studies you may upload your file.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
nicokid
Posts: 30
Joined: Tue Oct 27, 2015 9:15 pm
Location: Verona, Italy

Re: Path: how the OpFinalDepth variable is calculated?

Post by nicokid »

Hooray!
I rotated my plate upside down and selected the holes from below. :)
test_freecad.FCStd
Arduino plate
(43.26 KiB) Downloaded 24 times
Ok maybe it was logical to select the objects below, but unfortunately I had not yet reached it :lol:

Many thanks chrisb

Nicola.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path: how the OpFinalDepth variable is calculated?

Post by chrisb »

You're welcome. I am a bit surprised about the zigzag rapid moves between the holes. The space between SafeHeight and ClearanceHeight should be kept free of horizontal moves to allow clamping.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
nicokid
Posts: 30
Joined: Tue Oct 27, 2015 9:15 pm
Location: Verona, Italy

Re: Path: how the OpFinalDepth variable is calculated?

Post by nicokid »

Yes you are right. SafeHeight and ClearanceHeight are very low.
I do it to speed up milling. My cnc Stepcraft 840 is not so fast on the Z axis. to prevent the impacts of the tool I clamp the workpiece on the outer edge.

Nicola.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path: how the OpFinalDepth variable is calculated?

Post by chrisb »

No, it's not your partameters I'm talking about. It may be an error in the Path workbench. I think the rapid moves should go straight at safe height.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
onekk
Veteran
Posts: 6208
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Path: how the OpFinalDepth variable is calculated?

Post by onekk »

Me too, in CNC work usually Positive means UP, and Negative Down, inverting the logic is confusing.

Aat least in the usual conventions tha seems to be used also in FreeCAD:

https://wiki.freecadweb.org/Template:Depths/Heights

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path: how the OpFinalDepth variable is calculated?

Post by chrisb »

onekk wrote: Tue Apr 07, 2020 1:35 pm Me too, in CNC work usually Positive means UP, and Negative Down, inverting the logic is confusing.
There is nothing inverted. If you have a model with the upper surface at z=0 you mill down into the material by going e.g. to z=-10, which is negative.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply