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 (1315020 просмотров) <a class='original' href='./download/file.php?id=508&sid=79feb29254dc5d97dccb8e8c73ab22ef&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 (1317944 просмотра) <a class='original' href='./download/file.php?id=130&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1304047 просмотров) <a class='original' href='./download/file.php?id=772&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1310368 просмотров) <a class='original' href='./download/file.php?id=642&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1310533 просмотра) <a class='original' href='./download/file.php?id=631&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1245991 просмотр) <a class='original' href='./download/file.php?id=5429&sid=79feb29254dc5d97dccb8e8c73ab22ef&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) (1317947 просмотров) <a class='original' href='./download/file.php?id=127&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1317953 просмотра) <a class='original' href='./download/file.php?id=103&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1317944 просмотра) <a class='original' href='./download/file.php?id=130&sid=79feb29254dc5d97dccb8e8c73ab22ef&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 КБ) 102095 скачиваний
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 14954 скачивания
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 10536 скачиваний
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27080 скачиваний
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10315 скачиваний

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.
tony
Новичок
Сообщения: 2
Зарегистрирован: 10 мар 2010, 06:00
Репутация: 0
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение tony »

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.
Settings in px (45015 просмотров) <a class='original' href='./download/file.php?id=309&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (84.08 КБ)</a>
Settings in px
Setting in inches (45015 просмотров) <a class='original' href='./download/file.php?id=307&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (83.49 КБ)</a>
Setting in inches
Settings in mm (45015 просмотров) <a class='original' href='./download/file.php?id=308&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (85.25 КБ)</a>
Settings in mm
GCode Plugin Scaling for inches (45015 просмотров) <a class='original' href='./download/file.php?id=310&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (70.99 КБ)</a>
GCode Plugin Scaling for inches
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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 КБ) 3535 скачиваний
gcode tools area processing 0001.png (44986 просмотров) <a class='original' href='./download/file.php?id=351&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (125.73 КБ)</a>
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).
gcode tools area processing 0002.png (44986 просмотров) <a class='original' href='./download/file.php?id=352&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (145.54 КБ)</a>
5. Subtract path from rectangle (Ctrl+"-").
gcode tools area processing 0003.png (44986 просмотров) <a class='original' href='./download/file.php?id=353&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (145.65 КБ)</a>
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.
gcode tools area processing 0004.png (44986 просмотров) <a class='original' href='./download/file.php?id=354&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (218.16 КБ)</a>
Sometimes it's better to convert path to dynamic offset before doing Calculate Area curves.
gcode tools area processing 0005.png (44986 просмотров) <a class='original' href='./download/file.php?id=355&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (232.87 КБ)</a>
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.
gcode tools area processing 0006.png (44986 просмотров) <a class='original' href='./download/file.php?id=356&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (255.34 КБ)</a>
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:
gcode tools area processing 0007.png (44986 просмотров) <a class='original' href='./download/file.php?id=357&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (44.56 КБ)</a>
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 :).
gcode tools area processing 0008.png (44986 просмотров) <a class='original' href='./download/file.php?id=358&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (49.32 КБ)</a>
gcode tools area processing 0010.png (44986 просмотров) <a class='original' href='./download/file.php?id=359&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (60.65 КБ)</a>
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.
gcode tools area processing 0011.jpg (44986 просмотров) <a class='original' href='./download/file.php?id=360&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (256.47 КБ)</a>
gcode tools area processing 0012.jpg (44986 просмотров) <a class='original' href='./download/file.php?id=361&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (244.31 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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.
gcode_engraving_0024.png (44983 просмотра) <a class='original' href='./download/file.php?id=369&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (89.7 КБ)</a>

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 КБ) 2776 скачиваний
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?
gcode_interface_0025.png (44983 просмотра) <a class='original' href='./download/file.php?id=370&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (54.93 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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)
    • 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.
lond
Новичок
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond »

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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 :).
lond
Новичок
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond »

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

Bug fix for version 1.4!

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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.
    Снимок-GCODE tools DEVELOPE.png (44923 просмотра) <a class='original' href='./download/file.php?id=399&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (70.99 КБ)</a>
  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!
    Снимок-New document 1 - Inkscape.png (44923 просмотра) <a class='original' href='./download/file.php?id=400&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (170.15 КБ)</a>
  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 КБ) 2443 скачивания
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc »

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:
Capture-2.jpg (44917 просмотров) <a class='original' href='./download/file.php?id=405&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (16.84 КБ)</a>
inkscape file:
test_engraving.svg
(772.29 КБ) 2101 скачивание
On emc I have this:
screen_capture10.jpg (44917 просмотров) <a class='original' href='./download/file.php?id=407&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (29.61 КБ)</a>
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.
screen_capture9.jpg (44917 просмотров) <a class='original' href='./download/file.php?id=408&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (14.79 КБ)</a>
Here the gcode file generate:
test_engraving.ngc
(88.48 КБ) 2318 скачиваний
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:
SNV30126.JPG (44917 просмотров) <a class='original' href='./download/file.php?id=410&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (146.27 КБ)</a>
same but big zoom and different angle:
SNV30127.JPG (44917 просмотров) <a class='original' href='./download/file.php?id=411&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (125.25 КБ)</a>
last one better engraving but problem wiht photo luminosity sorry.
SNV30128.JPG (44917 просмотров) <a class='original' href='./download/file.php?id=412&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (69.87 КБ)</a>
I wait with enthusiasm the new version whith debug of this. Congratulation for the good work.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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:
G-code tools engraving (44892 просмотра) <a class='original' href='./download/file.php?id=413&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (154.74 КБ)</a>
G-code tools engraving
I've used these parameters to generate Engraving trajectory:
Снимок-GCODE tools DEVELOPE.png (44892 просмотра) <a class='original' href='./download/file.php?id=415&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (34.39 КБ)</a>
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 КБ) 2383 скачивания
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.
g63733.png (44891 просмотр) <a class='original' href='./download/file.php?id=416&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (130.11 КБ)</a>
lond
Новичок
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond »

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

Are you using latest version or not?
Can you attach your svg file here so we can check what is wrong?
lond
Новичок
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond »

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

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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:
http://www.cnc-club.ru/forum/viewtopic.php?t=34

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc »

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:
Вложение Снимок-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 больше недоступно
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.
Вложение g63733.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.
error_outside_inside.png (44872 просмотра) <a class='original' href='./download/file.php?id=418&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (201.83 КБ)</a>
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.
error_z_depth.jpg (44872 просмотра) <a class='original' href='./download/file.php?id=419&sid=79feb29254dc5d97dccb8e8c73ab22ef&mode=view' target=_blank>Загрузить оригинал (18.77 КБ)</a>
the Svg file from inkscape with generate path from gcode-tools-developpe.
inside_outside_error_and_zdepth.svg.tar.bz2
(491.58 КБ) 1448 скачиваний
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc »

Ok ! I'll do from repository ! Thank's for very fast feedback. !
Ответить

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