Inkscape Gcodetools plug-in English support forum

cnc-club.ru for English speaking users

What function should we develope next?

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

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

Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 10 дек 2009, 10:28

Inkscape Gcodetools plug-in English support forum EMC screenshot.png
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

Inkscape Gcodetools plug-in English support forum Screqnshot.png
Preview of the generated Gcode in EMC

Inkscape Gcodetools plug-in English support forum lumen lab gcodetools cnc pocketing 1280.jpg
Gcodetools area pocketing

Inkscape Gcodetools plug-in English support forum 0089 gcode tools lathe emc screenshot.png
Gcodetools lathe

Inkscape Gcodetools plug-in English support forum 0082 gcode tools engraving.jpg
Gcodetools engraving by Rene

Inkscape Gcodetools plug-in English support forum bears.jpg
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.

License (для просмотра содержимого нажмите на ссылку)

License

Inkscape and Gcodetools are licensed under GNU GPL.

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

Inkscape Gcodetools plug-in English support forum g83147_002.png
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)


Inkscape Gcodetools plug-in English support forum g64542.png
Curve to Gcode result
Inkscape Gcodetools plug-in English support forum Screqnshot.png
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 Кб) Скачиваний: 68216

Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(57.1 Кб) Скачиваний: 7677

(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.17 Кб) Скачиваний: 4054

(ver 1.4)
gcodetools.tar.gz
(14.72 Кб) Скачиваний: 14207

(ver 1.2)
extensions.tar.gz
(11.25 Кб) Скачиваний: 3931

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.
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение tony » 12 мар 2010, 06:39

I believe the details for Inkscape units are located in the file c:\Program Files\Inkscape\share\ui\units.txt


# Simple unit configuration file
#
# This is a space-delimited list of unit definitions.

# name name_plural abbr type factor PRI description
# ---------------------------------------------------------------------------
% % % DIMENSIONLESS 1.00 Y Percentage
pixel pixels px LINEAR 1.00 Y CSS Pixels (90/inch)
point points pt LINEAR 1.25 N PostScript points (72/inch)
pica picas pc LINEAR 15.0 N 12 points
inch inches in LINEAR 90.0 N Inches (90 px/in)
millimeter millimeters mm LINEAR 3.543307 N Millimeters (25.4 mm/in)
centimeter centimeters cm LINEAR 35.43307 N Centimeters (10 mm/cm)
meter meters m LINEAR 3543.307 N Meters (100 cm/m)
foot feet ft LINEAR 1080 N Feet (12 in/ft)
degree degrees deg RADIAL 1.00 Y Degrees
radian radians rad RADIAL 57.296 N Radians (57.296 deg/rad)
font-height font-heights em FONT_HEIGHT 1.00 Y Font height
x-height x-heights ex FONT_HEIGHT 0.50 N Height of letter 'x'
half-em half-ems en FONT_HEIGHT 0.50 N Half of font height




From what I can tell the native units are Pixels which is the unit stored in the XML file regardless of which unit you display on the screen. You can change which units you are using with File-> Document Properties. If you use inches then the scaling is 1/90 or 0.11111. If you use mm then the scaling is 1/3.543307 or 0.282222. This may result is some rounding error and might not be appropriate for all cases but it worked well for me. I'm also no sure how your tool accounts for the tool width so this could be another source of error but it could be easily eliminated if your code works with the users unit preferences and implemented the scaling.

The screen shots below with the width and height info from Inkscape would support my information above.

Inkscape Gcodetools plug-in English support forum us letter in px.jpg
Settings in px

Inkscape Gcodetools plug-in English support forum us letter in inches.jpg
Setting in inches

Inkscape Gcodetools plug-in English support forum us letter in mm.jpg
Settings in mm

Inkscape Gcodetools plug-in English support forum gcode scale.jpg
GCode Plugin Scaling for inches
tony
Новичок
 
Сообщения: 2
Зарегистрирован: 10 мар 2010, 06:00
Репутация: 0

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 25 мар 2010, 13:01

Gcode tools ver. 1.2 Area processing tutorial
At this tutorial I'll explain how to make area cutting G-code of the path using Gcode tools and Inkscape.

1. First of all we will need a path. You can draw it by yourself, or download from the internet.
I've chosen cnc-club logo. If you want you can get it here:
logo_0002.svg
(19.08 Кб) Скачиваний: 2106

Inkscape Gcodetools plug-in English support forum gcode tools area processing 0001.png


2. If your drawing consists not only from paths you should convert it to paths. (It may not contain some groups, ellipsis, texts, rectangles etc.). To do this select your drawing, check the status bar, if it says that selection contains Groups do Object - >Ungroup (Ctrl+Shift+G). If it contains text, or other geometry except paths do Path -> Object to path (Shift+Ctrl+C). Repeat this until status bar will say something like "5 objects of type Path in Layer...". Notice that when you convert Text to path it will create a Group with letters, so you will need to ungroup them.

3. Unite all paths into one path (Ctrl+"+").

4. I want cnc-club logo to offset from the surface so I'll need to cut the area outside the logo. Draw a rectangle, put it behind of your path (End or Page Down) and make it align to the center of the path (select path and Rectangle Ctrl+Shift+A and choose Center objects vertically and Center objects horizontally).
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0002.png


5. Subtract path from rectangle (Ctrl+"-").
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0003.png

6. Now we have a path of which area we want to cut.
Next we need to calculate paths that will cover the area (these paths will be the cutter's trajectory).
Go to Extensions -> Gcode tools ...
Fill in Tool diameter in the Preferences tab
Then go to Area tab, and fill in Area radius. What is Area radius or how can it been calculated?
First of all Area radius must be in px (pixels) no mater which units you have been selected!
There some ways to calculate Area radius:
  • The easies way is: find the thickest part of the path and measure it by eye (Joke)
  • The second easies way is: find the thickest part of the path and measure it with Bizier tool. When you draw a path with the Bizier tool status bar shows it last segment length.
  • The hardest way is: convert path to dynamic offset (Ctlr+J), then press F2 and move the control point to make your path disappear. Then press Ctrl+Shif+X to open XML editor and find there inkscape:radius parameter, it's value is the exact value that you'll need
So anyway fill in Area radius.
Choose Calculate Area curves at the bottom and press Apply.
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0004.png

Sometimes it's better to convert path to dynamic offset before doing Calculate Area curves.
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0005.png

7. After applying Calculate area curves you should have a new group containing paths that cover the area of the source path. But unfortunately this paths cat contain some errors.
To correct the errors go into the group (double click on the group), select all objects (Ctrl+A) convert them to Paths (shift+Ctrl+C). Brake paths apart (Ctrl+Shift+K) to delete some unnecessary paths and correct others.
8. All is ready to convert paths to Gcode. Select the paths that we've got, do Extensions -> Gcode tools... Go to Preferences tab fill in cutter parameters, directory and filename for in which you want Gcode to be exported. Then go to Path to Gcode tab, fill in tolerance and maximum subdivision parameters. (Notice number of subdivisions means means number of iterative subdivisions not number of segvenst that you'll get from one segment. So you cat get up to 2^n segment from one segment.)
Choose Path to Gcode at the bottom. Press apply.
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0006.png


What you'll get: a group will be added to the drawing which shows cutter's working trajectory, and of cause a file in specified directory which will contain Gcode.

Let's check the results:
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0007.png

Everything is nice except that I missed the working area of my cutter :) but do not worry if you have not chosen "Generate not parametric code" it is very easy to correct the situation. Just correct first lines in the Gcode file:
Код: Выделить всёРазвернуть
#4  = 4.000000 (Feed)
#5  = 0.900000 (Scale xy)
#7  = 1.000000 (Scale z)
#8  = 0.000000 (Offset x)
#9  = 0.000000 (Offset y)
#10 = 0.000000 (Offset z)
#11 = 5.000000 (Safe distanse)

And situation solved :).
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0008.png

Inkscape Gcodetools plug-in English support forum gcode tools area processing 0010.png


Here are the results of cutting this Gcode on my hobby router:
Unfortunately it was the first run of my router and almost at the end of cutting one coupling broke down, so this cutting is unfinished :(.
Material is foam (it was the first run :) ).
Cutting time with maximum cutting speed 7mm per second is about 18 minutes. Dimensions are about 270x140mm, tool diameter 3.2mm.
Inkscape Gcodetools plug-in English support forum gcode tools area processing 0011.jpg

Inkscape Gcodetools plug-in English support forum gcode tools area processing 0012.jpg
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 26 мар 2010, 11:32

Gcode tools 1.4 beta is ready

New features:
1. Engraving
This function calculates trajectory to cut thin places and sharp angles with the cone or sphere cutter.
For example if you want to engrave a flower, with 15mm cylindrical cutter you can cut only light green area, but not the thin places and sharp corners. Engraving function creates trajectory to cut that places with conical or other not straight cylindrical cutter. See attached image for more details.
Inkscape Gcodetools plug-in English support forum gcode_engraving_0024.png



Almost all is ready, but there are still some question with the interface. It is understandable for me and Dormouse because we are developers ;), and now we need to make it more user friendly. Also we need corrections of our English :).

2. Some other minor changes / bug fixes to make plug-in working more stable.

So here's Gcode tools 1.4 beta version:
gcodetools.tar.gz
(14.75 Кб) Скачиваний: 1254


Also I'm thinking of removing this radio buttons and use active tab instead of it. So if you want to make Path to Gcode you should open Path to Gcode tab and press apply, if you wand Area function open Area tab and press apply. What do you think about it?
Inkscape Gcodetools plug-in English support forum gcode_interface_0025.png
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 26 мар 2010, 12:59

A small Engraving howto

1. Select one or more paths. (Make sure that they are all paths and not text's, circles, etc.)
2. Extensions -> Gcode tools develope ...
3. Fill in tool diameter (Cone maximum diameter), directory and filename
4. Go to the Engraving tab and fill some parameters:
  • Sharp angle tolerance - corners thinner than this will be thought as sharp ones. If corner is sharp, cutting trajectory will touch the corner. Notice this value is in degrees (one full turn is 360 degrees).
  • Maximum distance for engraving - If offset of the trajectory's segment exceeds Maximum distance for engraving then this segment wont be used for cutting. This value should be equal to the diameter of cylindrical cutter (that is used to cut inner area) or should be big if you want to cut whole path with cone cutter.
  • Number of sample points used to calculate distance - this parameter defines number of sample points used for offset calculations. Calculation time is in direct ratio of this parameter, I think i should be between 4 and 10.
  • Draw additional graphics to debug engraving path - If this is set Gcode tools will draw normals, offset points, and offset circles that could help to find errors, or help find a way to change the path to eliminate errors.
  • Cutter shape function z(w)= - This function defines cutters form. Here are some common examples:
    • w - cone with height = width
    • t*w[/] (0.5*w) - t- tangents of cones angle t = d/(2*h) = r/h (cone's radius to cone's height)
    • [b]math.sqrt(max(0,r**2-w**2)) ( math.sqrt(max(25-w**2)) ) - sphere cutter.
5. Press apply.

Note calculation time depends on square number of path's control points. So if you'll use this function on path that have 200 control points or more it could take while to do all the job. If paths do not intersect, it's better to break them apart. Dormouse said that when he tried to compute 2000 points path it took about 15 minutes to do the calculations.
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond » 28 мар 2010, 23:53

Hi!

When I'm trying to make a simple square (15x15) to test my machine I get this result from the plug-in:
Код: Выделить всёРазвернуть
%
(Generated by gcode_tools from inkscape.)
M3
G21 (All units in mm)G00 Z5.000000
G00 X0.000000 Y-1037.362200
G01 Z-1.000000 F300.000000
G01 X15.000000 Y-1037.362200 Z-1.000000 F300.000000
G01 X15.000000 Y-1052.362200 Z-1.000000
G01 X0.000000 Y-1052.362200 Z-1.000000
G01 X0.000000 Y-1037.362200 Z-1.000000
G01 X0.000000 Y-1037.362200 Z-1.000000
G00 Z5.000000
M5
G00 X0.0000 Y0.0000
M2
(end)
%

What I can see is that Y is -1037.362200mm of and also inverted.

I have tried v1.2 and v1.4b with the same result.

// Marcus
lond
Новичок
 
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 29 мар 2010, 09:16

This happens so because zero point (0,0) in inkscape is top left corner of the page.
You can easily get rid of this mistake in several ways:
  • Define offsets in plug-in (Parameters tab), y offset should be -1052.362200/ (It will be saved for further executions)
  • Move your square to the top left corner of the page
  • Also if "Generate not parametric code" is selected you will be able to change offsets and some other parameters by changing one string in Gcode file. Header of Gcode will look like:
    Код: Выделить всёРазвернуть
    #4  = 4.000000 (Feed)
    #5  = 0.900000 (Scale xy)
    #7  = 1.000000 (Scale z)
    #8  = 0.000000 (Offset x)
    #9  = 0.000000 (Offset y)
    #10 = 0.000000 (Offset z)
    #11 = 5.000000 (Safe distanse)

Now we are thinking about making this easier and more user friendly. The problem is complex because different machines have different parameters, as for me, my router has zero at right bottom point.

How do i see the solution of this problem: Create three or two anchor points assign coordinates to them and a function that will computes offsets, scales and may be rotations.

If you have any suggestions please post them here. Your opinion is very important for us.

Sorry for my English, I will appreciate any corrections :).
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond » 29 мар 2010, 19:18

Hi!

The ReplicatorG-application can't read g-code when it is in "Generate not parametric code"-mode, it just turns on the spindel and after that it turns it off :(

And the max offset value I can type in the option-tab is +-1000.000000 .

I think the easiest fix for me is to extend the range for the value in the setting.

// Marcus
lond
Новичок
 
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 29 мар 2010, 22:29

And the max offset value I can type in the option-tab is +-1000.000000 .

To fix this cange the range values in gcode_tools.inx file at lines 29-31 change min="-1000" max="1000" to min="-10000000" max="10000000". (This is a plain text file so you can use any editor to fix it, for example nano or gedit if you are on Linux)
Код: Выделить всёРазвернуть
         <param name="Xoffset" type="float" precision="5" min="-100000" max="100000" _gui-text="Offset along X axis">0.0</param>
         <param name="Yoffset" type="float" precision="5" min="-100000" max="100000" _gui-text="Offset along Y axis">0.0</param>
         <param name="Zoffset" type="float" precision="5" min="-100000" max="100000" _gui-text="Offset along Z axis">0.0</param>


Or you can try beta version from bazaar repository:
Код: Выделить всёРазвернуть
bzr branch lp:gcodetools


Thank you for the feedback!

I use EMC to control my router, it takes parametric code normally.
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 31 мар 2010, 18:54

Bug fix for version 1.4!

Biarc approximation gave wrong results.
Fixed version in the header of the thread.
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 02 апр 2010, 09:26

We've made a new beta version.

Upon many request we've made Orientation function
It helps to move/rotate/scale your drawing, with out doing any calculations.
How it works:
  1. Open Orientation tab.
    • You will see inputs with desired coordinate of orientation control points.
      You can fill this inputs with values of desired coordinates of three points on your object. Or just live them with default values (They define origin point (0,0) and two axis (100,0) and (0,100)). Note you will be able to change this values at any time later.
      If you use inches it will be better to you to change 100 to something like 1 or 5 because the point will appear at coordinates (100,0) which can be really far away from the page bounds.
    • And one input containing Initial scale value.
      This value is helpful if you want to use natural units (inches or mm or others). For inches this value must be 90 for mm 3.543307087, which is 90/25.4.
    Inkscape Gcodetools plug-in English support forum Снимок-GCODE tools DEVELOPE.png

  2. After you press apply a new group containing three orientation points will be added to the active layer.
    Arrows point to control point position. You can put the points wherever you want. Just be sure that they do not lay on one straight line. Also you cat modify their desired values by modifying the text near each arrow with the text tool. (Be sure to remain text's format " ( value ; value )" spaces are not taken into account.)
    You can move, rotate, scale, skew, etc. this points.
    Attention do not ungroup arrow from the text! You can ungroup points from each other but not further!
    Inkscape Gcodetools plug-in English support forum Снимок-New document 1 - Inkscape.png

  3. Now you can apply any other functions. All exported will be in new coordinate system defined by these points. You will not see any changes in the preview, but the will be in generated Gcode. (If you apply different scale to X and Y axis preview of arcs will be ruined (their ending points wont be on correct places) but we thin this case is really rare and this will be a todo for a while.)
  4. You can add more than one set of orientation control points, but if you want them to make any effect you need to put them to different layers. Gcode tools firs searches in the active layer for orientation points and then searches in whole painting.

Some changes been made to the interface.
Now there's no radio button to select the function. Function is chosen according to the open tag at the time when apply button is pressed. So if you want to convert path to Gcode you need Path to Gcode tab be opened when apply button is pressed.

So here it is:
gcodetools.tar.gz
(16.49 Кб) Скачиваний: 1020
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc » 02 апр 2010, 23:43

Hi cnc-club !
I've found Engraving is a Very nice feature .
I've test it. very promising. Some prob I list it.

I draw on Inkscape some text.
I draw rectangle. And do logical operation diference..
After start gcodetools last one version post in this thread.
do engraving.
and have this:

Inkscape Gcodetools plug-in English support forum Capture-2.jpg


inkscape file:
test_engraving.svg
(772.29 Кб) Скачиваний: 1123


On emc I have this:
Inkscape Gcodetools plug-in English support forum screen_capture10.jpg


and Z view that show the errors , some point are very very on the bottom of Z axis.
I have try with many others tune of gcode tools but always this bad points.
And with the last version beta of gcode tools the gcode have mirroring verticaly the engraving.

Inkscape Gcodetools plug-in English support forum screen_capture9.jpg


Here the gcode file generate:
test_engraving.ngc
(88.48 Кб) Скачиваний: 1003


I've correct some points that show me to be very very bad in the gcode and engrave it in my router with two different cone cuter shape.

And the result is very nice.
I like it.
Else if some z coordinate are bad and make some big circular cone hole. But it's a very very good start for this engraving funtion.
result:

Inkscape Gcodetools plug-in English support forum SNV30126.JPG


same but big zoom and different angle:

Inkscape Gcodetools plug-in English support forum SNV30127.JPG


last one better engraving but problem wiht photo luminosity sorry.

Inkscape Gcodetools plug-in English support forum SNV30128.JPG


I wait with enthusiasm the new version whith debug of this. Congratulation for the good work.
alfcnc
Кандидат
 
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 03 апр 2010, 11:48

Hi Alfcnc!

Thank you for the good words! :)

Now to the case:

First of all I want give some tips about working with engraving
  • You do not have to subtract your path from anything.
    Just make sure that it is a Path. (Ctrl+Shift+C to Oject to Path and Ctrl+Shift+G to ungroup)
    If Engraving's trajectory is outside of the Path you can do Path->Reverse to fix it.
  • Try to avoid combining Paths that do not intersect.
    Engraving calculate offset using all segments of the path and do this calculations n*n times where n is segments number of the path.
    So for the text it's better to convert it to path and combine only those letters that intersect. ("a" and "s" from your example)
  • If you increase number of sample point in the Engraving tab you can get better results.
  • Also some times it could be better to add some nodes to the Path by Extension->Modify Path->Add nodes, but it'll take more time for calculations.

I've broke apart your path and combined "a", "s" and "a"'s hole together. And using latest beta version of Gcode tools the plug-in got these results:
Inkscape Gcodetools plug-in English support forum g47631.png
G-code tools engraving

I've used these parameters to generate Engraving trajectory:
Inkscape Gcodetools plug-in English support forum Снимок-GCODE tools DEVELOPE.png

Unfortunately it takes a lot of time for me to test it in EMC, so I've not done it.
Here's Gcode for it.
output.ngc
(93.34 Кб) Скачиваний: 944


I've tried to process your Path with the latest beta and got nice results. I think you should try latest version it works pretty stable.
Inkscape Gcodetools plug-in English support forum g63733.png
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond » 04 апр 2010, 17:29

Hi!

I'm still having problem with the offset settings.
I have been looking around in the code and found that the offset parameters was replaced with 0 in the part that creates the gcode.
Now the offset works but Y is inverted.

// Marcus
lond
Новичок
 
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 04 апр 2010, 19:34

Are you using latest version or not?
Can you attach your svg file here so we can check what is wrong?
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond » 04 апр 2010, 21:38

I was using the latest development version, but when i use v1.4 it works.

// Marcus
lond
Новичок
 
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 04 апр 2010, 22:01

Have you added Orientation points?
If yes is point with coordinates (0,100) above of (0,0) one?
Could you attach you svg file?
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 05 апр 2010, 17:37

We need help with translation to English language.

If your native language is English you can help us very much!
We are close to release the new version of Gcode tools. And I think that it will not be good if there will be a lot of mistakes at the descriptions, helps and etc. So I'm asking for your help.

If you have some advices or other corrections we will appreciate them!

Here's the list of of thesis we need to correct:
Interface
Gcode tools plug-in converts paths to Gcode.
Help tab

This plug-in calculates Gcode for paths using circular interpolation or linear motion when needed.
Default header and footer are used if there are no 'header' and 'footer' files in given directory.

Manuals, tutorials and exampels can be found here:

Russian support forum:
viewtopic.php?t=34

English support forum:
viewtopic.php?t=35
Gcode tools ver. 1.5 develope


Options tab
Scale along Z axis
Offset along Z axis
Generate not parametric code
Minimum arc radius

Preferences tab
File
Directory
Z safe
Z surface
Z depth
Z step for each cycle
Feed rate (unit/min)
Unit:
mm
in
Tool diameter
Create log file
Log file

Path to Gcode tab
Biarc interpolation tolerance
Maximum splitting depth

Biarc interpolation tolerance is maximum distance between path and it approximation.
If distance between path's segment and it's approximation is greater than biarc interpolation tolerance the segment will be split into two segments.

Area tab
Maximum area cutting curves
Area radius

This function creates several Inkscape path offsets to fill original path's area up to "Area radius" value.
Outlines start from tool_diameter/2 to "Area radius" with tool_diameter steps.
Fill in "Area radius" and press apply.

Engraving tab
Sharp angle tolerance
Maximum distance for engraving
Number of sample points used to calculate distance
Draw additional graphics to debug engraving path
Cutter shape function z(w)=

This function creates path to engrave sharp angles.
Cutter shape function is a function which defines shape of the cutter. Some simple shapes:

45 degree cone: w
cone having 10 unit height and 3 unit diameter: 10/3 w
sphere having r unit diameter: math.sqrt(max(0,r**2-w**2))
ellips having r and r*4 unit diameter: math.sqrt(max(0,r**2-w**2))*4


Orientation tab
Orientation point 1 X
Orientation point 1 y
Orientation point 2 X
Orientation point 2 y
Orientation point 3 X
Orientation point 3 y
Initial scale

Press apply to create three control points. The transformation (offset,scale,rotation in XY plane) of the path will be automaticaly calculated depending on this points.
You can apply transormations to this points, move them. Just make sure that they are not on one line.
You can modify coordinates that are in the brackets right in the image using text tool.
Initial scale is helpfull if you want to use mm or inches.

For mm set Initial scale to 3.543307087 or use any negative value ("-1" for example).
For inches set Initial scale to 90

Tools library tab
Tools type
Cylinder cutter
Cone cutter
Plasma cutter
Default tool (all parameters)

Press apply to create new tool. Selecting tools type just changes default values for the tool.
All parameters (field names and values) can be changed using the text tool.
You can create a number of tools, Gcode tools will use topmost (in z order) tool in the active layer. Or if there's no tools in the active layer plug-in will search for tools in whole image.

And some other definitions
These are the tools parameters we need them to be more user understandable:
"name": "Default tool",
"id": "default tool",
"diameter":10,
"shape": "10",
"penetration angle":90,
"penetration feed":100,
"depth step":1,
"feed":400,
"in trajectotry":"",
"out trajectotry":"",
"gcode before path":"",
"gcode after path":"",
"sog":"",
"spinlde rpm":"",
"CW or CCW":""


Thanks in advance! :D
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc » 05 апр 2010, 19:34

root писал(а):Hi Alfcnc!

Thank you for the good words! :)

Now to the case:

First of all I want give some tips about working with engraving
  • You do not have to subtract your path from anything.
    Just make sure that it is a Path. (Ctrl+Shift+C to Oject to Path and Ctrl+Shift+G to ungroup)
    If Engraving's trajectory is outside of the Path you can do Path->Reverse to fix it.
  • Try to avoid combining Paths that do not intersect.
    Engraving calculate offset using all segments of the path and do this calculations n*n times where n is segments number of the path.
    So for the text it's better to convert it to path and combine only those letters that intersect. ("a" and "s" from your example)
  • If you increase number of sample point in the Engraving tab you can get better results.
  • Also some times it could be better to add some nodes to the Path by Extension->Modify Path->Add nodes, but it'll take more time for calculations.

I've broke apart your path and combined "a", "s" and "a"'s hole together. And using latest beta version of Gcode tools the plug-in got these results:
Вложение g47631.png больше недоступно

I've used these parameters to generate Engraving trajectory:
Вложение g47631.png больше недоступно

Unfortunately it takes a lot of time for me to test it in EMC, so I've not done it.
Here's Gcode for it.
Вложение g47631.png больше недоступно


I've tried to process your Path with the latest beta and got nice results. I think you should try latest version it works pretty stable.
Вложение g47631.png больше недоступно


Hi !

I have do some other try.
But problems.
If i join a and s like you tell me ! Engraving do outside engraving for as but i want inside engraving..and do inside engraving for others letters ?
How tell to engraving function to do outside or inside engraving ???

I have set 3 times more node ! to have better resolution.
And have set sample to 10...
Cutter shape w*2 to have more z depth and same of my cone router.

Inkscape Gcodetools plug-in English support forum error_outside_inside.png


And if open gcode in emc ! It show always many errors with Z depth
I have made red circle around some error z depth on the emc screen output.
Inkscape Gcodetools plug-in English support forum error_z_depth.jpg


the Svg file from inkscape with generate path from gcode-tools-developpe.
inside_outside_error_and_zdepth.svg.tar.bz2
(491.58 Кб) Скачиваний: 754
alfcnc
Кандидат
 
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 05 апр 2010, 19:48

We hve found another bug today, but I have not anouneced it yet. I'm on my way home now and writig this from my phone. I'll post bug fix in an hour or you can get it from our launchpad repository. (bzr branch lp:gcodetools).
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1330
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc » 05 апр 2010, 20:44

Ok ! I'll do from repository ! Thank's for very fast feedback. !
alfcnc
Кандидат
 
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester

Пред.След.

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

Кто сейчас на конференции

Зарегистрированные пользователи: Argon-11, андрейик, Bing [Bot], Boomer, Cvazist, djuzzeppe, drey82, dron01, Enot_1, evgenyjp, exe, extentia, gess05, Google [Bot], ignv, Kanifolii, Majestic-12 [Bot], maratstr, MGG, N1X, nicol54, Nonstopich, Гагарин, RustGrigoriev, shalek, sidor094, toxakorzh, tsurika, vko, Yahoo [Bot], Yandex [bot], Владимир_36, Юрий 333

Поделиться

Reputation System ©'