svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
669 stars 177 forks source link

Tool path questions #368

Closed Stoli123 closed 6 months ago

Stoli123 commented 9 months ago

I don't have a machine hooked up yet. Just checking out the software to see if it will be good fit for my pen plotter project. So far I have been looking at the image import feature and running simulations. Import a black and white bitmap. Desired output is a stippling style print. Plot direction set to horizontal. The resulting g-code always starts the plot in the upper left, moves back and forth across every line until it gets to the bottom (y=0) . G-code looks correct.

  1. Is there a way to change the direction of the path? For instance, can I start at the bottom and work up?
  2. The pen always moves across the entire line even when there is no activity (pen down). How can I eliminate the g-code where there is no pen activity?

Thank you. It's really impressive so far.

svenhb commented 9 months ago

Hi, here you fin a bit more info (I need to update...): https://grbl-plotter.de/index.php?id=form-image&setlang=en 1) this option are avaiable: image

For instance, can I start at the bottom and work up?

You may try to use "from 2view" with your own pattern.

2) just disable "Only left to right"

Desired output is a stippling style print.

Do you know the other converters? https://grbl-plotter.de/plotterfun/ https://grbl-plotter.de/plotterfun-width/ https://grbl-plotter.de/plotterfun-color_2020/

Stoli123 commented 9 months ago

Thank you. I think I need to read more about the pattern feature so I can better understand how they are used. I think the answer to both of my questions is there. I tried "from 2D view" with some of the example patterns but the result was not desirable.

Thank you for the reply. Could you provide a link to information on patterns?

I understand the "Only left to right" feature, but that does not prevent the tool from traveling to the far left and right extents even if there is no pen up/down movement. Here is a pic that hopefully explains what I am talking about. Even though the pen is not used until Y=500, the tool path includes complete horizontal passes on Y=517 down to to Y=501 (shown in green).

image

svenhb commented 9 months ago

You are right, the tool always moves to the far left or right. I will check if can add an option to prevent this behavior.

Could you provide a link to information on patterns?

Inside the subfolder ...GRBL-Plotter\data\examples you find some pattern_. files, which you can select from here image

Perhaps this video helps: https://www.youtube.com/watch?v=7Nvf4UwK_yk&t=522s

Stoli123 commented 9 months ago

I'll check out he video when I get a chance. Thanks again!!!

I'm getting really excited about this project and look forward to using GRBL-Plotter. From what I have seen so far, I think it will be a good fit.

svenhb commented 9 months ago

Sounds good. I will try to help and modify code if needed and useful.

Stoli123 commented 8 months ago

If you choose to incorporate such a feature, that would be great. However, it would be fairly easy for me to create a script in python, or whatever, that removes the extraneous movement between the pen ups and pen downs. I don't plan on using GRBL Plotter to send the g-code directly to the machine. I will probably just use it to create the g-code files which I will upload to the machine with a different program. Having to run a script on the files before they are uploaded would be fairly easy and quick.

svenhb commented 8 months ago

Try this test version: https://github.com/svenhb/GRBL-Plotter/releases I use an other algorythm now for line by line and added more options: image

Stoli123 commented 8 months ago

That looks great. The new options are very nice. I haven't had much time to actually plot yet, but the simulations look good. Thanks.

Stoli123 commented 8 months ago

Just wanted to express my appreciation for all you have done with this software. I am involved in a project where I am writing my own web based interface to a pen plotter using java (.JSP and JavaScript). I have only been at it for a few weeks, but I have a great appreciation for what you have accomplished. Being able to import all the different formats that GRBL-Plotter does would be nice but I just don't have the time. I am planning on using your program for some conversions but it would be so nice to be able to integrate your code so the conversions could be done within the web app, "on the fly" so to speak. Anyways, thanks for making your project available on github. The new Image conversion options you wrote are working great.

svenhb commented 8 months ago

Thank you for the praise. I also translated some algorithms from Python and Javascript, which was sometimes not so easy...

Stoli123 commented 8 months ago

Quick question... It's probably staring me in the face, but how do I reverse the direction of a plot? If I open an SVG file with one long continuous path, it seems to start at the nearest point to the origin. Is there an option to plot the path in reverse?

Disregard. I just found it. I knew it was there. There are so many options that some are hard to find. You really have thought of everything!