Lathe Spindle Direction Relay Issue
- Trevy3
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
29 Oct 2023 22:49 #284083
by Trevy3
Lathe Spindle Direction Relay Issue was created by Trevy3
I've recently put together a cnc mini lathe and got the spindle hooked up using a CNC4PC C11G board. The direction controls and relays are working fine, the problem comes when I stop the spindle in the forward direction. When I press spindle stop, the spindle goes reverse for a few seconds, and then shuts off the reverse relay. When I stop in the reverse direction, this doesn't happen, although there is a couple second delay between when I press spindle stop and the relay clicking off.
What I would like to know is why the spindle reverse relay is turning on for a couple seconds when I do a spindle stop. I'm assuming it is a preset command of some sort to attempt to electrically brake the spindle, but that isn't necessary with my setup. If anyone could point me to where the code for controlling the spindle fwd/rev delay and switching, that would be great. I tried finding it in the hal file but didn't find anything. I can post any files if needed.
What I would like to know is why the spindle reverse relay is turning on for a couple seconds when I do a spindle stop. I'm assuming it is a preset command of some sort to attempt to electrically brake the spindle, but that isn't necessary with my setup. If anyone could point me to where the code for controlling the spindle fwd/rev delay and switching, that would be great. I tried finding it in the hal file but didn't find anything. I can post any files if needed.
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
02 Nov 2023 22:56 #284391
by tommylight
Uploading hal and in could help, also pictures of wiring might help.
Replied by tommylight on topic Lathe Spindle Direction Relay Issue
That is not normal behavior, probably not even is braking is used, but i never had issues with spindles, so might be something i never bumped into.....the problem comes when I stop the spindle in the forward direction. When I press spindle stop, the spindle goes reverse for a few seconds, and then shuts off the reverse relay.
Uploading hal and in could help, also pictures of wiring might help.
Please Log in or Create an account to join the conversation.
- Trevy3
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
02 Nov 2023 23:53 - 02 Nov 2023 23:56 #284401
by Trevy3
Replied by Trevy3 on topic Lathe Spindle Direction Relay Issue
Here are some pictures and a video of it running to show the issue. The hal and ini files are pretty much default from the wizard. The wiring is pretty simple, just 12V from psu, converted to a 0-10V signal for speed controller, then the 120V DC is inverted using the two relays and the commons go to the motor. I can't imagine the wiring would be causing this effect, it seems to be a controller related issue.
Video: youtube.com/shorts/gbUz_N31UVA
Video: youtube.com/shorts/gbUz_N31UVA
Attachments:
Last edit: 02 Nov 2023 23:56 by Trevy3.
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
03 Nov 2023 00:35 #284403
by tommylight
Replied by tommylight on topic Lathe Spindle Direction Relay Issue
Some things to test:
change in the ini file, display section, change display from gmmocapy to axis, start LinuxCNC and run the spindle. Does the same thing happen?
If yes, while in Axis GUI, machine menu, show hal configuration, it opens a new window where on the left choose pins, on the right choose the watch tab, then on the left under pins find parallel port and click on pins 16 and 17. Set this window aside so you can see the LED's while turning the spindle on and off.
Does the same thing happen with LED's?
change in the ini file, display section, change display from gmmocapy to axis, start LinuxCNC and run the spindle. Does the same thing happen?
If yes, while in Axis GUI, machine menu, show hal configuration, it opens a new window where on the left choose pins, on the right choose the watch tab, then on the left under pins find parallel port and click on pins 16 and 17. Set this window aside so you can see the LED's while turning the spindle on and off.
Does the same thing happen with LED's?
Please Log in or Create an account to join the conversation.
- Trevy3
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
03 Nov 2023 01:08 - 03 Nov 2023 01:15 #284407
by Trevy3
Replied by Trevy3 on topic Lathe Spindle Direction Relay Issue
I hadn't thought to check that, and yeah it seems to be doing something weird. The relays don't seem to be following the hal for some reason, like they're getting powered from a different source somehow for a few seconds. That would at least explain the shutoff delay on reverse. No idea what's going on with the sudden reverse after the forward shutoff though. And it happens as well in axis gui.
I also quickly tested disconnecting everything from the relays and they still do the same thing with only the 5V and 12V connections going to the board. Also tried disconnecting the 12V, just leaving the 5V power and still happens.
Video
I also quickly tested disconnecting everything from the relays and they still do the same thing with only the 5V and 12V connections going to the board. Also tried disconnecting the 12V, just leaving the 5V power and still happens.
Video
Last edit: 03 Nov 2023 01:15 by Trevy3.
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
03 Nov 2023 01:37 #284408
by tommylight
Replied by tommylight on topic Lathe Spindle Direction Relay Issue
Time to read the BOB manual and check the jumpers, maybe something there ...
Please Log in or Create an account to join the conversation.
Time to create page: 0.095 seconds