unsolved Some problem when Post about G2/G3 with R

w59001

Aktiver Benutzer
Member
Landesflagge
Hi, I am Jerry from Taiwan. Thanks for this software,I use it in school and introduction about CNC machine.

I have some problem when Post about G2/G3 with R
It is ok when post circle using IJ
but some error in R , if the central angle > 180 degree
DXF2GCODE - [D__TestG02G03.dxf].png
TestG02G03a.png
TestG02G03B.png

SINUMERIK840DISOMillingG02G03.png
 

Anhänge

  • TestG02G03.dxf
    8,7 KB · Aufrufe: 2
here is the post file and dxf file.
 

Anhänge

  • 0GRBL.zip
    1,8 KB · Aufrufe: 2
  • TestG02G03.zip
    2,4 KB · Aufrufe: 1
Zuletzt bearbeitet:
Dear spicer:

It's amazing that reply so fast.

I am sorry for my poor English. I has not given the question a very detailed description of the postprocessor.

My question is I need a minus sign(-) before R if the central angle > 180 degree.

mypost about G2

arc_int_cw = G2 X%XE Y%YE R%R%nl

the nc code like this

G2 X19.05 Y12.89 R2.24

but i need this if angle of the arc is big then 180 degree

G2 X19.05 Y12.89 R-2.24

I am not familiar with Python but in C

I guess the program like this

if abs(s_ang - e_ang) > pi:
R=0-R

in somewhere(maybe dxf2gcode/core/arcgeo.py or /dxf2gcode/postpro/postprocessor.py)
 

Anhänge

  • TestG02G03C.png
    TestG02G03C.png
    145 KB · Aufrufe: 9

Benutzer welche diesen Thread betrachten (Mitglieder: 0, Gäste: 1)

Wer hat diesen Thread gelesen

Zurück
Oben