CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Drawing arc in Turbo Pascal

on 2002-06-18 11:42:35 UTC
In article <aenn40+4q07@...>, sdiken.rm <sdiken@...>
writes
>I am using TP for step motor control. Each motion of the motors is
>shown on the monitor. So I am using command "linerel(1,0)" for +x
>axis and "linerel(0,-1)" for -y axis.
>My question is, how can I draw an arc by using linerel command. For
>example arc(300,300,0,270,100) means 300,300 is the center point of
>the arc, 0 is the start angle and 270 is the final angle, and 100 is
>the radius.
>I mean first I should sat moveto(300,300) and than linerel(...)??!?!
>
>

You might want to look up stuff about the Bresenham circle algorithm.

Perhaps here

http://www.luberth.com/plotter/plotter.htm

or

http://www.programmersheaven.com/zone10/cat458/index.htm


Peter Harrison
http://micromouse.cannock.ac.uk/

Discussion Thread

sdiken.rm 2002-06-18 09:29:17 UTC Drawing arc in Turbo Pascal sdiken.rm 2002-06-18 09:29:18 UTC Drawing arc in Turbo Pascal sdiken.rm 2002-06-18 09:33:47 UTC Drawing arc in Turbo Pascal Peter Harrison 2002-06-18 11:42:35 UTC Re: [CAD_CAM_EDM_DRO] Drawing arc in Turbo Pascal