Welcome! Log In Create A New Profile

Advanced

Genereren van G code.

Posted by WernerDe 
Genereren van G code.
April 03, 2014 04:30AM
Beste,

ik heb een vraagje ivm hoe ik g code kan genereren uit een ander bestandstype. Ik weet dat dit gaat me .stl of .dxf maar bij mij ligt het probleem anders.

Voor mijn thesis maak ik een freesmachine die voegen uit een muur moet frezen aan de hand van een genomen foto. Deze foto heb ik bewerkt met allerlei algoritmes om zo het midden van de voeg te vinden. Nu heb ik het midden van de voeg gevonden. Dit midden bestaat uit allemaal coordinaten die ik kan exporteren als XML, excel, CSV, een database, ...

Mijn vraag is dus welk van deze bestandstypes kan ik gebruiken om GCODE te genereren?

Of wat denken jullie dat een oplossing kan zijn?


Alvast bedankt.

Werner
Re: Genereren van G code.
April 03, 2014 05:20AM
Quote
WernerDe
Beste,

ik heb een vraagje ivm hoe ik g code kan genereren uit een ander bestandstype. Ik weet dat dit gaat me .stl of .dxf maar bij mij ligt het probleem anders.

Voor mijn thesis maak ik een freesmachine die voegen uit een muur moet frezen aan de hand van een genomen foto. Deze foto heb ik bewerkt met allerlei algoritmes om zo het midden van de voeg te vinden. Nu heb ik het midden van de voeg gevonden. Dit midden bestaat uit allemaal coordinaten die ik kan exporteren als XML, excel, CSV, een database, ...

Mijn vraag is dus welk van deze bestandstypes kan ik gebruiken om GCODE te genereren?

Of wat denken jullie dat een oplossing kan zijn?


Alvast bedankt.

Werner

Euhm dit is een Engels forum.

You can always create your own program to generate G-Code from a XML file. There might also be some pre-made programs to do this with.
Why not write your own code to drive the steppers anyway? Why use G-Code?
Re: Genereren van G code.
April 03, 2014 09:45AM
Hi,

for school i need to make a -so called masterwork-. I has made a XYZ mill with on each axis a stepper. All of the components are perfectly working. My machine is made to put on a wall off a house an ''mill out'' the egdes (if there are to old or ugly) between the different bricks. So i made a picture of the wall, use some matlab algoritms to calclute the midlle of the edge. Now the middle of the edge is a line with points and each point has his own coordinates. So i need to put these coordinates in excel and generate out off exell a g code ?


thanks
Re: Genereren van G code.
April 03, 2014 09:57AM
Quote
WernerDe
Hi,

for school i need to make a -so called masterwork-. I has made a XYZ mill with on each axis a stepper. All of the components are perfectly working. My machine is made to put on a wall off a house an ''mill out'' the egdes (if there are to old or ugly) between the different bricks. So i made a picture of the wall, use some matlab algoritms to calclute the midlle of the edge. Now the middle of the edge is a line with points and each point has his own coordinates. So i need to put these coordinates in excel and generate out off exell a g code ?


thanks

"Thesis" in Dutch = "Thesis" in English.

Do you have something that reads G code? You cant just give a stepper motor some Gcode and expect it to work.
You need something that reads the G-Code and then translates it to movements of the X Y and Z axis.
In 3d printers this is usually an Arduino based microcontroller board.

[arduino.cc]

If you have this or something simillar, then yes you need something that creates a G code from a XML file.
If you google and click the first result you can find the WIKI that explains how to do this under the header:
Programming environments.
[en.wikipedia.org]

Just a hint, if this is your Thesis for HBO lvl or higher then you shouldnt really be askin questions here that can be answered by clicking the first google result.
Re: Genereren van G code.
April 03, 2014 10:07AM
I've posted my questio n to the dutch formum, maybe they know what i mean.. Thanks for helping me..

Edited 1 time(s). Last edit at 04/03/2014 10:13AM by WernerDe.
Sorry, only registered users may post in this forum.

Click here to login