Страница 1 из 1

Engraving

Добавлено: 19 фев 2015, 00:00
narvf
How to specify shape of my tool for engraving? It doesn't matter what i will type in "shape" option of default tool - i will always get warning about no shape for tool and 45o is used by default.
And diameter, how is this related? I have 0.1mm and 45o tool. I would like engrave something on laser laminate (don't know exactly how to name this in english) and it is 1.6mm thin. So i think i need more wide tool like 60o. But where to type it?
Could someone explain this function better? Why sometimes i get engraving "inside" a letter which is great, and sometimes around letter - which also looks very good. But i would like to decide which i want to use. How to determine max depth - is it possible or it's always calculated by tool settings and width of paths?

I've added example files to show what i was doing.

Re: Engraving

Добавлено: 19 фев 2015, 10:09
Nick
The Shape is defined by the function - Z(w). This means
Depth(depended of width).

Example, cone 45 degree, is the function Z(w)=w
Example, cone 30 degree Z(w)= w*tg(30) === in gcodetools parameters w*math.tan(30/180*3.1415)
Example, sphere Z(w)= r-math.sqrt(r*r-w*w) // where r is sphere radius.
narvf писал(а):Why sometimes i get engraving "inside" a letter which is great, and sometimes around letter
this depends of path orientation, engraving is done always to the right of the path. You can add middle marker to the path to see it's orientation. So if you get outer engraving - just do Path-Reverse.

Re: Engraving

Добавлено: 19 фев 2015, 12:38
narvf
Ok, i would like to try, but i don't know where to write this :thinking:
In "Path to gcode" Depth function?

Re: Engraving

Добавлено: 19 фев 2015, 13:04
Nick
no in Tool's shape parameter.
Add a Cone tool and edit it's shape parameter using Text (F8).

Re: Engraving

Добавлено: 19 фев 2015, 13:26
narvf
Will check this at home! Thank you :)

Re: Engraving

Добавлено: 19 фев 2015, 22:27
narvf
Well, i think somehitng is not correct.
When i type: w*math.tan(60/180*3.1415) for example the g code is generated. I get message about commeny in comment in linux cnc, but i deleted this line manually. When opened gcode in linuxcnc z depth is 0, not below 0, for w*math.tan(60/180*3.1415) also the same and for 45 also.

Re: Engraving

Добавлено: 02 мар 2015, 10:08
Nick
Can you attach your svg, and ngc files?

Re: Engraving

Добавлено: 02 мар 2015, 19:35
narvf
Attached files.
In ngc file i had to delete 9'th line to load this into openscam or linuxcnc.

Re: Engraving

Добавлено: 03 мар 2015, 11:25
Nick
And what do you think is wrong with the Gcode?

By the way, math.tan(60/180*3.1415) = 1.7319272760572555 = sqrt(3)
hmmm... python thinks that math.tan(60/180*3.1415) = 0 (because 60/180=0 (they both integers)), try to use math.tan(60./180.*3.1415)

Re: Engraving

Добавлено: 03 мар 2015, 11:59
narvf
Z is alywas 0 so it will not go into the material.
Maybe I don't understand something :/

Re: Engraving

Добавлено: 03 мар 2015, 12:07
Nick
Ok. The problem is in the "shape"'.
As I've written - in python 60/180 =0 but 60./180=0.3333
because 60 is integer and it suppose the result will be integer and int(0.333) = 0.
So you can ether write w*math.tan(60./180.*3.1415) or just compute tangent of the cutters angle yourself and just write w*1.7(...)

Re: Engraving

Добавлено: 03 мар 2015, 12:51
narvf
Thank you! Will try this, when i will be in my garage :)

Re: Engraving

Добавлено: 10 мар 2015, 12:33
narvf
Thanks, everything is working good ;)

Re: Engraving

Добавлено: 30 мар 2015, 21:46
narvf
One more question, for 90 degress how this should be calculated? And for 120 degrees.

Re: Engraving

Добавлено: 01 апр 2015, 12:46
Nick
narvf писал(а): for 90 degress how this should be calculated
90 degrees bit has a 45 degrees from vertical to cutting line.
tan(45) = 1, so it will be just "w".
For 120 deg - it's w*tan(60) = "w/2."

Re: Engraving

Добавлено: 01 апр 2015, 18:53
narvf
Thank you very very much! :)
As soon as i will engrave something good i will let post here :)

Re: Engraving

Добавлено: 01 апр 2015, 23:29
narvf
Playing with engraving :)