[SOLVED] Help with linuxcnc_post?

Here's the place for discussion related to CAM/CNC and the development of the Path module.
AwesomeCronk
Posts: 40
Joined: Wed Sep 26, 2018 10:35 pm

[SOLVED] Help with linuxcnc_post?

Postby AwesomeCronk » Thu Feb 06, 2020 3:01 pm

I am trying to get a gcode exported for our schools cnc router. This is my first introduction to cnc. I am trying to export the CutMaterial object from the attached document to a gcode file using the linuxcnc_post processor. When it runs, I can see that the Python command runs, because I have the Python terminal visible. I am using the GUI to export. When I export, the file is created (I can see it in my recent files on windows), but it is somehow deleted, because it no longer exists in the target directory. Is this because I am running FC on Windows? What other post-processors would work for a Richauto B18 controller?

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Edit: Here are the results of the different post-processors:
centroid_post:
-Popup dialogue, creates file.
-I have attached it here, with the extension changed to '.txt'.
CNC1.txt
(327 Bytes) Downloaded 10 times
comparams_post:
-Popup dialogue, no file.

dynapath_post:
-No popup, no file.

grbl_G81_post:
-No popup, no file.

grbl_post:
-No popup, no file.

linuxcnc_post:
-No popup, no file.

opensbp_post:
-No popup, no file.

philips_post:
-No popup, no file.

rml_post:
-Error popup: 'FeaturePython' has no attribute 'Path', no file.

smoothie_post:
-No popup, no file.
Attachments
CNC_Test_001.FCStd
(199.21 KiB) Downloaded 5 times
Last edited by AwesomeCronk on Fri Feb 21, 2020 3:20 pm, edited 1 time in total.
herbk
Posts: 1731
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Help with linuxcnc_post?

Postby herbk » Thu Feb 06, 2020 5:36 pm

Hi,
did you give the file a valid name?
It has to be like mygcodefile.ngc for LinuxCNC and you have to write the .ngc by yourself, only selecting the file type it's not enough.

Windows dosn't show files with no etcensions if i remember right...
Gruß Herbert
AwesomeCronk
Posts: 40
Joined: Wed Sep 26, 2018 10:35 pm

Re: Help with linuxcnc_post?

Postby AwesomeCronk » Thu Feb 06, 2020 8:55 pm

@herbk

The test files were all .gcode files. I will try the .ngc extension tonight. Thanks!
herbk
Posts: 1731
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Help with linuxcnc_post?

Postby herbk » Thu Feb 06, 2020 9:43 pm

Guys be carefull !

The at the first post attached file "CNC_Test_001.FCStd" seamst to be compromited :

At opening the file i get the message:

Code: Select all

The mesh data structure has some defects
If i open the File and try to export a gcode file it dos not work, i dont get an output file.
After opening this file i'm also not able to export an gcode file from each other, also an new made, Job :!:

The file seams to change something at the Path scrips, using the export button shows the error maessage:

Code: Select all

Running the Python command 'Path_Post' failed:
Traceback (most recent call last):
  File "/tmp/.mount_FreeCAzyCaic/usr/Mod/Path/PathScripts/PathPost.py", line 390, in Activated
    (fail, rc) = self.exportObjectsWith(finalpostlist, job)
  File "/tmp/.mount_FreeCAzyCaic/usr/Mod/Path/PathScripts/PathPost.py", line 212, in exportObjectsWith
    gcode = processor.export(objs, filename, postArgs)
  File "/tmp/.mount_FreeCAzyCaic/usr/Mod/Path/PathScripts/PathPostProcessor.py", line 102, in export
    return self.script.export(obj, filename, args)
  File "/tmp/.mount_FreeCAzyCaic/usr/Mod/Path/PathScripts/post/centroid_post.py", line 170, in export
    if isinstance(item.Proxy, PathScripts.PathToolController.ToolController):

'_TempObject' object has no attribute 'Proxy'

At using the AppImage it's not a big problem, after new starting FC Path export works again, but i'm in mind a regular installation gets infected.
Gruß Herbert
AwesomeCronk
Posts: 40
Joined: Wed Sep 26, 2018 10:35 pm

Re: Help with linuxcnc_post?

Postby AwesomeCronk » Fri Feb 07, 2020 12:06 am

That is interesting. Did you launch FC from the file (double click on the file) or did you launch FC, then open the file? I am not at the computer where I made it, but I have 0.18 on this PC. I will try both and tell what I see.

Edit:
I tried both on my personal Windows PC and they both opened without an issue. I guess you are using MacOS or Linux, given that you mentioned an AppImage, and that may be causing the difference.
chrisb
Posts: 22315
Joined: Tue Mar 17, 2015 9:14 am

Re: Help with linuxcnc_post?

Postby chrisb » Fri Feb 07, 2020 2:22 am

You should indeed retry with current 0.19. Path workbench has received many improvements.
m0n5t3r
Posts: 97
Joined: Fri Feb 03, 2017 2:55 pm

Re: Help with linuxcnc_post?

Postby m0n5t3r » Fri Feb 07, 2020 1:22 pm

works for me, both 0.18 and 0.19: set postprocessor to linuxcnc, file name %D/%d.ngc, post process -> popup dialog shows up, file gets saved.
m0n5t3r
Posts: 97
Joined: Fri Feb 03, 2017 2:55 pm

Re: Help with linuxcnc_post?

Postby m0n5t3r » Fri Feb 07, 2020 1:26 pm

AwesomeCronk wrote:
Thu Feb 06, 2020 3:01 pm
I am trying to export the CutMaterial object from the attached document to a gcode file using the linuxcnc_post processor.
um, you don't export the cutmaterial object, you select the job and click the post process buttonn; honestly I don't think the cut material object should be even added to the document, since it's just a simulation output, and it seems to confuse new users
AwesomeCronk
Posts: 40
Joined: Wed Sep 26, 2018 10:35 pm

Re: Help with linuxcnc_post?

Postby AwesomeCronk » Mon Feb 10, 2020 3:07 pm

@m0n5t3r

I tried that. I got a centroid_post generated file, 'CNC2.ngc'. I chose the extension, but I had no option to choose the post processor. Attached is the resulting file, again, with the extension changed to '.txt'.

Then I tried exporting the cutmaterial object, contradictory to what you said. I used linuxcnc_post and the filename was 'CNC3.ngc'. No results. The only reason I have been trying this route is the following video tutorial:

phpBB [video]
Attachments
CNC2.txt
(3.02 KiB) Downloaded 1 time
m0n5t3r
Posts: 97
Joined: Fri Feb 03, 2017 2:55 pm

Re: Help with linuxcnc_post?

Postby m0n5t3r » Mon Feb 10, 2020 4:41 pm

you choose the post-processor in job settings, like this: https://matrix.m0n5t3r.info/_matrix/med ... qCNidICnWW