Inkscape Gcodetools plug-in English support forum

cnc-club.ru for English speaking users

What function should we develope next?

Можно выбрать до 5 вариантов ответа

 
 
Результаты голосования

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

Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Generated Gcode in EMC2 (1316797 просмотров) <a class='original' href='./download/file.php?id=508&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (21.99 КБ)</a>
Generated Gcode in EMC2
TypeExtension of vector
graphics editor Inkscape
DeveloperGcodetools develop team
Written inPython
OSCross-Platform (Windows, Linux, MacOS)
Version1.6.03
LicenseGNU GPL
Downloads7800+

Gcodetools

Gcodetools is a plug-in for Inkscape. It prepares and converts paths from Inkscape to Gcode, using biarc interpolation.
This article is unfinished. You can help cnc-club expanding it.
Screenshots and photos are needed. Please post them at this thread.
Features (для просмотра содержимого нажмите на ссылку)

Features

Preview of the generated Gcode in EMC (1319721 просмотр) <a class='original' href='./download/file.php?id=130&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1305824 просмотра) <a class='original' href='./download/file.php?id=772&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1312145 просмотров) <a class='original' href='./download/file.php?id=642&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1312310 просмотров) <a class='original' href='./download/file.php?id=631&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1247768 просмотров) <a class='original' href='./download/file.php?id=5429&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (89.93 КБ)</a>
Bears by Durachko
Export to Gcode
  • Export paths to Gcode
  • Using circular (biarc approximation) or straight line interpolation
  • Automatic path subdivision to reach defined tolerance
  • Multiply tool processing
  • Export Gcode in parametric of flat form
  • Including personal headers and footers
  • Choosing units
  • Multi-pass processing
  • Numeric suffix is added to generated files to avoid overwriting
Lathe Gcode
  • Compute trajectories for lathe
  • Fine cut
  • Define fine cut's depth
  • Define fine rounds
  • Two different computation functions for fine cut
  • Standard axis remapping

Path's area processing
  • Building area paths
  • Area paths could be modified
Engraving
  • Building trajectory according to the cutter's shape
  • Defining different cutter's shapes
Tool's library
  • Defining different tool's parameters (diameter, feed, depth step, penetration feed, personal Gcode before/after each path, cutters shape, personal tool's changing Gcode)
  • Tools can be managed by Inkscape's standard procedures (copy, delete, assigned to different layer)
  • Multiply tools processing
Orientation system
  • Applying scale along any axis
  • Apply rotate in the ХY plane
  • Apply translation along any axis
  • Apply transforms according to arbitrary points
Post-processor
  • You can create custom post-processor by writing down the commands or choose from the list of default post-processors
  • Scale and offset Gcode
  • Gcode commands remapping
  • Parameterize Gcode
  • Round floating point values to specified precision
Verifying tools for the scene
  • Select and remove small paths (area artefacts)
  • Tool's alignment check
  • Cutting order check
Plotter cutting
  • Export to Gcode for plotter with tangential knife. Forth axis A is knife's rotation.
Install (для просмотра содержимого нажмите на ссылку)

Install

Windows
Unpack and copy all the files to the following directory Program Files\Inkscape\share\extensions\ and restart inkscape
Linux
Unpack and copy all the files to the following directory /usr/share/inkscape/extensions/ and restart inkscape
Screenshots (для просмотра содержимого нажмите на ссылку)

Screenshots

Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb) (1319724 просмотра) <a class='original' href='./download/file.php?id=127&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1319730 просмотров) <a class='original' href='./download/file.php?id=103&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1319721 просмотр) <a class='original' href='./download/file.php?id=130&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Get latest version (для просмотра содержимого нажмите на ссылку)

Get latest versions

Latest stable version Gcodetools 1.7
gcodetools.tar.gz
Gcodetools 1.7
(75.25 КБ) 102141 скачивание
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 14967 скачиваний
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 10545 скачиваний
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27093 скачивания
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10328 скачиваний

Dev-version

You can try the newest development version by getting it from github repository https://github.com/cnc-club/gcodetools via web interface or using git clone git@github.com:cnc-club/gcodetools.git .
You'll need to run python create_inx.py to create inx files. After that install procedure is the same with the stable version.

Translations

Gcodetools is included into Inkscape v 0.49 so it will have native translations as other Inkscape's extensions. Until it is released you can use some self made translation packs:
Credits (для просмотра содержимого нажмите на ссылку)

Credits

Developers:
  • Nick Drobchenko (Nick)
  • Vladimir Kalyaev (Dormouse)
  • Henry Nicolas (Alfcnc)
  • Chris Lusby Taylor (ChrisInNewbury)
Translators:
  • John Brooker (greybeard from cnczone.com)
Develop (для просмотра содержимого нажмите на ссылку)

Develop

At the moment following features are being developed:
  • Plasma cutter extension
  • Turning lathe extension
  • Plotter extension
You can help us improve Gcodetools in several ways
  • Writing a report / bug report
  • Improve help and manuals
  • Publish G-codes / SVGs / other code
  • Publish photos / videos
  • Make a bug report
  • Help develop new features
  • Suggest a new feature
Tested on (для просмотра содержимого нажмите на ссылку)

Tested on

Linux
Ubuntu 9.10 14.04 + inkscape 0.48 (older Gcodetools versions also work with 0.46, 0.47)
Windows
Windows XP, Windows Vista, Windows 7 + inkscape 0.46, inkscape 0.47
MacOS
There are some reports on successful work on MacOs.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

peanutty420 писал(а):It happens with anything i create. it will add orientation points, but when i try to add tool and path to gcode it returns this same error.
Can you post error's text once again...
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

Hello. First of all thank you for wonderful inkscape extension!

I have question about cutting objects. I is hard to explain in english, but i will try.
I know how to create some simple gcode, and run linux cnc with this code to cut rectangle or a letter for example. But how to make a rectangle to not be smaller my diameter of my tool? I can manually make rectalne biggger for exmaple by 6 mm(my drill actually) but its more complicated in letters or non regular shapes. How to cut things "outside" of path and some holes in my shape "inside" of a path? Is this can be done with inkscape or linuxcnc? I don't want to make all letters bigger by 6 mm in inkscape.

I hope you can understand me :)
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

two ways:

1. offset paths in the inkscape. Ctrl+J and adjust offset in xml editor (Ctrl+Shift+X all sizes there are usually in px). Can be some artifacts while offseting some times you will have to fix them manually. (second way using inkscape - define Steps in preferences and then use Ctrl+( or Ctrl+) )
2. add G42 offset to Gcode. But it wont work on complex paths because sometimes offset totally changes the path. You will be warned if this situation occurs.
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

Thank you very much. Will check when i will be at home :)
F3rr31r4
Новичок
Сообщения: 3
Зарегистрирован: 07 авг 2014, 18:51
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение F3rr31r4 »

good afternoon
I am using the code for my cnc, and presiso generate a file from a drawing of three meters, however this design will have to be divided in half to be able to cut the first part, put the machine on pause and move the sheet manually cut the second part of the file. Someone has already done it the idea of ​​how to do?
grateful

Leandro
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

Hello.
I think you have to cut your project into 2 parts, and first cut one part, then move your material and then import second part of project and set beginning point in the same place like before without homing axes - i don't know how to exactly write this in english.

HTH
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

#459 Сообщение Nick » 10 янв 2014, 16:08
You can try to add G41/G42 into Tool's change Gcode.
But! If there are small segments in the sharp angles which can not be reached with defined tool's radius LinuxCNC will raise an error that those segments can not be reached and will refuse to execute the code.
As I've said offset is really complicated procedure... so even linuxcnc can not do it for every path...
Can you show an example how to do this? Or point me where i can see how to do this?
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

some details on G41/42 in linuxcnc :

http://www.linuxcnc.org/docs/2.4/html/g ... mpensation
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

Thank you, but i have no idea how can i use it? Do i have to edit file manually after exporting path to gcode or i can use file in gcodetools "Tool's change Gcode" and type someting there?
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

I use it by adding it manually to the gcode file. The fact is you need to choose between G41 and G42 depending on the design of your work. If you want to have a look at the attached files, I used it to cut some protective panel for electrical box. You will see here I needed to use only G42. But in some cases you will need both.

What I do to make sure the resulting path is ok is to run the file one time without adding G41/42 in a linuxcnc simulation install, and then I make the changes and I re-run the file without cleaning axis display, so I get the two pathes displayed : the original one wich in fact is the part outline, and the tool conpensated one, so I can check if I use the right command : if the new path is on the wrong side of the part outline, then I need to change between G41 and 42.
Вложения
plastron.svg
(52.34 КБ) 841 скачивание
DSC07383.JPG (5740 просмотров) <a class='original' href='./download/file.php?id=32016&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (74.17 КБ)</a>
DSC07385.JPG (5740 просмотров) <a class='original' href='./download/file.php?id=32017&sid=205a87e1e891ad32f55e9509189e2ea4&mode=view' target=_blank>Загрузить оригинал (61.75 КБ)</a>
plastron_0002.ngc
(11.02 КБ) 1106 скачиваний
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

Thank you very much! That explains a lot and example file was helpful. But can you show me your linux cnc tool table screenshot? I am getting error about tool compensation and don't know why, i guess i will have to ask on linuxcncs forum... When i will succesfully cut something i will paste photo.
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

what is the error you got ? I can't send you my tool table right now because the cnc computer is at my workplace. but it was nothing special, only a 6mm cylindrical endmill.
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

I think it was ""Length of cutter compensation entry move is not greater than the tool radius" I am not sure if it has something to do with table tool even.

My table - i use 6mm drill
Изображение

Error:
Изображение

Sample file from inkscape:
https://dl.dropboxusercontent.com/u/396 ... t_0001.ngc

SVG file:
https://dl.dropboxusercontent.com/u/3960024/test.svg

How do you set size of orientation points? I have always 100 - do i have to change this manually?
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

no, this has nothing to do with the tool table. in fact gcodetools generates a tool path wich starts and ends at the exact same place, right on the part edge. but for G41/G42 to work, you need an entry move that starts away of that part edge, and that is longer than the tool radius. You can check on my ngc file, and with my svg file : try generating the ngc file, and compare with mine to see how and where I added manually some moves.

some good explanations here : http://www.linuxcnc.org/docs/2.4/html/g ... Entry-Move
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

I'm still searching - when i generate file, it is a little different. It doesn't have "G01 X[661.519941*#10+#6] Y[439.565468*#10+#7] Z[-8.000000*#11+#8] F [#21]" and first few lines with this things. And what about orientation points, how it's made to be like 675 in yours file? Do you chaneged it manually?
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

yes, I canged manually the value to fit my design

the #10 #6 is because i selected "generate prametric Gcode" or somethink like that. Try with the different options.
but anyway, that doesn't matter for see the movements I added manually for the entry points in each cut.
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

Actually i gave up - i have to read more about gcodes... I will just make obejcts bigger by diamenter of my tool.
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

well, the explanation for entry moves on the linuxCNC website is pretty clear. I d'on't see where you are stuck ?
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

I couldn't find lines that you added - i think i have to experiment with very simple gcode and then try. I think i understand instruction about entry point but don't know how to add this point for rectangle in example. Maybe on my vacation i will have more free time to read more about gcodes.
narvf
Кандидат
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf »

Im sorry for making offtopic here :(

With this example:

Код: Выделить всё

%
(Header)
(Generated by gcodetools from Inkscape.)
(Using default header. To add your own header create file "header" in the output dir.)
(tool 6mm in linuxcnc table)
T1 M6
M3
(Header end.)
G21 (All units in mm)

(Start cutting path id: rect2987)
(Change tool to Cylindrical cutter)

G00 X-10 Y60
G41
G00 Z5.000000
G00 X0.000000 Y50.000000

G01 Z-1.000000 F100.0(Penetrate)
G01 X49.999999 Y50.000000 Z-1.000000 F400.000000
G01 X49.999999 Y0.000001 Z-1.000000
G01 X0.000000 Y0.000001 Z-1.000000
G01 X0.000000 Y50.000000 Z-1.000000
G00 Z5.000000

G40

(End cutting path id: rect2987)

(Footer)

M5
G00 X0.0000 Y0.0000
M2

(Using default footer. To add your own footer create file "footer" in the output dir.)

(end)

%
I move to x-10 and y 60 and i still get message about "Length of cutter compensation entry move is...." with x-3 and y53 it's still not working.
Ответить

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