3D Pocket

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!
Post Reply
lpoole
Posts: 4
Joined: Fri Aug 12, 2022 11:59 pm

3D Pocket

Post by lpoole »

Hi, I am very new to CNC. My wife and I recently purchased a YoraHome 3036 CNC machine with a router module and laser module. I have successfully cut 2D designs using Carbide Create free version. I used the toolbit specifications in Carbide Create to create the tools in FreeCAD (V 0.20). I want to build a box to store my router when my laser module is attached to my CNC machine. Through trial and error, numerous Google searches, viewing FreeCAD wiki documentation, and several YouTube videos, I have been able to design the box for My router. I will have 2 halves hinged like a clamshell. I have successfully create Adaptive and Pocket cuts (I think, at least they look correct). When I create 3D Pockets, they are only on the surface and do not cut into stock in the simulator. Can someone show me where my mistake is? I have attached my FreeCAD file. I have also attached the detailed steps I went through to create the design in FreeCAD. I think I saw somewhere I cannot upload Word documents, so I converted this file to a text file.

Thank you
Attachments
Steps to create router box-2.txt
(6.8 KiB) Downloaded 16 times
router-box.FCStd
(279.76 KiB) Downloaded 17 times
Last edited by lpoole on Sat Aug 13, 2022 12:41 am, edited 1 time in total.
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: 3D Pocket

Post by chrisb »

Moved to Path forum.

You should not rely on the simulator, which could well receive some love. Look at the path and the "Inspect Path" tool.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
lpoole
Posts: 4
Joined: Fri Aug 12, 2022 11:59 pm

Re: 3D Pocket

Post by lpoole »

I just looked at the Inspect Path tool as suggested and all the Z distances are the same. If I understand this correctly, I am not getting any depth in my pocket. It is only on the surface.

Code: Select all

(Pocket3D-Fan)
G0 Z43.100000
G0 X31.530000 Y-26.790000
G0 Z41.100000
G1 F14.816667 X31.530000 Y-26.790000 Z38.100001
G1 F14.816667 X31.530000 Y-25.230000 Z38.100001
G1 F14.816667 X10.530000 Y-25.230000 Z38.100001
G1 F14.816667 X10.530000 Y-26.790000 Z38.100001
G1 F14.816667 X31.530000 Y-26.790000 Z38.100001
G1 F14.816667 X31.530000 Y-28.390000 Z38.100001
G1 F14.816667 X10.530000 Y-28.390000 Z38.100001
G1 F14.816667 X10.530000 Y-29.990000 Z38.100001
G1 F14.816667 X31.530000 Y-29.990000 Z38.100001
G1 F14.816667 X31.530000 Y-31.590000 Z38.100001
G1 F14.816667 X10.530000 Y-31.590000 Z38.100001
G1 F14.816667 X10.530000 Y-33.190000 Z38.100001
G1 F14.816667 X31.530000 Y-33.190000 Z38.100001
G1 F14.816667 X31.530000 Y-34.790000 Z38.100001
G1 F14.816667 X10.530000 Y-34.790000 Z38.100001
G1 F14.816667 X10.530000 Y-36.390000 Z38.100001
G1 F14.816667 X31.530000 Y-36.390000 Z38.100001
G1 F14.816667 X31.530000 Y-37.990000 Z38.100001
G1 F14.816667 X10.530000 Y-37.990000 Z38.100001
G1 F14.816667 X10.530000 Y-39.590000 Z38.100001
G1 F14.816667 X31.530000 Y-39.590000 Z38.100001
G1 F14.816667 X31.530000 Y-41.190000 Z38.100001
G1 F14.816667 X10.530000 Y-41.190000 Z38.100001
G1 F14.816667 X10.530000 Y-42.790000 Z38.100001
G1 F14.816667 X31.530000 Y-42.790000 Z38.100001
G1 F14.816667 X31.530000 Y-44.390000 Z38.100001
G1 F14.816667 X10.530000 Y-44.390000 Z38.100001
G1 F14.816667 X10.530000 Y-45.990000 Z38.100001
G1 F14.816667 X31.530000 Y-45.990000 Z38.100001
G1 F14.816667 X31.530000 Y-47.590000 Z38.100001
G1 F14.816667 X10.530000 Y-47.590000 Z38.100001
G1 F14.816667 X10.530000 Y-49.190000 Z38.100001
G1 F14.816667 X31.530000 Y-49.190000 Z38.100001
G1 F14.816667 X31.530000 Y-50.790000 Z38.100001
G1 F14.816667 X10.530000 Y-50.790000 Z38.100001
G1 F14.816667 X10.530000 Y-52.390000 Z38.100001
G1 F14.816667 X31.530000 Y-52.390000 Z38.100001
G1 F14.816667 X31.530000 Y-53.990000 Z38.100001
G1 F14.816667 X10.530000 Y-53.990000 Z38.100001
G1 F14.816667 X10.530000 Y-55.590000 Z38.100001
G1 F14.816667 X31.530000 Y-55.590000 Z38.100001
G1 F14.816667 X31.530000 Y-57.190000 Z38.100001
G1 F14.816667 X10.530000 Y-57.190000 Z38.100001
G1 F14.816667 X10.530000 Y-58.790000 Z38.100001
G1 F14.816667 X31.530000 Y-58.790000 Z38.100001
G1 F14.816667 X31.530000 Y-60.390000 Z38.100001
G1 F14.816667 X10.530000 Y-60.390000 Z38.100001
G1 F14.816667 X10.530000 Y-61.990000 Z38.100001
G1 F14.816667 X31.530000 Y-61.990000 Z38.100001
G1 F14.816667 X31.530000 Y-63.590000 Z38.100001
G1 F14.816667 X10.530000 Y-63.590000 Z38.100001
G1 F14.816667 X10.530000 Y-65.190000 Z38.100001
G1 F14.816667 X31.530000 Y-65.190000 Z38.100001
G1 F14.816667 X31.530000 Y-66.790000 Z38.100001
G1 F14.816667 X10.530000 Y-66.790000 Z38.100001
G1 F14.816667 X10.530000 Y-68.390000 Z38.100001
G1 F14.816667 X31.530000 Y-68.390000 Z38.100001
G1 F14.816667 X31.530000 Y-69.990000 Z38.100001
G1 F14.816667 X10.530000 Y-69.990000 Z38.100001
G1 F14.816667 X10.530000 Y-71.590000 Z38.100001
G1 F14.816667 X31.530000 Y-71.590000 Z38.100001
G1 F14.816667 X31.530000 Y-73.190000 Z38.100001
G1 F14.816667 X10.530000 Y-73.190000 Z38.100001
G1 F14.816667 X10.530000 Y-74.790000 Z38.100001
G1 F14.816667 X31.530000 Y-74.790000 Z38.100001
G1 F14.816667 X31.530000 Y-76.390000 Z38.100001
G1 F14.816667 X10.530000 Y-76.390000 Z38.100001
G0 F0.000000 Z43.100000
G0 Z43.100000
Last edited by lpoole on Sat Aug 13, 2022 3:08 pm, edited 2 times in total.
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: 3D Pocket

Post by chrisb »

Please edit your post and put the output in code tags using the button </>. That makes the post easier to read.

I looked at Pocket-3DFan. You made one of two possible mistakes:

1) You want to mill the inside and selected the wrong face. Face1 is on the outside, not on the inside.

2) You want to mill the outside, then you have to turn the model by 180°. Click on "Top view" and see the model from the milling side.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jbraun
Posts: 253
Joined: Fri Sep 18, 2020 5:41 pm

Re: 3D Pocket

Post by jbraun »

lpoole wrote: Sat Aug 13, 2022 12:19 am Hi, I am very new to CNC.
And I'm very rusty :)
Hello lpoole
Normally you would import into Path a body that represents the desired finished product. not a body that is turned to chips. The stock is what turns to chips.
Try a concept more like the attached.
For simulation I recommend Camotics.
Attachments
router-box-2.FCStd
(148.84 KiB) Downloaded 22 times
For English help on youtube check out Joko Engineering or Mango Jelly Solutions.
Look for recent videos, this software is updated at a rapid pace.
lpoole
Posts: 4
Joined: Fri Aug 12, 2022 11:59 pm

Re: 3D Pocket

Post by lpoole »

@chrisb
I want to "1) You want to mill the inside and selected the wrong face. Face1 is on the outside, not on the inside." I was able to get inside my object using View>Clipping plane. It does not make any difference. I am really struggling duplicating my actions. When I select the faces, sometimes I get the surface cut and sometimes I get cutting from the bottom of the stock to the bottom of my object. I want to mill inside as you stated in #1. I don't know why I cannot get the same result every time. It may have to be related to the order in which I am going through the steps. Even though milling from the bottom of the stock to the bottom of my object is not what I want, I still want to be able to duplicate it as a learning experience.

@jbraun
As I am very new to FreeCAD, it is going to take me a while to figure out what you did in your modification of my file. It looks like it may be a starting point for me. But I will still need to smooth out the final cut.

Thanks everyone. I am going to keep working with these two suggestions to see how far I can get. If anyone else has any ideas, that would be nice also.
bmsaus4ax
Posts: 255
Joined: Sat Nov 14, 2020 9:16 pm
Location: Bargara, Queensland, Australia UTC+10

Re: 3D Pocket

Post by bmsaus4ax »

lpoole wrote: Sat Aug 13, 2022 7:26 pm @chrisb
I want to "1) You want to mill the inside and selected the wrong face. Face1 is on the outside, not on the inside." I was able to get inside my object using View>Clipping plane. It does not make any difference. I am really struggling duplicating my actions. When I select the faces, sometimes I get the surface cut and sometimes I get cutting from the bottom of the stock to the bottom of my object. I want to mill inside as you stated in #1. I don't know why I cannot get the same result every time. It may have to be related to the order in which I am going through the steps. Even though milling from the bottom of the stock to the bottom of my object is not what I want, I still want to be able to duplicate it as a learning experience.

@jbraun
As I am very new to FreeCAD, it is going to take me a while to figure out what you did in your modification of my file. It looks like it may be a starting point for me. But I will still need to smooth out the final cut.

Thanks everyone. I am going to keep working with these two suggestions to see how far I can get. If anyone else has any ideas, that would be nice also.
Path operations create the shape you want by removing what doesn't match what you want.
Your original approach is trying to machine the bit you do not want; this is the end result but not how the operations are interpreted.

jbraun 's approach is what you need.
Create a solid model of the final product, i.e., "Cut" the core shape from a cube which represents the shell or box of the final product.
As a side note , you do not need to slice the core shape, it can be positioned with it's centre line on the surface of the cube and perform a Cut Operation, the result is the desired cavity.
The Cube, or whatever shape the shell is, is the "Stock" , Stock in the Path Operations is used to represent the raw material which may be extra to this, e.g, making the stock larger than the job will show where a cut is being performed on the perimeter of the job.

The geometry you select is the finished surface of the model, anything above this is what the operation targets for removal.

To produce a smooth final cut, run the surface paths radially rather than axially. with the correct step over you can achieve finish that will not require manual or machine smoothing.
jbraun
Posts: 253
Joined: Fri Sep 18, 2020 5:41 pm

Re: 3D Pocket

Post by jbraun »

it is going to take me a while to figure out what you did in your modification of my file
I have attached a quick video. Sorry, it needed zipping to upload.
It's not meant as a complete solution. It's more of "here is a possible approach".
Attachments
routerbox_mp4.zip
(955.11 KiB) Downloaded 21 times
For English help on youtube check out Joko Engineering or Mango Jelly Solutions.
Look for recent videos, this software is updated at a rapid pace.
lpoole
Posts: 4
Joined: Fri Aug 12, 2022 11:59 pm

Re: 3D Pocket

Post by lpoole »

@bmsaus4ax and @jbraun

Thank you for you suggestions. I have been busy with other projects. I will check out your suggestions as soon as I get a chance. I was already going toward the idea of making a cube around my model. My initial result had all of my paths completely out of the cube offset to the front of the cube. I will look more into this when I get caught up. Thanks again.
jbraun
Posts: 253
Joined: Fri Sep 18, 2020 5:41 pm

Re: 3D Pocket

Post by jbraun »

There's an easy way to make this type of cavity, it may work for you.
All done in Part Design workbench. Start with 3 sketches on x-y plane.
sketches_rs.png
sketches_rs.png (11.31 KiB) Viewed 985 times
1) Pad ''box' sketch in -Z direction so the 2 remaining sketches show on top.
2) Using the groove tool revolve the 'profile' around the x axis
3) Use the pocket tool on the 'tabs' sketch
surface_select.jpg
surface_select.jpg (6.27 KiB) Viewed 985 times
4) select the bottom surface of the 'tabs' pocket
sketch_on_surface.jpg
sketch_on_surface.jpg (4.78 KiB) Viewed 985 times
5) Create a sketch of the rectangular holes on the surface selected in step 4. Or you could create this sketch on the same x-y level as the previous
sketches which is probably better practice. I have some bad habits.
6) Pocket the sketches drawn in step 5
For English help on youtube check out Joko Engineering or Mango Jelly Solutions.
Look for recent videos, this software is updated at a rapid pace.
Post Reply