Thanks Gene.  I too dabbled in Amiga ARexx back in the day. I was / still
am a Commodore aficionado. To this day, I have working Amiga, C-128, and
C64 hardware. I prefer Assembly Language over BASIC for obvious reasons
with speed being foremost among them. But I digress...

I ended up building a reversing cirucuit with a Tyco 12v DPDT relay capable
of 15a / 30 VDC switching. So long as I don't attempt a direction flip that
exceeds those max ratings I should be good. I've tested 800 rpm CW - CCW
-CW without so much as a batted eye -- it was quite smooth with the delays
factored in and all. Quite happy with this setup. I have the added bonus of
a semi brake action on the CCW motion. An M5 will stop that rotation quite
quickly due to the the mc2100 power off which kills the slow decell ramp
built-in with that board.

Now to move on and dial-in the RPM reading in PY Panel. My scale / range is
not set right. I can turn the RPM at 50 or less and it shows 200 rpm on the
Pypanel.

Cheers!




On Tue, May 19, 2020 at 4:01 PM Gene Heskett <ghesk...@shentel.net> wrote:

> On Tuesday 19 May 2020 16:15:31 Dan Henderson wrote:
>
> > Update for everyone. I now have two working relays controlling the
> > operation of the spindle motor via BOB and Parallel Port. I've also
> > now successfully tested the G33.1 Rigid Tapping cycle with this setup.
> >
> > Relay #1 is used to power on/off the motor controller board (MC2100).
> > (M5 or S0 triggers off, M3 or M4 triggers on)
> > Relay #2 is used to reverse the polarity of the spindle motor
> > providing CCW operation. (M4 Triggers on, M3 or M5 triggers off)
> >
> > In order to get these functioning properly, I had to implement two
> > different "timerdelay" functions in HAL.
> > One delay is needed to allow the MC2100 board to power on and
> > initialize before PWM signals are sent.
> >
> > The second delay is needed to slow down the reverse polarity relay in
> > order to ensure the motor controller is properly powered off before
> > allowing the relay to flip back to normal polarity. Otherwise the
> > spindle would flip rotation to cw once triggered.
>
> Glad you have it sorted. :)
>
> > HAL may not be the easiest to understand, but it can do some amazing
> > work if you figure it out!
> >
> I have only found one other language more versatile than hal, arexx on
> the amiga, but it had hooks into the deepest workings of amigados that
> hal will never have. It is IMNSHO, the best language that linux itself
> will tolerate in the same building, very very little it cannot do.
>
> > Thanks for all the help on this thread!
> >
> > Dan
>
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> If we desire respect for the law, we must first make the law respectable.
>  - Louis D. Brandeis
> Genes Web page <http://geneslinuxbox.net:6309/gene>
>
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to