On Sun, 2007-07-08 at 23:08 -0500, Jon Elson wrote:
> Kirk Wallace wrote:
>   I have some spindle issues to work out.
> > I have an SSR for each: spindle brake, forward relay, reverse relay, high 
> > speed clutch, and low speed clutch and a stepper motor and limit switches 
> > for the variable speed pulley mechanism. Either that or go with the VFD. 
> > Either way presents new territory and hardware.
> Spindle brake, forward and reverse are already pretty well 
> supported.  See the same file I mentioned before, they are all 
> there.  The signals spindle-up and spindle-down are there, too, 
> for spindle speed control.  It shouldn't be real hard to rig a 
> stepper motor to a cheap stepper driver and a 555 timer to 
> produce the step pulses.  The simplest logic could check the 
> limit switches, and if not tripped, send step pulses to the 
> driver and set the direction, too.
> 
> Jon

Yes, I got the brake, forward and reverse relays working right out of
the box, thanks to your hal files. 

The problem is that the speed change stepper has five leads, one 35 Volt
supply and four sink wires. I don't know if this is a common stepper
configuration. I think I can use stepgen type 5 to output to a second
parallel port or maybe spare data out ports on the controller (P8?),
then to a buffer chip and some FET's. What could I use in the hal file
to link stepgen to digital outs on the univpwm card? The limit switches
are already there. Maybe I could wire them to P5 pin 1 and 2 or to an
unused encoder input?

The part I don't have a clue on yet, is with the high and low speed
clutch. I have them wired to SSR 6 and 7, so I can get them to activate
on their own. I just don't know how EMC handles spindle gear changes. 
I guess this is what is available from hal:

Spindle control

    * float iocontro.0.spindle-speed-out
    * float iocontrol.0.spindle-speed-in
    * bit iocontrol.0.spindle-on
    * bit iocontrol.0.spindle-forward
    * bit iocontrol.0.spindle-reverse
    * bit iocontrol.0.spindle-brake
    * bit iocontrol.0.spindle-incr-speed
    * bit iocontrol.0.spindle-decr-speed

I need to study the Mazak setup to see how it's done. When I ran a
Fadal, I seem to recall using an S code with the speed and a decimal
point and the gear setting. I just saw that the Mazak may use a M101.

Anyway, I need to get some sleep, but I do have a todo list for
tomorrow.

Kirk Wallace


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to