Inner profile operation simulation

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
Svet
Posts: 50
Joined: Fri Feb 12, 2021 1:00 am
Location: USA, Texas

Inner profile operation simulation

Post by Svet »

Hi there. Found a really annoying bug in CAM simulation.

My job has 2 operation:
1) drilling
2) inner profile of hole

Generated G-code is fine, but on simulation looks like Freecad ignored tool offset or uses shank diameter instead of tool diameter to "cut" , so it looks like inner profile will have bigger diameter than suppose to be.
The same behavior on a Link branch.
Untitled.png
Untitled.png (246.77 KiB) Viewed 750 times


OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 (Git)
Build type: Release
Branch: master
Hash: b2ca86d8d72b636011a73394bf9bcdedb3b109b7
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
Attachments
test_path.FCStd
(80.99 KiB) Downloaded 30 times
chrisb
Veteran
Posts: 53936
Joined: Tue Mar 17, 2015 9:14 am

Re: Inner profile operation simulation

Post by chrisb »

I cannot confirm. I have added the (white) sketch with the tool diameter of 2mm and the drilled hole shows this diameter too:
SnipScreenshot-803730.png
SnipScreenshot-803730.png (19.51 KiB) Viewed 724 times
OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24612 (Git)
Build type: Release
Branch: master
Hash: f525904c1be10a0f55aa3502151c2c55e5054259
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Svet
Posts: 50
Joined: Fri Feb 12, 2021 1:00 am
Location: USA, Texas

Re: Inner profile operation simulation

Post by Svet »

chrisb wrote: Thu Apr 08, 2021 7:02 am I cannot confirm. I have added the (white) sketch with the tool diameter of 2mm and the drilled hole shows this diameter too:
Add tool with diameter 2mm and shank diameter 3.175mm. And not drill but profile. Drill works fine.
chrisb
Veteran
Posts: 53936
Joined: Tue Mar 17, 2015 9:14 am

Re: Inner profile operation simulation

Post by chrisb »

I can confirm for the pocket.
OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24612 (Git)
Build type: Release
Branch: master
Hash: f525904c1be10a0f55aa3502151c2c55e5054259
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
bmsaus4ax
Posts: 255
Joined: Sat Nov 14, 2020 9:16 pm
Location: Bargara, Queensland, Australia UTC+10

Re: Inner profile operation simulation

Post by bmsaus4ax »

Svet wrote: Thu Apr 08, 2021 2:42 am
Generated G-code is fine, but on simulation looks like Freecad ignored tool offset or uses shank diameter instead of tool diameter to "cut" , so it looks like inner profile will have bigger diameter than suppose to be.
.
Yes I can reproduce this. For a 3mm shank the extra clearance is displayed, for a 2mm shank it is displayed as expected. And as stated it is only the simulation.
If you slow down the simulation to 1 G/s you can see the tool edge contacting the pocket wall as it should but the graphics are displaying as a larger area removal, not just a resolution issue as the 2mm shank test displays correctly.



Trying something a bit more extreme with a 2mm endmill with a 6mm shank produces this.
Screenshot from 2021-04-09 10-39-06-1-1.png
Screenshot from 2021-04-09 10-39-06-1-1.png (38.14 KiB) Viewed 643 times


OS: Ubuntu 20.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.1)
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Australia (en_AU)
Post Reply