7i76 spindle control

More
29 Sep 2020 12:07 - 29 Sep 2020 12:10 #184279 by centreline
Replied by centreline on topic 7i76 spindle control
@rodw I'm not sure that is the case, as last time I used the mycnc board for spindle control, and I checked it now &it has two relays, one for enable and one for direction on it and four wires off to the parport, gnd, step, enable and dir.
I pulled my old hal file and in the gearchange component it reverses by changing the dir pin state and these are the only lines relating to rotation direction. ;-

net spindle-cw <= stepgen.4.dir => parport.1.pin-17-out
net spindle-cw => parport.1.pin-17-out

I could be wrong though, I thought last time that my drivers enable pin was held high in use and that turned out to be wrong. If I add the relay I'll just be back to how I had it before minus the enable relay and board to supply analog voltages and I can port the old config to new pin names.
Last edit: 29 Sep 2020 12:10 by centreline.

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

More
29 Sep 2020 13:29 - 29 Sep 2020 13:30 #184285 by PCW
Replied by PCW on topic 7i76 spindle control
Typically when a 7I76 is used with drives that have only FWD/REV inputs
(and cannot be reprogrammed for DIR/ENA), you can use a single SPDT relay
to steer the enable signal to FWD or REV depending on the state of DIR

So:

+24V --> RELAY_COIL+
RELAY_COIL- --> DIR+
DIR- --> GND

ENA+ --> RELAY_COM
ENA- --> GND

RELAY_NC --> FOR
RELAY_NO --> REV

This assumes the VFD inputs are active low.
The relay needs a flyback diode.
Last edit: 29 Sep 2020 13:30 by PCW.
The following user(s) said Thank You: centreline

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

More
30 Sep 2020 07:37 #184360 by centreline
Replied by centreline on topic 7i76 spindle control
Thanks all, good point on the flyback diode's for coil switched relays,
I should have said with a ssr rather than relay, as ordered some on a din rail mount so when they arrive I'll wire them in for all of my output switched functions as I can avoid using a flyback diode, and they're mostly more reliable.

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

More
07 Oct 2020 09:23 #185219 by centreline
Replied by centreline on topic 7i76 spindle control
Ended up buying a bank of din rail opto isolated relays, and allocated #1 to spindle direction as described, and the rest to suds/mist other duties and now everything is working as it should be.

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

More
13 Oct 2020 12:35 #185975 by summat
Replied by summat on topic 7i76 spindle control
Glad to hear the OP is sorted. There is another path that I went down which is to write your own HAL component to manage the logic - if I remember when I'm home from work I can post that if there's interest.

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

Moderators: PCWjmelson
Time to create page: 0.098 seconds
Powered by Kunena Forum