With the help of this web 
site.http://www.kirupa.com/developer/actionscript/trig_multiple_axis.htm
I was able to come up with the following :
(cutting two arcs at same time)

#3=40 (step size for z axis arc radians?)
#4=#3 (x running total for z axis arc)
#5=#3 (y running total for z axis arc)
#6=6 (x axis arc start psn.)
#7=3.512 (y axis arc start psn.)

#11=-2.55 (arc around y axis start angle)
   
#13=40 (step size for y axis arc radians?)
#14=[#11] (z running total for y axis arc)
(#15=#1 y running total for y axis arc)
#16=-.25 (z axis arc start psn.)
#10=0
#20=0 (dip watch)


G20 (Unit in )
G90 (Absolute distance mode)
G64 P0.01 (Exact Path 0.001 tol.)
G40 (Cancel diameter comp.)
G49 (Cancel length comp.)
(T1M6 Tool change to T1)
M8 (Coolant flood on)
S5000M03 (Spindle 5000rpm cw)

g0 z.5 (safety height)
g0 x 0 y 0
f 10
(move to arc start psn)
g0 x [#6] y [#7]
g1 z [#16]
o110 do
        (zy arc inside of z arc)
o100 do
        (xy arc)
    #8=[[COS[#4*.01745]*#6]-[SIN[#4*.01745]*#7]]
    #9=[[SIN[#4*.01745]*#6]+[COS[#4*.01745]*#7]]
g1 x [#8] y [#9]
    #4=[#4+#3]
        #5=[#9]
o100 while [[#8]  GT 0-[#6]]
      


(return to start psn)
g0 z .5
g0 x [#6] y [#7]
g1 z [#16]

#20=[#10] (remember old z psn)

(new xz psn)
    #10=[[COS[#14*.01745]*#16]-[SIN[#14*.01745]*#6]]
    #8= [[SIN[#14*.01745]*#16]+[COS[#14*.01745]*#6]]
    #6=[#8]
    #4=[#3]
        #14=[[#14]+[#13]]
g1 z [#10] x [#8]

o110 while [ABS[#10] GT ABS[#20]]
           
g0 z.5
g0 x0 y0

m2

Comments and improvements welcome.
                                 Jim

Frank Tkalcevic wrote:
> I can't help with your specific problem, but I regularly use "Arc Buddy" to
> test my arc code...
>
> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_EMC_G-Code_Generators#Arc
> _Buddy
>
>
>
>
> -----Original Message-----
> From: Jim Wilkin [mailto:james.a.wil...@gmail.com] 
> Sent: Friday, 25 June 2010 6:22 AM
> To: Enhanced Machine Controller (EMC)
> Subject: [Emc-users] help wit o words
>
> The program I have in mind is to make the top arched cove molding for a
> grandfather clock.
> Would like to use O words to make to two arches at the same time one
> horizontal (starting at  7 9/16 rad. and ending at 5 5/8 rad.) and one
> vertical (1 13/16 like the bottom inside of a ball).
> Have studied the ball in the box. But need two different radius.
> Perhaps someone could guide me to more articles on this subject.
> I took trig fifty years ago and they said "some day you will need it".
>                                         Thank you Jim
>
> ----------------------------------------------------------------------------
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day
> Giveaway. ONE MASSIVE PRIZE to the lucky parental unit.  See the prize list
> and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>   

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to