Trucated tool controller. Empty path output.

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!
User avatar
freman
Veteran
Posts: 2203
Joined: Tue Nov 27, 2018 10:30 pm

Trucated tool controller. Empty path output.

Post by freman »

Hi,

I created a path to drill two holes. 3D view looks correct.
Inspect path commands looks correct.

But selecting the drilling job and doing Post Process gets an empty job. Just preamble and postamble code but nothing in between.

Code: Select all

(Exported by FreeCAD)
(Post Processor: grbl_post)
(Output Time:2023-03-17 01:54:23.477760)
(Begin preamble)
G17 G90
G21
(Begin postamble)
M5
G17 G90
M2
The names of all the toolcontrollers in this file seem to be truncated. What is that about ? Is that related ?

TIA.


Today's master:

Code: Select all

OS: Fedora Linux 36 (Thirty Six) (LXQt/lxqt)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32323 (Git)
Build type: Release
Branch: master
Hash: 5ac308e8a65c7022ef851463d8ab5e1ba4b5edbe
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk , OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * FreeCAD_Assembly4 0.11.10
  * FreeCAD_assembly3
Attachments
truncated_TC.png
truncated_TC.png (49.69 KiB) Viewed 660 times
x-block-under45.FCStd
(116.58 KiB) Downloaded 14 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Trucated tool controller. Empty path output.

Post by GeneFC »

It appears you have selected Peck Drilling, which generates G83 codes.

I don't use GRBL, but I seem to recall that it only accepts G81 drilling codes. Has it been updated to accept G83?

Gene
User avatar
freman
Veteran
Posts: 2203
Joined: Tue Nov 27, 2018 10:30 pm

Re: Trucated tool controller. Empty path output.

Post by freman »

thanks Gene.

grbl post-processor has had G83 for some time, I contributed to getting this working.
http://www.solaire-chauffe-eau.info/cnc ... pecker.mp4

I have a second job with the same part rotated 45 in the other direction and it works fine !

I have deleted all the suspect TCs with truncated names and added new ones. I deleted the paths using the old tools and created new ones with thenew tools. Same error !.

The jobs are essentially mirror images. I don't know what messed up the TC names or why this side of the job gives no output form grbl.
:?
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Trucated tool controller. Empty path output.

Post by GeneFC »

freman wrote: Fri Mar 17, 2023 8:42 am
I cannot test your drills since their shape files are local to your computer. However, when I added one of my drills everything worked fine.

There seems to be some problem related to your tool files.

Sorry. Not much help. :oops:

Gene
User avatar
freman
Veteran
Posts: 2203
Joined: Tue Nov 27, 2018 10:30 pm

Re: Trucated tool controller. Empty path output.

Post by freman »

Thanks, another perspective is always helpful.

Those tools and paths are the ones I deleted. Take a look at the current state of this attached file. Compare drilling and drilling001 , each essentially the same , created from same tool shapes but in different jobs with the work piece flipped.

drilling001 works and produces pecked drilling cycles on grbl, the other one ( original job but with new TCs and paths ) still fails to produce anything but the preamble and postamble templates.

There is presumably some subtle difference which I'm missing.
Attachments
x-block-under45b.FCStd
(130.91 KiB) Downloaded 12 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Trucated tool controller. Empty path output.

Post by GeneFC »

freman wrote: Fri Mar 17, 2023 3:04 pm
Both drilling ops looked just fine to me. I played with selecting and deselecting "peck" for both, and everything worked every time.

Gene
User avatar
freman
Veteran
Posts: 2203
Joined: Tue Nov 27, 2018 10:30 pm

Re: Trucated tool controller. Empty path output.

Post by freman »

That is strange. Are you using grbl-post ?

Did you check the output? My paths look fine in 3D but don't get through grbl-post. Here is what it produces here.
Attachments
drilling-grbl.png
drilling-grbl.png (58.66 KiB) Viewed 494 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Trucated tool controller. Empty path output.

Post by GeneFC »

freman wrote: Fri Mar 17, 2023 3:50 pm Are you using grbl-post ?
No, I do not have most of the posts available at this time.

I was looking at the code examiner in the main Path toolbar. It previously showed empty output when the tool controller was truncated. It nows looks correct.

In that case the problem would be in the grbl postprocessor. I have no experience with grbl.

Gene
User avatar
freman
Veteran
Posts: 2203
Joined: Tue Nov 27, 2018 10:30 pm

Re: Trucated tool controller. Empty path output.

Post by freman »

It previously showed empty output when the tool controller was truncated. It nows looks correct.
Thanks , I had not noticed that before deleting the suspect TCs.

Maybe all this is because I ran the script supposed to automatically take care of incompatible toolcontroller changes and it failed. Looks like it may have borked the entire job structure and deleting TCs and paths was not enough. The new job created since I updated seems to work correctly.

I don't think grbl-post is the problem, maybe the victim, of this. It works fine with the second job which is doing very near the same thing.

I'll delete the problematic job and reproduce what it did. I'm getting use to trashing my existing FCStd files every 6mo or so due to incompatible changes to the software. :(
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Trucated tool controller. Empty path output.

Post by GeneFC »

freman wrote: Fri Mar 17, 2023 7:15 pm I'm getting use to trashing my existing FCStd files every 6mo or so due to incompatible changes to the software. :(
I just tried opening a random file I created 5 years ago in a very recent version of FC.

No problems noted.

But then I do not have any custom scripts or other such additions. 8-)

Gene
Post Reply