CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] hi

on 2001-10-11 10:56:56 UTC
Hi Semih,

Try some of the free stepper motor controller programs available on the
net. This list has a list of URL's. Also search through past emails
for lists of controller software available with source code. You might
try:

http://www.wokingham.demon.co.uk/

Is this a project for school? Is the project WRITING the code? You
don't mention the language, 'C', Pascal, BASIC?

Are you looking for help in the algorithms?

The controller programs that drive most of our CNC machines generally
"interpret" a CNC language, or a common "plotter" file. A statement
like "G01 X1.0 Y1.0" would tell the software to move at a specified cut
rate from the current position to the position X = 1.0" and Y = 1.0".
This is assuming inch mode (you may want mm's), and ABSOLUTE positions.
A plotter command might be: "PD 1000, 1000;" Which instructs a plotter
to "Pen down", and move to X = 1000 and Y = 1000 "units". The plotter
might have 1296 "units" to the inch.

For direct commands to the controller program, we use MDI (manual data
input) mode. the program just has to interpret a SINGLE line (G01
X...). A "Part Program" is simply a list of single lines, called
"blocks".

For your program, I'd suggest calculating the distance needed (x2-x1)
and y2-y1) in your units (inches?), then "scaling" into machine "steps"
(you might have 8000 steps/inch). Then execute a software "loop",
counting out the longest move. The dependent axis moves (steps) a
smaller amount, and is divided from the larger move. So Y may only step
2/3's as many times as X in a move. Circles are a little harder!

A lot of information is available on the net, searching for CNC, stepper
motors, should give you a lot of info. Just follow the links!

Hope this helps

Alan KM6VV


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

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