Relay to turn on spindle

More
20 Jan 2019 16:25 - 20 Jan 2019 16:26 #124480 by Leon82
Replied by Leon82 on topic Relay to turn on spindle

I hooked it up to the normally open side and as soon as I turned the power on the mill the spindle started. After I booted into linux cnc the relay opened and the spindle stopped. The normally open side is closed untill there is power. And I don't see any jumpers on it anywhere


That sounds like you wired it normally closed? Try the other terminal on that BOB. Maybe it's mis-labeled. Is this your board?? I would check with a volt meter to confirm the state of that relay when everything is powered off.



Yes that's the board. If the USB is plugged in(board powered ) the normaly open terminal is open . As soon as I turned off the board it closes and the spindle starts.

With the other side it is opposite. I'll double check everything later today.

They way it's wired currently the spindle starts and stops the way it should as long as the Bob is powered. You can hear the relay click at power up and the LED lights up
Last edit: 20 Jan 2019 16:26 by Leon82.

Please Log in or Create an account to join the conversation.

More
20 Jan 2019 16:48 - 20 Jan 2019 16:51 #124481 by OT-CNC
Replied by OT-CNC on topic Relay to turn on spindle
Yeah, that sounds reversed. You want it off and stay off until linuxcnc is in control.
Last edit: 20 Jan 2019 16:51 by OT-CNC.

Please Log in or Create an account to join the conversation.

More
20 Jan 2019 17:14 #124482 by Leon82
Replied by Leon82 on topic Relay to turn on spindle

Yeah, that sounds reversed. You want it off and stay off until linuxcnc is in control.


If I reverse it it will run as soon as the Bob is powered up. Something is screwy

Please Log in or Create an account to join the conversation.

More
20 Jan 2019 18:09 #124484 by Leon82
Replied by Leon82 on topic Relay to turn on spindle
Ok, it looks like I did have it on the normally closed terminal.

So something is making the relay close on start-up. I'll have to investigate more

Please Log in or Create an account to join the conversation.

More
20 Jan 2019 21:26 - 20 Jan 2019 21:33 #124496 by Leon82
Replied by Leon82 on topic Relay to turn on spindle
Ok, if I unplug the parallel cable from the computer the relay turns off.

This doesn't make sense.

This is with the computer off and the USB power wire plugged in. As soon as the parallel cable is plugged in the relay closes
Last edit: 20 Jan 2019 21:33 by Leon82.

Please Log in or Create an account to join the conversation.

More
20 Jan 2019 23:56 #124501 by Leon82
Replied by Leon82 on topic Relay to turn on spindle
I inverted the pin for the spindle and it looks like that was it.

After unplugging the parallel port it must have reset because as soon as Linux cnc was starting it closed the relay

Please Log in or Create an account to join the conversation.

More
21 Jan 2019 13:51 #124535 by andypugh
Replied by andypugh on topic Relay to turn on spindle
Try a different parallel port pin. Some are hardware-inverted, some are not, so the default state (before LinuxCNC takes control) varies from pin to pin.

Please Log in or Create an account to join the conversation.

More
21 Jan 2019 14:38 #124546 by Leon82
Replied by Leon82 on topic Relay to turn on spindle

Try a different parallel port pin. Some are hardware-inverted, some are not, so the default state (before LinuxCNC takes control) varies from pin to pin.


The documentation with the board says it uses pin 14 for the spindle relay.

After I inverted the pin in is seems to be working

Please Log in or Create an account to join the conversation.

Time to create page: 0.308 seconds
Powered by Kunena Forum