Area pocketing tuturial

cnc-club.ru for English speaking users
Аватара пользователя
Nick
Мастер
Сообщения: 22769
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1719
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Area pocketing tuturial

Сообщение Nick »

This tutorial will cover one of the ways to create area pocketing using Inkscape and Gcodetools.

What do we have: a bitmap with with logo.
What do we want: cut it from piece of material with 0.125 cutter.

Preparing the bitmap

Original bitmap:
image001.jpg (10758 просмотров) <a class='original' href='./download/file.php?id=657&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (398.92 КБ)</a>
Open it with Gimp (Gimp is a graphics editor powerful as Photoshop and free as Inkscape. http://www.gimp.org).
0001 gcode area pocketing gimp theshhold.jpg (10758 просмотров) <a class='original' href='./download/file.php?id=658&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (188.61 КБ)</a>
And apply Colors->Threshold...
0002 gcode area pocketing gimp theshhold.png (10758 просмотров) <a class='original' href='./download/file.php?id=659&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (148.15 КБ)</a>

Trace image using Inkscape

Add image to the Inkscape:
0003 gcode area pocketing inkscape trace bitmap.png (10758 просмотров) <a class='original' href='./download/file.php?id=660&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (126.36 КБ)</a>
Select it and Apply Path->Trace bitmap... with the following parameters:
Note the Remove BackGround checkbox!
0005 gcode area pocketing inkscape trace bitmap.png (10758 просмотров) <a class='original' href='./download/file.php?id=661&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (53.34 КБ)</a>
0007 gcode area pocketing inkscape trace bitmap.png (10758 просмотров) <a class='original' href='./download/file.php?id=662&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (37.61 КБ)</a>
You should got the following:
0004 gcode area pocketing inkscape trace bitmap.png (10758 просмотров) <a class='original' href='./download/file.php?id=663&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (211.48 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22769
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1719
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Area pocketing tuturial

Сообщение Nick »

Prepare the path

It will be useful to Break path apart because different parts will need different options.
So do Path->Break apart or press (Ctrl+Shift+k) I definitely recommend to use shortcuts it will increase your working speed.
That's what you'll see:
0008 gcode area pocketing inkscape prepare the path.png (10757 просмотров) <a class='original' href='./download/file.php?id=664&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (147.36 КБ)</a>

It's not good. We have to fix that hole.
There's 2 ways to fix it:
1. Edit nodes using node tool (F2).
You'll need to break path at th selected points (using the button in the toolbar that shows one node become two not connected nodes)
Move nodes to correct the error
And then join selected end nodes with a new segment.
0011 gcode area pocketing inkscape prepare the path.png (10757 просмотров) <a class='original' href='./download/file.php?id=665&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (137.27 КБ)</a>
2. Or just draw a patch using Bezier tool (Shift+F6) and then add it to original path (Ctrl+Shift+"+").
0010 gcode area pocketing inkscape prepare the path.png (10757 просмотров) <a class='original' href='./download/file.php?id=666&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (134.89 КБ)</a>
Break path apart
Remove fill from the path and add stroke and press Ctrl+Shift+K.
0013 gcode area pocketing inkscape prepare the path.png (10757 просмотров) <a class='original' href='./download/file.php?id=667&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (361.42 КБ)</a>
Clear some dust:
Set stroke width to 5px or larger to see the dust better.
0015 gcode area pocketing inkscape prepare the path.png (10757 просмотров) <a class='original' href='./download/file.php?id=668&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (349.96 КБ)</a>
Combine path together
We want to combine paths together in several paths which we will offset separately.
I suggest to create 4 paths:
1. Points that are near the biggest circle.
2. Text
3. Circles
4. The map
So select all the "points". You can use a brilliant Inkscape's feature "select by touch". Press Alt+Shift and start drawing over the paths you want to select.
Then pres Ctrl+K to combine the paths. You can add fill color to be sure that all paths are combined properly. I've forgot to select one hole from the "B" letter and combined it later. (Just select them again and press Ctrl+K.)
0017 gcode area pocketing inkscape prepare the path.png (10757 просмотров) <a class='original' href='./download/file.php?id=669&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (281.2 КБ)</a>
I've add different colors to different path types:
0018 gcode area pocketing inkscape prepare the path.png (10757 просмотров) <a class='original' href='./download/file.php?id=670&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (285.16 КБ)</a>
Here's svg that you should got:
Вложения
gcode area pocketing.svg
(116.44 КБ) 1146 скачиваний
Аватара пользователя
Nick
Мастер
Сообщения: 22769
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1719
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Area pocketing tuturial

Сообщение Nick »

Offset the path

The hardest thing while calculation pocketing is to offset the path. It's really hard to be calculated and often gives bad result. For simple paths offset could be easier and for them you could try to use Gcodetools axiomatization. But this path is really bad one, so we'll better offset it by hand.

There are two ways to create offset in Inkscape. First dynamic offset - it fast but nasty. Other doing offset one by one using Path->Inset (Ctrl+"(") and Path->Outset (Ctrl+")"). This way gives more clear offset.

So lets start.

First press Ctrl+Shift+P to open preferences dialog. Go to Steps section.
We'll need to configure Inset/Outset value.
If we use 0.125 inch cutter first offset should be at 0.0625 inch it is exactly 5,625 px. 1inch = 90 px.
Insert 5.625 to Inset/Outset value. Do not close the dialog we'll need it in some seconds so just make it smaller.
Select the path and press Ctrl+"(". You'll see that path has been offsetted. We've made our first cutting path.
0020 cam area pocketing inkscape.png (10757 просмотров) <a class='original' href='./download/file.php?id=672&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (321.15 КБ)</a>
From now we can increase offset step up to 0.125in or 11.25px. But we can use smaller value from the one side it would increase loops number, but from the other we'll get better cut.
Let's use 10px as offset step. So enter 10 into the preferences dialog.
Select the path and make a copy of it by pressing Ctrl+D.
Then create new offset by pressing Ctrl+"(".
Continue pressing Ctrl+D and Ctrl+"(" until path disappears.
You should see something like this:
0021 cam area pocketing inkscape.png (10757 просмотров) <a class='original' href='./download/file.php?id=673&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (286.21 КБ)</a>
If you see some errors you can try just change the offset step a bit, for example from 10 to 10.1 px

Proceed to other paths:
Text
Text has many thin places and corners so I recommend to do all offsets using 5.625 offset step.
0022 cam area pocketing inkscape.png (10757 просмотров) <a class='original' href='./download/file.php?id=674&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (355.95 КБ)</a>
Map
To male map's line more sharp I recommend to live one copy unoffsetted path. It would make the line thicker but more accurate.
As we have left original path we can start with 10px offset step.
0024 cam area pocketing inkscape.png (10757 просмотров) <a class='original' href='./download/file.php?id=675&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (381.72 КБ)</a>
Circles
We can cut the circles as is.

Finally the path is ready

It took me about 5 min to create the path and 2 hours to write it all down :). Probably it would take you longer to reed this path than do it yourself :D.
Аватара пользователя
Nick
Мастер
Сообщения: 22769
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1719
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Area pocketing tuturial

Сообщение Nick »

Now let's export our paths to Gcode!

We'll need:
  • A tool to cut with
    Create a tool. Go to Extensions -> Gcodetools -> Tools library. You can chose cylinder or default tool. Press apply.
    A new tool will be created.
    You can change the parameters using Text tool "F8". After you've change the parameter do not press "enter" just click somewhere else or chose select tool (F1).
    All you have to fill in are feed, penetration feed and depth step.
    0027 gcode tools tool library.png (10757 просмотров) <a class='original' href='./download/file.php?id=676&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (220.22 КБ)</a>
  • 2 orientation points
    Create orientation points. Go to Extensions -> Gcodetools -> Orientation. Fill in surface and depth values. (Surface 0, depth -.2). And click add.
    You should get something like this:
    0028 gcode tools tool library orientation points.png (10757 просмотров) <a class='original' href='./download/file.php?id=677&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (304.97 КБ)</a>
    Unfortunately due to some improvements Orientation points do no take into account that you are using inches.
    I'll fix it soon. But you can fix it manually.
    Move orientation group along X axis to 0.0
    0030 gcode tools tool library orientation points.png (10757 просмотров) <a class='original' href='./download/file.php?id=678&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (304.83 КБ)</a>
    Double click at right arrow to go into the orientation group. Click at right arrow to select arrow and the text. And move it along X axis to 10in.
    0031 gcode tools tool library orientation points.png (10757 просмотров) <a class='original' href='./download/file.php?id=679&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (306.4 КБ)</a>
    Using Text tool (F8) change (100.0; 0.0; -0.20000000298) to (10.0; 0.0; -0.20000000298).
    Do not worry about this value "-0.20000000298" it's the most accurate interpretation of -0.2 by floating point it wont mess up :)!
    0032 gcode tools tool library orientation points.png (10757 просмотров) <a class='original' href='./download/file.php?id=680&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (180.91 КБ)</a>
  • Some setting up
    Open Extensions -> Gcodetools -> Path to Gcode
    Go to Preferences tab. Set up "directory", "Z distance over blank", "units".
    Go to Path to Gcode tab. Set up "Biarc interpolation tolerance" with '0.01".
0034 Cam Path to Gcode.png (10757 просмотров) <a class='original' href='./download/file.php?id=681&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (45.13 КБ)</a>

Press Apply and you should get the Gcode!

Снимок--home-nick-Design-cnc-club.ru-tutorials-gcode area pocketing.svg - Inkscape-2.png (10751 просмотр) <a class='original' href='./download/file.php?id=683&sid=a9c03f5a1d5dc911995df5c5c378b75a&mode=view' target=_blank>Загрузить оригинал (315.27 КБ)</a>
Вложения
output_0006.ngc
NGC file 1.7Mb.
(1.3 МБ) 1606 скачиваний
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Area pocketing tuturial

Сообщение Durachko »

Thanks root! I'll see if I can help out on this forum a little bit when I find some time. Once I get this logo "perfected" I'll post pictures and video and info on any changes I've made to your output.
Ответить

Вернуться в «English forum»