Commit Graph

110 Commits

Author SHA1 Message Date
sliptonic
a631f45e31 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
4ed7665b13 Update philips_post.py
You can't compare dict with an integer.
2021-01-27 11:51:42 +00:00
Tyler Colbert
98c2861864 [PATH] First pass at a post processor for Fanuc controllers 2021-01-20 14:18:47 -07:00
Patrick F
d956586331 [PATH] Bugfix centroid_post 2021-01-03 17:21:05 +01:00
Patrick F
26f9742299 Updated centroid post 2021-01-02 21:37:32 +01:00
Russell Johnson
949e6154b9 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
439bf8960d Fix typos [skip ci]
Found via `codespell v2.1.dev0`
2020-12-23 14:32:38 -05:00
sliptonic
b940207f75 Merge branch 'master' into posttodxf 2020-12-19 15:40:16 -06:00
Markus Lampert
6984140584 Disabled '... postprocessor loaded' messages 2020-12-15 20:09:55 -08:00
sliptonic
c79fcef921 add debug. Fix arc error 2020-12-15 12:09:13 -06:00
sliptonic
fcb5f95b55 dxf post 2020-12-15 12:09:13 -06:00
luzpaz
cb3326b8cb 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
aeafcec125 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
60c055e62d 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
b0fcac8ddc 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
ef386cf85c 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
3e223e242b Add files via upload 2020-11-04 19:55:02 +01:00
J-Dunn
eb2625ef11 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
a7af3b33ae 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
00dc2c8476 Path: use 4-space indentation, and keep lines short 2020-09-15 00:56:17 -05:00
sliptonic
0fa628928d [PATH] make -custom- op compliant. Improve gcode_pre importer 2020-06-10 16:49:46 -05:00
Gabriel Wicke
86cd9f2124 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
979a32800d 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
d0d2096fc8 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
ea2b3f9f01 Adding HEIDENHAIN CNC Mill post-processor for PathScript 2020-05-08 21:50:23 +02:00
Gauthier
21c377f554 [Path] fix tool change and Feature missing output 2020-03-30 20:01:47 +02:00
Eric Trombly
0102ed64b5 Change example_pre to use a list of commands instead of one string 2020-03-22 17:59:16 -05:00
Eric Trombly
d68a5c687b split paths on M6 and change placement to use offset 2020-03-22 12:15:57 -05:00
Eric Trombly
22bf3a83ec split paths on M6 and change placement to use offset 2020-03-22 12:10:11 -05:00
Eric Trombly
3f47c20d14 split paths on M6 and change placement to use offset 2020-03-22 12:06:36 -05:00
Eric Trombly
95b7efebbc change preprocessor to split lines 2020-03-22 12:06:36 -05:00
Eric Trombly
5fad71e07f initial work for modifying path of imported gcode 2020-03-22 12:06:36 -05:00
sliptonic
c02b0e43dd Merge pull request #3188 from Schildkroet/grbl-post
[Path] Updated grbl post processor
2020-03-17 14:02:53 -05:00
sliptonic
a4e9992ea7 Merge pull request #3195 from dubstar-04/post/Mach3-Mach4
[Path] Post/mach3 mach4
2020-03-17 14:01:47 -05:00
Daniel Wood
68dc0d9874 [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
f5d2ce252c [Path] fix tool changes (Revert previous change) 2020-03-16 22:24:14 +00:00
Eric Trombly
397813f8b9 initial work for modifying path of imported gcode 2020-03-16 10:17:32 -05:00
Patrick Felixberger
fdfee417fa Updated grbl post processor 2020-03-16 00:11:24 +01:00
Daniel Wood
b1d9d9f98d [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
e8816e9c42 Fixed coolant with dressup 2020-03-03 21:27:31 +01:00
Patrick Felixberger
d4bb31d726 Added coolant support to grbl_post
Improved canned cycles

Added/translated comments
2020-03-03 21:27:31 +01:00
Daniel Wood
b53df3be57 Stop the spindle before tool changes. 2020-03-03 21:27:31 +01:00
Daniel Wood
1d90dd524b Handle coolant for ops using dressups 2020-03-03 21:27:31 +01:00
Daniel Wood
4ea4e0e5dc skip inactive operations 2020-03-03 21:27:31 +01:00
spanner888
41f036d84c Added to grbl_post optional bCNC block header for every job operation
Added in minimal way, ie did not convert ALL existing comment blocks to
bCNC format, as either existing seemed preferred, or already wored as
bCNC header blocks.

Enabling with --bcnc argument (not default) adds () gcode comment blocks
in bCNC format to provide colapsable blocks that can be dragged in bCNC
to edit or alows en/diable in the job.
2020-02-06 09:42:38 +08:00
vocx-fc
2e0651da40 Path: small fix for Python 2 syntax 2020-01-23 22:25:50 -06:00
sliptonic
e158b3b534 Fix units in dynapath post processor.
Also added common args struture from linuxcnc post.
2020-01-18 13:24:20 -06:00
Rene 'Renne' Bartsch
8d42cc8785 Refactor comments
Refactor comments.
2020-01-14 12:52:59 +01:00
Rene 'Renne' Bartsch
3f8e8f893d Refactor if statement
Refactor if statement
2020-01-14 12:52:59 +01:00
Rene 'Renne' Bartsch
c7e12e0951 Add comment about M01 gCode.
Add comment about M01 gCode.
2020-01-14 12:52:59 +01:00