Package: freecad:
Version: 0.20.2+dfsg1-4

This problem also exist in version 1.0.2+dfsg-1 in testing.

When trying to output G-code from the FreeCAD CAM module using the fanuc
postprocessor, I get a exception backtrace because the postprocessor try
to handle thread taps, while the surrounding code in FreeCAD do not seem
to support tool types.

>From the internal console:

20:24:40  Running the Python command 'CAM_Post' failed:
Traceback (most recent call last):
  File "/usr/share/freecad/Mod/CAM/Path/Post/Command.py", line 188, in Activated
    post_data = postprocessor.export()
  File "/usr/share/freecad/Mod/CAM/Path/Post/Processor.py", line 321, in export
    gcode = self.script_module.export(sublist, "-", self._job.PostProcessorArgs)
  File "/usr/lib/freecad/Mod/CAM/Path/Post/scripts/fanuc_post.py", line 262, in 
export
    gcode += parse(obj)
  File "/usr/lib/freecad/Mod/CAM/Path/Post/scripts/fanuc_post.py", line 420, in 
parse
    if pathobj.Tool.ToolType == "Tap":

The problem need either horizontal or vertical feed rate or spindle
speed to trigger.  The error above showed up when creating a simple
cylinder, creating a CAM job with fanuc as the post processor, adding a
simple facing operation on the top end of the cylinder, and then setting
feed rates to 150 mm/min and spindle speed to 1000.

I see the same problem discussed in 
<URL: https://forum.freecad.org/viewtopic.php?t=74878 >, and
modification in the upstream code which seem related in
<URL: 
https://github.com/FreeCAD/FreeCAD/commit/bd24577184e44f29d6b11baa950dda1bf28e21fe
 >
and the following commit for that file.

I am not aware of any sensible workaround for this yet, and believe it
make FreeCAD CAM kind of useless for use with Fanuc CNC controllers.

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to