FullControlXYZ / fullcontrol

Python version of FullControl for toolpath design (and more) - the readme below is best source of information
GNU General Public License v3.0
672 stars 78 forks source link

Disable extrusion for moving to start point of circle or other shape #62

Closed cde139 closed 9 months ago

cde139 commented 10 months ago

I'm wondering if there's a way to disable extrusion when the print head is moving to the starting point of a circle. I'm using using a custom printer with custom start and end gcode and a custom primer, and then want to go into my actual print. I've noticed that when I define a circle, the line from where I am at the end of my primer to the beginning of the circle is extruding.

The obvious workaround is to do a travel_to to the starting point of the circle but then I have to code in that starting point based on the center point, start angle and radius. Not the end of the world but I could see this getting cumbersome for more complex shapes & gcodes.

image

fullcontrol-xyz commented 10 months ago

I think you mean your primer is hard coded in your start gcode rather than using your own custom FullControl primer. If so, you can use the 'travel' primer type in FullControl's GcodeControls and I think that will solve your problem

https://colab.research.google.com/github/FullControlXYZ/fullcontrol/blob/master/docs/colab/gcode_controls_colab.ipynb

A tip... you can get the start point of the circle with steps[0] or similar. So when you've created your design, you can just add this line of code to avoid the maths stuff you mentioned ... steps = fc.travel_to(steps[0]) + steps