mecamira / dxf2gcode

Automatically exported from code.google.com/p/dxf2gcode
0 stars 0 forks source link

G2 / G3 #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hallo,
tolles Programm! Ist es möglich bei G2/G3 den Kreismittelpunkt nicht vom 
Anfangspunkt der Kreisbewegung, sondern vom Teilenullpunkt aus auszugeben?
Hintergrund: Philips 532

sorry for my bad english ;-)

Original issue reported on code.google.com by eham.mo...@googlemail.com on 3 Mar 2013 at 4:35

GoogleCodeExporter commented 9 years ago
Und auch hier nochmals die Antwort:

Hallo Jan,

das kann dxf2gcode auch bereits.  Anbei der Ausschnitt aus dem Postprozessor 
file:

                   "%I":'self.fnprint(self.IJ.x)',\
                   "%-I":'self.fnprint(-self.IJ.x)',\
                   "%J":'self.fnprint(self.IJ.y)',\
                   "%-J":'self.fnprint(-self.IJ.y)',\
                   "%XO":'self.fnprint(self.O.x)',\
                   "%-XO":'self.fnprint(-self.O.x)',\
                   "%YO":'self.fnprint(self.O.y)',\
                   "%-YO":'self.fnprint(-self.O.y)',\

So sieht das in Postprozessor Config Datei als Beispiel aus (??? ersetzten 
durch das was die Maschine braucht):

    arc_int_cw = G2 X%XE Y%YE ????%XO ????%YO%nl
    arc_int_ccw = G3 X%XE Y%YE ???%XO ????%YO%nl

das heisst, wenn Ihr einfach XO (nicht 0 (Null) sondr O (Buchstabe)) verwendet, 
dann habt ihr den Absoluten Nullpunkt eines Kreises.

Gruß
Christian 

Original comment by christian.kohloeffel on 3 Mar 2013 at 7:09