Git Product home page Git Product logo

snapmaker_cnc_post_process's Introduction

SNAPMAKER CNC

Background

  1. Basic workflow explaination.
  2. Basic workflow explaination in video.

Snapmaker Luban / Snapmakerjs(Old version)

If you want to do some simple job. You can use any svg editor (Like Inkscape or Adobe Illustrator) to do the design, then export .svg file. Using Snapmaker Luban to generate the gcode.

Snapmaker Luban also supports relief for small landscape.

Generate gcode using Luban

Fusion360

We can do more serious tasks by using Autodesk Fusion360.

Generate gcode using Fusion 360

Support software status overview

Software Status link versions
Snapmaker Luban Stable
Fusion 360 Stable snapmaker-fusion360-configuration-20180730 v2.0.9937
FreeCAD Testing snapmaker-freecad-configuration v0.18
ArtCAM Testing snapmaker-artcam-configuration v2008
Mastercam TODO
Aspire Testing snapmaker-aspire-configuration v9.514
Vcarve Testing snapmaker-vcarve-configuration

Gcode

Similar to Fusion 360, it needs some development effort to create post process script for different CAD platform. These scripts are responsible for converting 3D trajectory (representation) into concrete Gcode dialects. There are Gcode dialect differences between firmwares (Vendors).

We can refer to Gcode Reference to build post for specific software.

Summary

The documentation is still under active development.

Leave a message in this thread about what CAM software you are using. If you want official or community support, this is important.

snapmaker_cnc_post_process's People

Contributors

scarygami avatar warrenhodg avatar whimsycwd avatar zjiefee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snapmaker_cnc_post_process's Issues

FreeCAD: Wrong output

I want to use FreeCAD, the Snapmaker Original and the snapmaker_freecad_post.py script to generate my gcode, but sadly when I load the gcode in the luban workspace it's messed up.

FreeCAD:
Bildschirmfoto von 2023-04-03 16-33-42

Luban Workspace:
Bildschirmfoto von 2023-04-03 16-35-29

Maybe it's a problem of my CAD knowledge, but as I found this issue #23, I thought it might be a problem with the snapmaker_freecad_post.py.

Here are my FreeCAD-file and the generate gcode:
Test_Cube.zip

ArtCam Pro 2008 errors line 7 and with import of tool box

Copied Snapmaker_arc_cnc.con to the C:\Program Files (x86)${ArtCAM}\postp. Restarted the ArtCAM. Says "File: Snapmaker_arc_cnc ConfigPostP: Syntax Error Line 7 "

Pressed ok another Errors 2 times: Toolpath Manager Library (did not have before).

Tried to copy import ** Snapmaker-2.0-CNC-Tools.tdb ** and got error: Snapmaker-2.0-CNC-Tools.tdb has a bad format.

Transferring file from usb to lcd fails

After compile my cnc code from vcarve pro. I copy them to my usb put them into the snap2 and transfer the file over to lcd. And it acts like it is transferring but it doesn't it stays in the preview screen
image

I cannot insert the video it is in the wrong format

G4 is not interruptible.

I found that the G4 was not interruptible with the "Stop" button of the Touch Display. The only thing I could do was turn off the power supply. I think the Stop function should be able to interrupt anything and everything, similar to having an emergency stop function.

postprocessor does not work in FreeCAD 0.20.1 - generates error

Hi,

I use this FreeCAD version

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * LCInterlocking

With some of the other preprocessors I was able to generate the gcode successfully (marlin, linuxcnc, centroid).

After the error occurred with the snapmaker preprosseor of this repository for the first time, I tried to adapt the imports to the other preprocessors:

# sjj, 2023-01-02, begin
# Changed because of an error while postprocessiong
# see https://forum.freecadweb.org/viewtopic.php?p=640402#p640402
# see other postprocessors of version 0.20.1
#
#from PathScripts import PostUtils
#from PathScripts import PathUtils

import PathScripts.PostUtils as PostUtils
import PathScripts.PathUtils as PathUtils
# sjj, 2023-01-02, end

Unfortunately without success
The gcode generation stops with this error:

15:02:30  snapmaker_freecad_post gcode postprocessor loaded.
15:02:40  snapmaker_freecad_post gcode postprocessor loaded.
15:02:43  snapmaker_freecad_post gcode postprocessor loaded.
15:02:43  <Path.Area> Area.cpp(2691): edge break point not found
15:02:43  <Path.Area> Area.cpp(2691): edge break point not found
15:02:43  <Path.Area> Area.cpp(2691): edge break point not found
15:02:43  <Path.Area> Area.cpp(2691): edge break point not found
15:02:43  <Path.Area> Area.cpp(2691): edge break point not found
15:02:43  <Path.Area> Area.cpp(2691): edge break point not found
15:02:43  helix_generator(59).generate((helix: <0.0, -56.0>
 hole radius 5.2
 inner radius 0.0
 step over 0.5
 start point 0.0
 end point -5.1
 step_down 6.0
 tool diameter 6.0
 direction CW
 startAt Inside))
15:02:43  helix_generator.DEBUG: (124) - (single helix mode)

15:02:43  helix_generator.DEBUG: (144) - Radii: [2.2]
15:02:43  helix_generator(59).generate((helix: <0.0, -56.0>
 hole radius 5.2
 inner radius 0.0
 step over 0.5
 start point 0.0
 end point -5.1
 step_down 6.0
 tool diameter 6.0
 direction CW
 startAt Inside))
15:02:43  helix_generator.DEBUG: (124) - (single helix mode)

15:02:43  helix_generator.DEBUG: (144) - Radii: [2.2]
15:02:46  post: snapmaker_freecad(D:/OneDrives/OneDrive - La Gondola Barocca/_PCBüroLustheim/Eigene Dateien/CAD, Designer, Publisher/_CNC-Fräsungen/Vakuumplatte/vakuumplatte200x200.snapmaker.cnc, )
15:02:46  snapmaker_freecad_post gcode postprocessor loaded.
15:02:46  Show editor = 1
15:02:46  postprocessing...
15:02:46  Running the Python command 'Path_Post' failed:
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD\0.20.1.stable\Mod\Path\PathScripts\PathPost.py", line 437, in Activated
    (fail, rc, filename) = self.exportObjectsWith(slist, job)
  File "C:\Program Files\FreeCAD\0.20.1.stable\Mod\Path\PathScripts\PathPost.py", line 216, in exportObjectsWith
    gcode = processor.export(objs, filename, postArgs)
  File "C:\Program Files\FreeCAD\0.20.1.stable\Mod\Path\PathScripts\PathPostProcessor.py", line 105, in export
    return self.script.export(obj, filename, args)
  File "C:\Program Files/FreeCAD/0.20.1.stable/Mod/Path/PathScripts/post\snapmaker_freecad_post.py", line 204, in export
    job = PathUtils.findParentJob(obj)
  File "C:\Program Files\FreeCAD\0.20.1.stable\Mod\Path\PathScripts\PathUtils.py", line 405, in findParentJob
    for i in obj.InList:

'_TempObject' object has no attribute 'InList'

Another google search for the error text at the end didn't get me anywhere.

Thank you for your help.

Many greetings

Sepp

Missing and outdated F360 info

Below is pasted verbatim from my forum post. Sorry if double posting isn't useful but unsure which is a better feedback location. Here's the post:

https://forum.snapmaker.com/t/fusion-360-cnc-configuration/11191

And the issues:

I want to record a few things I've learned about setting up tool and post processor libraries in Fusion 360 that might save the next person some time.

Specific issues I've found so far this guide aims to correct:

  • File locations are wrong for MacOS (on the Autodesk site itself!)
  • SM nor some Autodesk articles do not mention F360 Cloud library features which are super helpful if you run Fusion from multiple computers.
  • SM includes a "tool library" file in the download page, yet does not document how to use that file.

Getting Started

Even though it has some issues, I do recommend reviewing the SM manual, CNC section before proceeding:

https://manual.snapmaker.com/cnc_carving/generate_g-code_using_fusion_360/42-generate-g-code-using-fusion-360.html

You will also need to download the Configuration Files & Tool Libraries from the SM Downloads page

Post Processor Installation

Mac or Windows -- do yourself a favor and ignore this article (only mentioned as it's higher in Google search results AND linked to from SM manual):

https://knowledge.autodesk.com/support/fusion-360/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-add-a-Post-Processor-to-your-Personal-Posts-in-Fusion-360.html

Instead, follow the instructions in this article to upload your .cps file (which you can download from Snapmaker here) to a Cloud post folder.

https://knowledge.autodesk.com/support/fusion-360/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-install-a-custom-post-processor-in-Fusion-360.html

Skip the Mac or Windows sections and follow the Cloud Installation steps which I'll paste in part below. Why? Because there is no reason in recent F360 versions to use a "local post processor". They force you to use their cloud service anyway, so you may as well benefit from it.

Cloud Installation

  1. Launch Fusion 360.
  2. Go to your Profile Name in the top right corner -> "Preferences".
  3. Go to the "General" -> "Manufacture" settings.
  4. Make sure that "Enable Cloud Libraries" is activated.
  5. Save the Preferences.
  6. Navigate to "Assets" in the Data Panel.
  7. Double click the "Assets" > "CAMPosts" folder to enter it.
  8. Use the Upload button to upload the desired post processor from the local machine to the "Assets" > "CAMPosts" folder.

Tool Library Install

The steps are very similar to the previous section, but instead upload your .tools file to the "CAMTools" folder. You can find the longer version here:

https://knowledge.autodesk.com/support/fusion-360/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-install-a-cloud-tool-library-in-Fusion-360.html

TODO

  • notify the SM team about the doc bugs
  • see if this machine library feature in F360 will be useful and perhaps create a SM machine for it.

Console not echoing thru WiFi connection

I understand that this is a known issue, just want to track its repair.
When executing commands thru the console, the results are not echoed back when connected thru WiFi.

(Aspire) Generated spindle speed is not accepted by Snapmaker controller

The PP script generates a gcode where the spindle speed is written like M3 S12000 (RPM).
The snapmaker firmware does only accept spindle speed written in percent like P100 (which is 12000 rpm / max speed) or P50 (is 6000 rpm).

My personal workaround was to use this line in the pp file:
VAR SPINDLE_SPEED = [S|A| P|1.0]
And configure the speed in tool in percent (e.g. 100 or 75 or 50...)

aspire or vcarve pp not processing the tool paths properly

I doing some vcarve practice files. and when I set the work origin, the ran my boundary every this was great. I ran the file and it started to cut circles. not the file. I let is run for a bit until it started to cut threw my snapmaker hold-downs. i stopped it and loaded the gcode into luban and omg I was surprised at what I saw. so then I reinstalled the postprocessor and recalculated the file and loaded it into luban and now at least it shows it being a good process it is not cutting the entire file. I have tried to recalculate the file several time with different outcomes.

image

image

image

image

Manual Leveling broken

The mesh is written in the wrong order. Points 1,5,9 are correct, everything else is mirrored about the X=Y line. I understand this is known, I just wanted it in the list to track it's repair.

Improvement for Rotary in Fusion 360

Hi,

I found a great improvement in the Fusion 360 post-processor for B axis. I tested it for a dew weeks now and speed is better and in relation with feed rate specified for the tool in use.

I don't know how to add or send a proposal for the change.

Someone can help me on this ? or if you want to try it it's only one line to add.

Small radius issues with PP for Vectric

I am using Vectric Desktop and the Vectric PP posted here. Most of it runs fine but when the system encounters small rounded corners, it comes to a very slow pace. It takes a long time to process that round corner and then quickly speeds up to normal once it has passed it.

Load vs Upload...

Some instances of the term "Upload" in Luban should really be "Load". You "Load" to the Luban application, you "Upload" to the Snapmaker. The term "Send via WiFi" is appropriate. It could also be "Upload to Snapmaker".

Full G & M code listing in console

List the FULL set of G & M codes available in Luban console. I understand that many of these are for expert or debugging use and they should be highlighted as such.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.