Relay to turn on spindle
- Leon82
- Offline
- Platinum Member
- Posts: 596
- Thank you received: 77
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
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
- Posts: 596
- Thank you received: 77
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.
- Leon82
- Offline
- Platinum Member
- Posts: 596
- Thank you received: 77
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.
- Leon82
- Offline
- Platinum Member
- Posts: 596
- Thank you received: 77
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
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
- Posts: 596
- Thank you received: 77
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.
- andypugh
- Offline
- Moderator
- Posts: 23313
- Thank you received: 4862
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
- Posts: 596
- Thank you received: 77
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.