Re: [CAD_CAM_EDM_DRO] hi
Posted by
Drew Rogge
on 2001-10-11 07:16:11 UTC
Semih,
I'm not sure what CNC controllers use for circle generation but
you might try doing a web search on Bresenham's circle drawing
algorithm. This used a lot in computer graphics. You'll probably
also find that you may need more input than just x1,y1 and x2,y2.
Even if these points are the beginning and end of a quarter segment
of a circle, there are two circles which share those points; one
whose center is at x1,y2 and the other at x2,y1. This is one
of the reasons g-codes allow you to specify if the travel along
the circle is in the clockwise or counter clockwise direction.
Drew
sdiken@... wrote:
Drew Rogge
drew@...
I'm not sure what CNC controllers use for circle generation but
you might try doing a web search on Bresenham's circle drawing
algorithm. This used a lot in computer graphics. You'll probably
also find that you may need more input than just x1,y1 and x2,y2.
Even if these points are the beginning and end of a quarter segment
of a circle, there are two circles which share those points; one
whose center is at x1,y2 and the other at x2,y1. This is one
of the reasons g-codes allow you to specify if the travel along
the circle is in the clockwise or counter clockwise direction.
Drew
sdiken@... wrote:
>--
> My project is "Conversion of a conventional lathe to the CNC lathe,
> by using PC based motion control unit" The programming language is
> Turbo Pascal. PC is sending signals to parallel port. Then a driver
> is sending this signals to 2 step motors. One of them is acting on X-
> direction and the other Y-direction of the lathe. I write a programm.
> But is it not finished. In this programm, x1 and y1 (start point)are
> entered and then x2 and y2 (finish point) are entered. If this is a
> linear line, then my programm is successful (y=mx*i) either m>1 or
> m<1 (m=slope). But I can not do it for a circle. (x^2 + y^2 = r^2)
> I want to move the step motors like a quarter circle for example for
> a shaft. Look the figure below. I update the program to the FILES.
> You know any programm like this? Or can please help me!?
>
> _____
> C______
> ______S
> _____C
>
> Thanks
> SEMIH DIKEN
>
Drew Rogge
drew@...
Discussion Thread
sdiken@r...
2001-10-11 03:40:37 UTC
hi
Drew Rogge
2001-10-11 07:16:11 UTC
Re: [CAD_CAM_EDM_DRO] hi
ccs@m...
2001-10-11 08:01:06 UTC
Re: [CAD_CAM_EDM_DRO] hi
Bert Pirson
2001-10-11 08:06:28 UTC
Re: [CAD_CAM_EDM_DRO] hi
Carol & Jerry Jankura
2001-10-11 10:03:34 UTC
RE: [CAD_CAM_EDM_DRO] hi
Jon Elson
2001-10-11 10:39:20 UTC
Re: [CAD_CAM_EDM_DRO] hi
Alan Marconett KM6VV
2001-10-11 10:56:56 UTC
Re: [CAD_CAM_EDM_DRO] hi
dkowalcz@d...
2001-10-11 11:14:09 UTC
Re: hi
shawncd@p...
2004-09-07 11:30:16 UTC
hi
Shumaim Shaheer
2010-03-08 12:34:17 UTC
hi
caudlet
2010-03-08 14:29:27 UTC
Re: hi [off topic]
David G. LeVine
2010-03-08 17:50:10 UTC
Re: [CAD_CAM_EDM_DRO] hi