Commit Graph

118 Commits

Author SHA1 Message Date
Claas Ahlrichs bba3a23405 Update grbl_post.py 2021-10-07 13:10:47 -05:00
ho-ho-ho e6673d60ad Update grbl_post.py
Append new line to return-to line
2021-10-07 13:09:59 -05:00
ho-ho-ho f1e4cb4433 Path: fix grbl --return-to placement 2021-10-07 13:07:36 -05:00
sliptonic abe65e7a75 removed PathUtils import from all post-processors to avoid the deleted proxy error
I removed or commented out code using this import.  In all cases,
the import was used to get descriptive information from the Job
2021-10-07 10:59:26 -05:00
Stefano Chiaro d9ed0191d8 Update src/Mod/Path/PathScripts/post/heidenhain_post.py
Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2021-02-20 11:37:08 -06:00
Stefano Chiaro ca06ab24a5 Update heidenhain_post.py
fixed pol_Angle
2021-02-20 11:37:08 -06:00
sliptonic 2e1c00e4fe add back translation string 2021-02-19 17:50:56 -06:00
sliptonic 097b2c982e Fixes #4555 2021-02-17 17:21:50 -06:00
sliptonic f70f9572fe Merge pull request #4297 from shadowbane1000/fanuc-1st-pass
[PATH] First pass at a post processor for Fanuc
2021-01-27 13:05:26 -06:00
ci4ic4 cbb0a8a11c Update philips_post.py
You can't compare dict with an integer.
2021-01-27 11:51:42 +00:00
Tyler Colbert 6a07fb6237 [PATH] First pass at a post processor for Fanuc controllers 2021-01-20 14:18:47 -07:00
Patrick F eae5d56cf9 [PATH] Bugfix centroid_post 2021-01-03 17:21:05 +01:00
Patrick F ae761583a6 Updated centroid post 2021-01-02 21:37:32 +01:00
Russell Johnson 08ec99a24f Path: Fix isinstance() item.Proxy error
Some items in `objectList` do not contain a `Proxy` child and cause a fatal error in post processing with this post module.
2020-12-31 08:50:38 -06:00
luz paz ff96cb301e Fix typos [skip ci]
Found via `codespell v2.1.dev0`
2020-12-23 14:32:38 -05:00
sliptonic fb64d208bd Merge branch 'master' into posttodxf 2020-12-19 15:40:16 -06:00
Markus Lampert 73cd5d31d9 Disabled '... postprocessor loaded' messages 2020-12-15 20:09:55 -08:00
sliptonic bcdc245a4c add debug. Fix arc error 2020-12-15 12:09:13 -06:00
sliptonic 4bb609d123 dxf post 2020-12-15 12:09:13 -06:00
luzpaz 22c652f766 Path: Added revision suggested by @cheenes
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
[skip ci]
2020-12-02 06:57:56 -05:00
luz paz fe547195bf Path: Change filenames in the rest of the Path code
Reflects changes in 
* PathOpGui.SetupOperation()
* GetResources()
* sPIxmap
* pixmap
* *.UI files

Also contains minor translation context renames (these were edits made near to original intent of this commit)
2020-12-02 06:57:28 -05:00
luz paz b75cd3dd52 Path: Fix header uniformity and remove trailing whitespace
This PR fixes header uniformity across all Path files. It also removes all trailing whitespace.
2020-11-05 19:57:21 +01:00
GaryH 75b8ff3665 Modify code format to PEP8
Add --marlin-config argument
  Marlin requires certain configuration settings in order to work well
  with FreeCAD. Those configuration settings will be added to the
  end of the gcode file as comments, when --marlin-config is entered
  as a post processor argument.
  For PEP8 conformity:
      Change some double-quotes to single-quotes.
      Change sequence of import statements.

Modify code format to PEP8
  Indentation and line length meet PEP8 requirements.
  Other aspects of PEP8 are partially implemented.

Add code to remove embedded comments
  Also, minor tweaks throughout

Change outstring to outList for clarity
  Change format_outstring to format_outList
  Change: if PathUtil.opProperty(obj, 'Active') is False:
    To: if PathUtil.opProperty(obj, 'Active') == False:

Format file to PEP8 standard
  Format first pass using:
    autopep8 --in-place --aggressive --aggressive
  Manually adjust format for better appearance
  Recheck format using http://pep8online.com/
  Change code related to pythonopen into with open() code
  Minor refactoring
2020-11-04 19:55:02 +01:00
GaryH d632130831 Refactor marlin_post.py
Change G4 P to G4 S for Marlin
  Marlin uses P for milliseconds, S for seconds.
  FreeCAD uses P for seconds, so change P to S.

Remove code for G20 inch mode and G91 relative mode
  Due to the fundamentals of the FreeCAD pre-processor,
  this post processor can only operate in the following modes:
  G90 Absolute positions
  G21 Metric units (mm)
  G17 XY plane (3 axis vertical milling only)

Expand RETURN_TO option to float values for XYZ
  The RETURN_TO option previously only accepted integer values, and
  only for X and Y.
  This change allows float values for XY and optionally Z.

Add class: "Drill" within drill_translate()
  The nested functions within drill_translate() need to modify the
  variable that was named trBuff. To allow this, trBuff was changed
  to class: "Drill" with property "gcode".
  Within drill_translate(), including within the nested functions,
  modifying "trBuff" is now replaced with modifying "Drill.gcode".

Merge in updated portions of grbl_post.py
  Prior verson was derived from an older grbl_post.py.
  Merge in the portions of the newer grbl that seem improved.
  Refactor overall after the merge.

Add options for partial comments
  Add option:  --no-finish-comments
  Add option:  --no-path-comments
2020-11-04 19:55:02 +01:00
GaryH 0e0156a2c2 Add files via upload 2020-11-04 19:55:02 +01:00
J-Dunn 950269834d Add files via upload
Path: grbl_post G83 expansion , G1 on initial move to retract_Z height to allow retraction height to remain inside hole. This can be useful to avoid widening hole entrance with multiple drill re-entries.moves
2020-10-18 21:07:21 +01:00
J-Dunn 0cc3c5cacb PATH: fast retraction and return speeds for grbl_post G83 expansion #3725
Ensure fast retraction and then plunge to just short off previous drilled depth at G0.  Fixes painfully slow air drilling which makes peck drilling impracticable.
https://forum.freecadweb.org/viewtopic.php?f=15&t=25604&p=435639#p435639
2020-10-06 01:23:18 +01:00
vocx-fc b0f6920b4e Path: use 4-space indentation, and keep lines short 2020-09-15 00:56:17 -05:00
sliptonic df2884f810 [PATH] make -custom- op compliant. Improve gcode_pre importer 2020-06-10 16:49:46 -05:00
Gabriel Wicke cc84287515 Path: Opt into automatic git newline normalization
Avoid spurious diffs from inadvertent newline changes by letting git
normalize newlines in the path module as well, just as a list of other
modules including Draft already do.

This effectively standardizes all checked-in code to Unix newlines, but
checkouts might use CRLF if that is the user preference.
2020-05-31 08:33:29 -07:00
Gabriel Wicke 6e90d8e10f Path: LinuxCNC postprocessor scalability
- Do not show editor when gcode size exceeds 100kb. The poor editor
  widget cannot handle that much output, and will hang FreeCAD.
- Avoid quadratic behavior in output accumulator. While Python greater
  than 2.7 avoids quadratic behavior in string accumulators, this optimization
  is defeated when the string is forced to be materialized to contiguous
  memory, as was done by the `.trim()`. As a result, we got quadratic complexity,
  ensuring that large jobs would never successfully be post-processed.
2020-05-17 13:31:44 -07:00
luz.paz 6df8201186 Fix typos [skip-ci]
Found via codespell v1.17.0.dev0  
``` 
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-05-12 10:04:29 +02:00
Zibibbo84 b4b16fef40 Adding HEIDENHAIN CNC Mill post-processor for PathScript 2020-05-08 21:50:23 +02:00
Gauthier 1908e86e26 [Path] fix tool change and Feature missing output 2020-03-30 20:01:47 +02:00
Eric Trombly 8756ae8590 Change example_pre to use a list of commands instead of one string 2020-03-22 17:59:16 -05:00
Eric Trombly f66747ec15 split paths on M6 and change placement to use offset 2020-03-22 12:15:57 -05:00
Eric Trombly 0d281b91dc split paths on M6 and change placement to use offset 2020-03-22 12:10:11 -05:00
Eric Trombly 7f76c5fbc3 split paths on M6 and change placement to use offset 2020-03-22 12:06:36 -05:00
Eric Trombly f1ebaa4cc6 change preprocessor to split lines 2020-03-22 12:06:36 -05:00
Eric Trombly 31b17055f1 initial work for modifying path of imported gcode 2020-03-22 12:06:36 -05:00
sliptonic a203eeef60 Merge pull request #3188 from Schildkroet/grbl-post
[Path] Updated grbl post processor
2020-03-17 14:02:53 -05:00
sliptonic d66d3a983a Merge pull request #3195 from dubstar-04/post/Mach3-Mach4
[Path] Post/mach3 mach4
2020-03-17 14:01:47 -05:00
Daniel Wood 5754e9feae [Path] - Add Mach3 / Mach4 Post
This post has been created because Mach is unable to use constant velocity mode with G0 resulting in jerky movement when using adaptive paths. This post converts the G0 moves to G1 and uses the tool controllers rapid speeds.
2020-03-16 23:22:30 +00:00
Daniel Wood 9512159d03 [Path] fix tool changes (Revert previous change) 2020-03-16 22:24:14 +00:00
Eric Trombly fbb59ae712 initial work for modifying path of imported gcode 2020-03-16 10:17:32 -05:00
Patrick Felixberger 97d2350078 Updated grbl post processor 2020-03-16 00:11:24 +01:00
Daniel Wood b4c08eaa0d [Path] - Use PathUtil to check if op is active.
Just a bit of house keeping.
2020-03-14 10:56:29 +00:00
Patrick Felixberger 7e2814e5bf Fixed coolant with dressup 2020-03-03 21:27:31 +01:00
Patrick Felixberger 4545cf34b2 Added coolant support to grbl_post
Improved canned cycles

Added/translated comments
2020-03-03 21:27:31 +01:00
Daniel Wood 5e3ffcff93 Stop the spindle before tool changes. 2020-03-03 21:27:31 +01:00