Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: jr_82 on March 28, 2011, 12:21:41 AM
-
I have a DC motor that I would like to run as a 4th axis Rotational. This is not for speed. It is to rotate stock. It has a gear box with a 660 to 1 ratio. nice and slow. How do I get Mach to run it as an axis? the motor has 3 wires one for each direction of movement and another that does nothing. I assume it is another ground of some sort.
-
Hi JR,
I know nothing of lathes but the rotating headstock is fitted with a slotted disk which interrupts the beam from an optical sensor. This pulse is then fed into Mach to measure RPM and is used for synchronizing threading etc. A similar system is used for spindle speed control on a mill.
You may need to do a bit of searching but there are details of spindle setups on the forum.
Tweakie.
-
To run it as an axis you will need to have control over it with a servo drive, that will require you have an encoder on it as well.
If simply wanting to use it as a spindle, ie no sync between other axis then a relay would likely be all you need to operate it via Mach.
Hood
-
Like the relay that is on my board, that just turns on and off a spindle?
JR
-
I still need it to move to certain positions ie, 0 180 90 270 degree, will I have a reading in the dro? for the angle.
-
If you need to use it as a true axis then you will need to add an encoder and get a suitable drive to control direction and speed.
Hood
-
with a relay can I tell it how far to move.
-
No, the relay was mentioned just because you said "one for each direction of movement" about the two wires. So I was thinking if you had a double pole double throw relay you could reverse the direction. You would not have any control over it except you could vary the supply voltage to control the speed and reverse the direction.
For positioning as you would such as with an axis you would need proper control over it by turning the DC motor into basically a servo and that is where the encoder and drive would be required.
Hood
-
OK thanks!
-
If you need infinite positioning, then you need a motor controller. If you just need 0, 90, 180 and 270 degrees, you can use 4 limit switches. Turn on the motor with a relay and watch for the correct switch to trip.
-
That is a great Idea, I only need those 4 positions, Mainly just 2, 0 and 180
Thanks
JR