Mirroring to engrave both side of material

cnc-club.ru for English speaking users
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Mirroring to engrave both side of material

Сообщение James628 »

Hi,

I would like to ask your hint or advice, what would be the feasible and possible easy way to generate a toolpath.
The challenge is:
There is an approx. 10mm thick wooden material. I have to engrave both sides of it, and the engraving must be very same on both sides. You can imagine like an Mickey Mouse cut out of wood, and on both sides of it is the engraved face and all other details.

I thought that first I have to engrave one side, flip it back, _position_it_in_the_right_place_ than engrave the other side and finally cut it out.
How should I make g-code for the flipped or mirrored image, that I could place exactly in the desired position?

May postprocessing with use of mirroring along Y axis would help?
How would be the syntax for that?

Any advice or help is highly appreciated.

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

Re: Mirroring to engrave both side of material

Сообщение Nick »

How do you generate your Gcode?


When we developed Gcodetools we involved orientation point to solve this problem. You can fix your material by tree bolts using three drill trough holes.
Then you just create tree points Orientation system and place this points to the centers of the holes in certain order for front and back side. After that Gcode should be properly rotated/mirrored and translated.
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Hi Nick,

Thank you for the response.
Excuse me, but I still have trouble to understand how to do that. :think:

Is that what you proposed?:
1) Drill three holes (let's say: x1=0, y1=0 x2=150 y2=0 and x3=200 y3=180) and fix the material through them.
2) Use the above points as orinentation points in Gcodetools, and generate the g-code for one side?
3) Flip the material on the reverse side
4) Set new orientation points? To what values? (I want to mirror along Y axis)
5) Generate g-code
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение Nick »

See the attachments.
You need to create additional layer with orientation points. Then change poitns place, or their coordinates.
Everything else is the same, you can even export to gcode at once for both sides.
(And add another tool definition with Pause and message in Tool's change Gcode).

PS there's standart post-processor to flip Gcode alog one axis..... you can use it as well.
Вложения
flip-y.png (13446 просмотров) <a class='original' href='./download/file.php?id=11130&sid=4aa73a775acb8af1d2621c7652ea2a16&mode=view' target=_blank>Загрузить оригинал (67.27 КБ)</a>
Снимок-12.png (13446 просмотров) <a class='original' href='./download/file.php?id=11131&sid=4aa73a775acb8af1d2621c7652ea2a16&mode=view' target=_blank>Загрузить оригинал (180.65 КБ)</a>
Снимок-11.png (13446 просмотров) <a class='original' href='./download/file.php?id=11132&sid=4aa73a775acb8af1d2621c7652ea2a16&mode=view' target=_blank>Загрузить оригинал (150.23 КБ)</a>
flip-y.svg
(20.13 КБ) 1337 скачиваний
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Hi Nick,

Thanks a lot. I'll try it soon.
Where can I find the documentation or manual about this?

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

Re: Mirroring to engrave both side of material

Сообщение Nick »

Emmm... I do not know :freak:
I'm not sure there's manual on that in English...
This is allmost all that we have:
http://cnc-club.ru/forum/viewtopic.php? ... 6924#usage

And probably there are some videos on youtube about Gcodetools....
See those from Matthew Smith - that are great tutorial videos.
http://www.youtube.com/results?search_query=gcodetools
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Hi Nick,

I tried to produce a flipped G-code for a very basic path in Gcodetools.
So I made the normal G-code and then with postprocessor "flip(x)".
The resulting G-code is exactly the same for the normal and flipped path. What did I do wrong?
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение Nick »

I have just checked flip post-processor - it works fine.

Can you attach your svg?

What version of Gcodetools are you using?
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Hi Nick,

It's a star shape and rectangle created in 2 seconds in Inkscape,really nothing special. I made it just to verify if my the concept is OK.
I'll be able to attach it later on
Gcodetools ver is 1.7

I believe something went wrong on my side, and that's not an postprocessor issue.

I've checked it on other computer. Under Windows it's working, of course. (some error messages about G02 and G03, but the G-code seems OK)
But anyway I have to check why that's not working on my Ubuntu 10.04.

I'll be back with details.
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Hi Nick,

I removed completely my Inkscape 0.47 which was installed on 10.04 Ubuntu and installed 0.48 version. I still had strange things.
Then I deleted ./config/inkscape from my home directory and that resolved all my problems. Everything works well.
Thanks a lot for your help!

I got a warning when I create G-code using flip(x) postproc:" Post-processor: Scale factors for X and Y axis are not the same. G02 and G03 codes will be corrupted."
Shall I ignore it, or something wrong with my setup? The code seems OK for me and for LinuxCNC too.

Does the online manual contain all available postprocessor commands? I'd like to try them.

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

Re: Mirroring to engrave both side of material

Сообщение Nick »

James628 писал(а):I got a warning when I create G-code using flip(x) postproc:" Post-processor: Scale factors for X and Y axis are not the same. G02 and G03 codes will be corrupted."
Hmmm ... I do not really know... :freak:
Can you try latest -devversion from launchpad?
http://bazaar.launchpad.net/~gcodetools ... lope/files
(do not forget to run python create_inx.py to get new inxs)

Here areall available post processors:
self.functions = {
"remap" : self.remap,
"remapi" : self.remapi ,
"scale" : self.scale,
"move" : self.move,
"flip" : self.flip_axis,
"flip_axis" : self.flip_axis,
"round" : self.round_coordinates,
"parameterize" : self.parameterize,
"regex" : self.re_sub_on_gcode_lines,
"remove_a_turns" : self.remove_a_turns,
Most remarkable - regex - most powerful one - applyes defined regex to every string of gcode. Others are not so interesting :).
And anyway I suggest to use another layer with another copy of Orientation points - thus it will be easier to put back side in it's exact place.
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Nick писал(а):
James628 писал(а):I got a warning when I create G-code using flip(x) postproc:" Post-processor: Scale factors for X and Y axis are not the same. G02 and G03 codes will be corrupted."
Hmmm ... I do not really know... :freak:
Can you try latest -devversion from launchpad?
Hi,

I tried the dev version: I can see only the "Gcodetools-dev" line in the Extensions menu, but nothing shows up on the right. Probably caosed by older Ubuntu version (10.04). How could I trace the issue?

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

Re: Mirroring to engrave both side of material

Сообщение Nick »

Have you read this: :)
Nick писал(а):(do not forget to run python create_inx.py to get new inxs)
You need to create inx files by running the script.
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Hi Nick,

Sure, I did so. It created a bunch of inx files, which I copied to the extension folder.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение Nick »

Then there should be a "folder" Gcodetools-dev. Can you make a screenshot?
(to capture opened menu - open Screenshot utility and make screenshot with delay, then oren menu)
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Nick писал(а):Then there should be a "folder" Gcodetools-dev. Can you make a screenshot?
(to capture opened menu - open Screenshot utility and make screenshot with delay, then oren menu)
No directory was created, just the inx files.

I created by hand one in extension folder and put there inx files. but this didn't help either.

Here goes the screenshot:
Вложения
Inkscape Gcodetools-dev menu (13382 просмотра) <a class='original' href='./download/file.php?id=11374&sid=4aa73a775acb8af1d2621c7652ea2a16&mode=view' target=_blank>Загрузить оригинал (89.72 КБ)</a>
Inkscape Gcodetools-dev menu
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение Nick »

hmmm... can you run inkscape from console? It can write threre additional info....
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

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

Re: Mirroring to engrave both side of material

Сообщение Nick »

hmmmmmmmm... are you sure that all inx files are put into the extensions directory.
Can recheck that files are there, there is "-dev" somewhere in that files and you have permitions ti read them (or permitions for them are the same with the others).
James628
Новичок
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0
Контактная информация:

Re: Mirroring to engrave both side of material

Сообщение James628 »

Nick писал(а):hmmmmmmmm... are you sure that all inx files are put into the extensions directory.
Can recheck that files are there, there is "-dev" somewhere in that files and you have permitions ti read them (or permitions for them are the same with the others).
I listed the content of the extension directory (ls -al). Here is part of it:
Вложения
gc1.png (13371 просмотр) <a class='original' href='./download/file.php?id=11393&sid=4aa73a775acb8af1d2621c7652ea2a16&mode=view' target=_blank>Загрузить оригинал (133.1 КБ)</a>
Ответить

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