dubstar-04 / FeedsAndSpeeds

FreeCAD Feed and Speeds Calculator
GNU Lesser General Public License v2.1
30 stars 8 forks source link

POC chiploads, chip thinning & overrides #19

Open spanner888 opened 2 years ago

spanner888 commented 2 years ago

Works from scripted console use, script included. GUI needs updates to cater for this - not yet implemented. Makes extensive use of csv import from FreeCAD user imm, for materials, inclduing surface speeds and chiploads (as y intercept & slope values).

Three modes: Run as FreeCAD Addon in Path workbench. Run as Standalone GUI ie runs without FreeCAD Tools are loaded from a csv file, instead of FreeCAD Job, toolcontrollers TODO: imperial units for standalone gui mode. Command line Demo script provided At present only way to enable chip thinning TODO: add to both gui versions. automatic overides to suit your CNC min/max rpm and power.

In addition to above new features are: csv Load of existing materials, including Ssurface cutting speeds, Machine power factor etc. csv Load Chiploads (added to existing materials csv) csv load of Tools in Standalone mode. csv load could also be basis for more data, and user settings, such as CNC limits, Tools. Thanks to user imm for suggesting and providing excelent code to implement above.

Optional Chip Thinning calculations (but only via command line at present (Help wanted :). Based on common formula eg https://www.harveyperformance.com/in-the-loupe/combat-chip-thinning/ Notes:

This is RADIAL chip thinning chipload adjustment, ie not axial as can be calculated for round tip cutters, like ballnose etc

#Adjustment/formula unlikely to work for very small WOC, for example when adjusted chipload becomes significantly larger than WOC.
#Internet 'wisdom' does not seem to provide any definite value/situation for when tool rubbing will occur.
#Above reference site does say that chipload thinning adjustment will "...hopefully {adjust chips to be} thick enough to avoid rubbing".

Collated/curated csv data for chipload calculation from linear curve fit. This has taken a lot of work to find usable data, ie where materials can be matched with Surface Speed data and for reliability of data. This needs more effort and more eyes on it.

Optional skip rpm overide if rpm is < overide_value (eg stop say a 20mm endmill being overidden from 2000rpm to 10000rpm!). Only available from comamnd line at present, using fsAddon.rpm_overide_reduce_only = True

TODO: Extended power factor range, using curve fit. Curve fit is done, should be trivial to add using above csv load. TODO & More bugs listed in code and at https://github.com/dubstar-04/FeedsAndSpeeds, including issues with vertical feed and Drilling calculations are currently disabled.

TODO: More in my notes.....