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 (1355973 просмотра) <a class='original' href='./download/file.php?id=508&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 (1358897 просмотров) <a class='original' href='./download/file.php?id=130&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1345000 просмотров) <a class='original' href='./download/file.php?id=772&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1351321 просмотр) <a class='original' href='./download/file.php?id=642&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1351486 просмотров) <a class='original' href='./download/file.php?id=631&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1286944 просмотра) <a class='original' href='./download/file.php?id=5429&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) (1358900 просмотров) <a class='original' href='./download/file.php?id=127&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1358906 просмотров) <a class='original' href='./download/file.php?id=103&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1358897 просмотров) <a class='original' href='./download/file.php?id=130&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 КБ) 103133 скачивания
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 15526 скачиваний
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 11068 скачиваний
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27861 скачивание
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10875 скачиваний

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.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

What editor do you use for coding in python ?
Have you coding convention ?
If i open gcodetools.py with drpython it says me you use tabs and spaces:

This document is mixed. It uses tabs and spaces for indentation.
DrPython may not be able to correctly display the class browser. Please use "Edit:Whitespace:Clean Up Indentation" to fix this.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

I'm using ordinal gedit to code. It has syntax hightlighting. And it's almost all I need :).
If you want more there are some plug-ins like function browser and others.

As indents I usually use Tab which equals 4 spaces.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

Ok ! I often use gedit too... but there i think greater to have an improve editor but if you use gedit i stay with it i think and put tab for indent.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

root писал(а):Hmmmm...

It goes from 20mm to Zcut position with the penetration speed. It's set so because it could be unsafe to go toward the surface at rapid speed.

You can reduce safe distance to reduce the time it takes to penetrate. Or make an replace
"G01 Z[0-9\-\.]+ F100.0" to "G00 Z0 \n \0" using regex.
Also you cat automate this procedure by using post-processor.
Hummm .. If i regex like you say... all the G01 in the ngc code were change...
And i'll go to plunge to the G00 speed... ok it's what i want, but the tool don't go to cut the material
because it's in Z -5...
Gcodetools seem to don't make the difference between the heigh of the material and the heigh of the Z safe zone because juste one Gcode line is set for the tool to go to the Top Zsafe to the end Plunge ....
So i ask me if postprocessor is able to work ? I have start to see in the postprocessor post.

And I must regex about like thats...
"G01 Z[0-9\-\.]+ F100.0" to "G00 Z0 \n \0 + G01 Z[-5]+ F100.0 "


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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Ups my mistake :oops: ...
Change
"G01 Z[0-9\-\.]+ F100.0" to "G00 Z0 \n \0" to
"G01 Z[0-9\-\.]+ F100.0" to "G00 Z0 \n \g<0>"

I'll explain:

"G01 Z[0-9\-\.]+ F100.0" this pattern means replace all strings starting from "G01 Z" followed by any combination of characters 0123456789-. and " F100.0".
"G00 Z0 \n \g<0>" replacement pattern means echo "G00 Z0" + new line + add the whole matching string.

In some realizations of regex \0 equals to \g<0> in python not.

PS Regexp is like a Jedi Force. When you know how to use it :mrgreen:.
So use The Regxep, Luke :hehehe:.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

It's strange. Why lxml thinks that the tree is empty when it's not...
I'll got to think about it some more :think:

To try to find what's the problem i have remove the Inkscape set in distrib.
Download inkscape source from launchpad wiht bzr.. compile and make install..
Inkscape 0.48 run fine, all the extension set by default work.
And in gcodetools if i want set orientation point it's ok.
If il set a tool it's ok...
But if I path-to-gcode nothing work and the others area, lathe etc... nothing...

Thank's hopping that's can give you element to help me to find were is the bug..
Последний раз редактировалось alfcnc 04 мар 2011, 15:14, всего редактировалось 4 раза.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

No unfortunately it can not help. It just says that there's an error because you've made "debuging" changes :freak:.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

what a crisis...Argh!#[{|[{@
kieferm
Новичок
Сообщения: 2
Зарегистрирован: 01 мар 2011, 02:46
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение kieferm »

Hi,

I have been working on making my own CNC. I built the hardware and am programming the microcontroller to accept g-code and move accordingly. I have been using your tools to create g-code files from images and the linear movement (G0, G1) works great. I am working on programming the controller to accept curves (G2, G3) but I am having trouble understanding the code generated by gcodetools. I understand that for a G2/3 code the X, Y values are the endpoint and the I,J are the center of the circle? Are I,J relative coordinates to X,Y from the same line? If you could give me a brief description of how the curves are calculated or point me to the section of code in the tool that handles it that would be great.

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

There are two modes of defining i,j and k that are supported by the Gcode.

First mode is absolute and it activates with G90.1 so IJK becomes absolute.
And second is relative to the arc's starting point, and is activates by G91.1. Usually it's the default one.

There's an outstanding Gcode reference at the linuxcnc.org: http://linuxcnc.org/docs/html/gcode.html
G02 and G03 description: http://linuxcnc.org/docs/html/gcode_mai ... 2,-G3:-Arc
kieferm
Новичок
Сообщения: 2
Зарегистрирован: 01 мар 2011, 02:46
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение kieferm »

thanks, that explained it perfectly!
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

Hi root !

I try the sort option in gcodetools dev but nothing appears to work when use it on relatively sort path ???
For example this svg ..
testorder.svg
(13.96 КБ) 1182 скачивания
if i path to gcode on it wiht or without sorting the result gcode is the same sorting and is bad ordering...

Else if i try with a path very bad sorting it have many crossing and the sort is done but have always some crossing of the rapid move that's say's bad sorting..but is better than the previous that was little sorting on the start.. ;)
testbigdisorder.svg
(17.72 КБ) 1001 скачивание
txapuzas

Re: Inkscape Gcodetools plug-in English support forum

Сообщение txapuzas »

Hello

I translated gcodetools plug-in Spanish, is available at:
http://dl.dropbox.com/u/23923366/gcodetools_es_00.zip

I also wrote a small user manual in Spanish, is available at:
http://dl.dropbox.com/u/23923366/Gcodetools_Help_ES.pdf

NOTE: If you find interesting, could you put in the downloads area of the blog, for Spanish speakers find it easily?

thank you very much

_______________________________________________________________________


He traducido el plug-in gcodetools al español, está disponible en:
http://dl.dropbox.com/u/23923366/gcodetools_es_00.zip

También he escrito un pequeño manual de uso en español, está disponible en:
http://dl.dropbox.com/u/23923366/Gcodetools_Help_ES.pdf

Muchas gracias

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Wow! It's amazing! Thanks a lot!
I did not get a word from your manual but it looks exciting :)!
Gcodetools pushed into Inkscape's 0.49 code, so soon it'll be ready for the native translation.

Do you have any kind of forum or blog? It'll could be useful to put a link to it in the Gcodetools help as a Spanish support.
txapuzas

Re: Inkscape Gcodetools plug-in English support forum

Сообщение txapuzas »

Hello root

Yes, I have a blog: http://www.txapuzas.blogspot.com

They are small projects with Arduino, but you could be interesting link:
http://txapuzas.blogspot.com/2009/12/tx ... tware.html

https://lh6.googleusercontent.com/-icrz ... are_01.png

It is a Gcode editor/simulator/control written in gambas

thanks
_____________________________________________________________________
Txapuzas electronicas
aguseguedre

Re: Inkscape Gcodetools plug-in English support forum

Сообщение aguseguedre »

ello everybody,

Frist I want to give thanks for the program Root . I just arrive to this world I am learning lot of things.
I have ubuntu 10.04 LTS lucid lynx ,Inkscape 0 47. and the Gcode Tools VER. 1.2.22.02.2010.
I am trying to do the Area' s tutorial with the cnc-club.ru logo but I have some prblems.

When I try to do curves to g code,any file appears with the G code. Some parts of the paths change of colours .Errors message does not appears too.
Afther that I tried in Gcodetools-----> Path to Gcode ( without redo curves to G code) Some paths appears with blacks triangles. The Gcode file appears, but when I open with Emc2 the logo is not complet.
I tryed again ( without redo Gcodetools.-----> Paths to G code ) now all paths are marked with blacks triangles . Whe I open the file it seem complet with manny differents layers. Why I must do that for the program works?
I check the Gcode and I can see the Z value change from -1 to- 5 mm ( I set Z deep=-5mm) in steeps of 1mm. I want steeps of 0,5 mm. I start from the logo again I set the penetration feed = 0,5 in the tool parameter and continue with the above process but the new file have the the same increment 1 mm steep.

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

First I highly recommend you to use Gcodetools v1.6 - the on is in the first post.
It's better to use Inkscape .48.

When you apply Path-to-Gcode all paths are interpolated by biarcs and those biarcs are drawn to show you the direction of machining. So may be those triangles are arrows which shows cutting direction.
Also all biarcs are drawn with green and blur arcs to show the exact cutting trajectory. All straight line are drawn in red.
Aguseguedre

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Aguseguedre »

Thanks root for your e-mail,

I yet have Inkscape .48 ,and Gcodetools v1.6 .

I click in Area .The screen Is not the same that your tutorial dont you?
I click in the area's button Whit the same parameter that I had filed, the area is a little different with less paths.
I click path to g-code and after a little time in the screen appear the red lines in the straight lines , red and blue and especially black arrow.
I check the file in Emc2,I can see several paths and more that 200.000 lines of programs .This is correct the dimension work is 96*40 mm.
In the other version the program lines was more that 100.000 and I thought too much.

Thanks for your patience.

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Can you attach your svg...
200.000 lines? Wow that's a lot even for 96x40mm.
aguseeguedre

Re: Inkscape Gcodetools plug-in English support forum

Сообщение aguseeguedre »

Hello root ,

What you mean the file from Inkscape?
Before to convert area to Gcode or afther?
The most important How can I posted?

Regards
Ответить

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