FluffyMortain / heekscnc

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

backplot of arcs using R instead of IJ format #246

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was screwing around with scriptop and found that backplot doesn't like arcs 
that use R format instead of IJs. 

try this ins scriptop:
rapid(x=1.0,y=.75)
feed(x=1.0,y=.25)
arc_cw(x=.750,y=0,r=.25)
feed(x=0,y=0)

The arc looks like an engraving scroll.

The same result comes from backplotting this bit of g-code:
G20
G0 x1 y.75
G1 y.25
G2 x.75 y0 r.25
G1 x0

Dan- if you could point me in the right direction- I might be able to tackle 
this.

Thanks,
Dan Falck

Original issue reported on code.google.com by ddfalck2...@yahoo.com on 24 Aug 2010 at 2:21

GoogleCodeExporter commented 9 years ago
I hadn't tried this option!
I'll try to have a look later today...

Original comment by danhe...@gmail.com on 24 Aug 2010 at 6:21

GoogleCodeExporter commented 9 years ago
OK, I see that the c++ code in PathArc::ReadFromXMLElement, in NCCode.cpp, is 
expecting I, J, K and D values ( centre point and directioin ), but not R ( 
radius ).
I will change this code to calculate the I and J from the R value.
( It will have to be tomorrow ).

Original comment by danhe...@gmail.com on 24 Aug 2010 at 10:45

GoogleCodeExporter commented 9 years ago
I think I have fixed this now. Sorry for the delay.

Original comment by danhe...@gmail.com on 3 Sep 2010 at 8:50

GoogleCodeExporter commented 9 years ago

Original comment by danhe...@gmail.com on 3 Sep 2010 at 8:50

GoogleCodeExporter commented 9 years ago
Thanks Dan. This works.
Dan Falck

Original comment by ddfalck2...@yahoo.com on 3 Sep 2010 at 3:49