Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Saumur on September 19, 2008, 03:11:05 PM

Title: Question on mach
Post by: Saumur on September 19, 2008, 03:11:05 PM
Hi all.

I have a question regarding mach.

Is it possible to use it as a division program?

thanks
Title: Re: Question on mach
Post by: Kristin D on September 19, 2008, 03:15:50 PM
Might look at this thread: http://www.machsupport.com/forum/index.php/topic,8272.0.html

Kristin
Title: Re: Question on mach
Post by: Saumur on September 19, 2008, 03:41:42 PM
thanks a lot
Title: Re: Question on mach
Post by: Saumur on September 19, 2008, 04:18:26 PM
I read the thread and it was helpfull but i still have a question: if on 360 degrees i have 50 division, is it possible that the controller automatically divides the 360 grades in 50 parts and move from one to another one alone?

thanks
Title: Re: Question on mach
Post by: Kristin D on September 19, 2008, 04:27:31 PM
Probably best ask that to Ray L. AKA HimyKabibble as he seems to have a grasp on it, I just remembered the thread and thought it was close to what you were asking.

Kristin :)
Title: Re: Question on mach
Post by: Hood on September 19, 2008, 04:40:37 PM
If you had a stepper motor with 200 steps per Rev and the drive was for example 10 micro steps that would mean 2000 steps would do 1 revolution. 1/50th of a revolution would be 2000 steps divided by 50 =40, so if you set the steps per unit in motor tuning as 40 you would get 1/50th of a rev for every unit commanded. EG if you wanted to move to the first index you would command G0A1, if you wanted to move to the 45th division you would command g0a45 etc etc.
 I think my maths are right ;)
Hood
Title: Re: Question on mach
Post by: Saumur on September 21, 2008, 02:14:43 PM
Ok guys thanks for your help.

I understand you can set the division manually but since the number of division may change isn't there a way that the controller automatically divides them?

thanks
Title: Re: Question on mach
Post by: Hood on September 21, 2008, 03:57:47 PM
You could set up your steps per unit to anything you wanted and then write a wizard that would output the code for different divisions. Would be quite easy to do but would take a bit of thought.
Hood