On 9 May 2010 23:52, Ian W. Wright <[email protected]> wrote:
>
> Is it possible to configure a stepper as a spindle motor and
> if so - how?

If it has the power to be useful, then it is just a case of
configuring a stepgen in hal in velocity mode.

The sensible way to do it is probably to keep two completely seperate
machine configs. That is what I do with my lathe/mill combo. It makes
it easy for the axes to swap their names. (ie in the mill config Axis
0 is Stepper driver 1, but in the lathe config that stepper driver is
wired to axis2.

You could configure both a position and a velocity stepgen in the same
file and switch between them with a set of mux functions and a Pyvcp
button, but I think that the two seperate configs is the way to go.

http://linuxcnc.org/docs/2.4/html/man/man9/stepgen.9.html

explains how to create a velocity-mode stepgen, but it basically comes down to

loadrt stepgen step_type=0 ctrl_type=v

If you have two of them, one of each type it would be

loadrt stepgen step_type=0,0 ctrl_type=v,p

You might need to put the config string in quotes, "step_type=0 ctrl_type=v"


-- 
atp

------------------------------------------------------------------------------

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to