Solving problems with linux_cnc post with wrong feed rate

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!
dlhenke
Posts: 35
Joined: Fri Mar 24, 2017 1:47 pm

Re: Solving problems with linux_cnc post with wrong feed rate

Post by dlhenke »

gdo35 wrote:And did you use an old .fcstd file ?

Could you share it ?

I cant reproduce. :(
You can't .. this thing i put in linux_cnc as my own debug
Just because the path object is not bringing the object names.
....
def export(objectslist, filename, argstring):
....
for pathobj in objectslist:
.....
print(pathobj.MachineName)
print(pathobj.MachineUnits)

also I want to tell my understanding of Python is ZERO .. nothing in Brazilian portuguese: (nada, zero à esquerda).
m0n5t3r
Posts: 138
Joined: Fri Feb 03, 2017 2:55 pm

Re: Solving problems with linux_cnc post with wrong feed rate

Post by m0n5t3r »

I made it use the job unit system and created a pull request: https://github.com/FreeCAD/FreeCAD/pull/660
dlhenke
Posts: 35
Joined: Fri Mar 24, 2017 1:47 pm

Re: Solving problems with linux_cnc post with wrong feed rate

Post by dlhenke »

m0n5t3r wrote:I made it use the job unit system and created a pull request: https://github.com/FreeCAD/FreeCAD/pull/660
That is good, i wish to know more from GitHub also More from Python.. this is my first contact with the language.
I'm almost 60 years Old.. started with COBOL a long long time ago .
Now playing with a CNC Router, have discovered the FreeCad.. what amazing software..
I think the developers must give more time to PATH Workbench instead of others features on FreeCad.. so that we can use it in production even with a lot of known bugs.

I think the problem is there in other place because the pathObject does not bring the Machine name and even others sub objects.
:-)

Thank You AGAIN..
P.S ..
The result of
------------------------------
myMachine = None
for pathobj in objectslist:
if hasattr(pathobj,"MachineName"):
myMachine = pathobj.MachineName
if hasattr(pathobj, "MachineUnits"):
if pathobj.MachineUnits == "Metric":
UNITS = "G21"
UNIT_FORMAT = 'mm/min'
else:
UNITS = "G20"
UNIT_FORMAT = 'in/min'
if myMachine is None:
print("No machine found in this selection")
-----------------------------------
is always "No machine found in this selection"
m0n5t3r
Posts: 138
Joined: Fri Feb 03, 2017 2:55 pm

Re: Solving problems with linux_cnc post with wrong feed rate

Post by m0n5t3r »

Yes, that was the issue, I poked around in the freecad console and the other files and found out how to get the Job object of a path; take a look at https://github.com/FreeCAD/FreeCAD/pull/660/files

This bug resulted in an inadvertent stress test on my mpcnc: I'm still learning how to use it, and feeds being 2.54x what I expected resulted in a few missed steps on the Z axis of all things (plunging into particle board with a 6mm end mill presumably made for metal at 500mm/min was bound to do that; in retrospect, if I had used the straight one flute cutter made for wood I got with the router it should have gone through without problems, if my first ever mishap due to wrong touchplate thickness is any indication: https://gs.m0n5t3r.info/file/16f14a6ee2 ... 2cd73b.jpg).
Post Reply