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.

HAL may not be the easiest to understand, but it can do some amazing work
if you figure it out!

Thanks for all the help on this thread!

Dan



On Fri, May 15, 2020 at 8:10 PM Dan Henderson <luvtof...@gmail.com> wrote:

> Great idea Andy!
>
> On Fri, May 15, 2020 at 6:02 PM andy pugh <bodge...@gmail.com> wrote:
>
>> On Fri, 15 May 2020 at 18:40, Dan Henderson <luvtof...@gmail.com> wrote:
>>
>> > One BOB requires an external 5v supply the other is able to use a USB
>> port
>> > from the PC for power.
>>
>> You might be able to steal 5V from the second for the first.
>>
>> --
>> atp
>> "A motorcycle is a bicycle with a pandemonium attachment and is
>> designed for the especial use of mechanical geniuses, daredevils and
>> lunatics."
>> — George Fitch, Atlanta Constitution Newspaper, 1912
>>
>>
>> _______________________________________________
>> 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