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
696 stars 176 forks source link

How can i set tool offset? #402

Closed MayHanGroup closed 6 months ago

MayHanGroup commented 6 months ago

Hi, when i import a svg file with a rect size100mm*100mm, the gcode example : G01 X100.000 Y0.000 G01 X100.000 Y100.000 G01 X0.000 Y100.000 G01 X0.000 Y0.000

But when i use a tool diameter 10mm , i will get the path should be like X5.0 ~ X95.0 actually, i want to find any setting,but not found. can you help me?

svenhb commented 6 months ago

For such a simple form, you could use "Gcode from shape" using inside or outside shape option: image

You can also try "Radius compensation" with positive or negative value for the radius of the tool (it may fail on complex shapes): image

MayHanGroup commented 6 months ago

oh,it's great! and also, is the polygon can use pocket function? i find the option in "Create Simple shapes" , but in the form "Create Jog path" i can't find any options, is jog path not support pocket?
such like this path QQ图片20240522214624

svenhb commented 6 months ago

You could try hatch fill for this purpose: image

SimonJohnCastle commented 6 months ago

If you want to jog around and use this as a basis for milling pockets then take a look at this thread https://www.rcgroups.com/forums/showthread.php?3777429-Conversational-Programming-CAD-Free-CNC

svenhb commented 6 months ago

So you would like to have a mix of "Create Jog path" and "Create simple shapes"? A "Jog path" including pen up/down function to create shapes like in the link you provided.... Have to think about. Did you try to use Inkscape and copy&paste the shapes?

MayHanGroup commented 6 months ago

No, i don't know how to use Inkscape . when i try to use the "Hatch fill" setting and the "Radius compensation" both , the result looks not as expected . i there any way to using tool diameter auto when the gcode generate? i means like the settings in the form "Create Simple shapes" .
3 1 2

svenhb commented 6 months ago

i there any way to using tool diameter auto when the gcode generate?

Not yet. The problem would be, how to determine if the offset should be inside or out side the shape. You must follow a "design rule" when making your drawing (CW and CWW path). What tool do you use (if not inkscape or LibreCAD - both I like to use). E.g. a picture frame: for the outside contour, the offset must be outside, for the inside contour inside. If the tool-offset is to the left, the outer contour must be CW and the inner CCW. image

MayHanGroup commented 6 months ago

ok i know. thank you for your help. @svenhb