I just have the standard 7i76 not the 7i76D and I am using flyback diodes on all my relay coils
cheers Andew On Wed, Apr 1, 2020 at 9:55 PM Gene Heskett <[email protected]> wrote: > On Wednesday 01 April 2020 03:08:43 andrew beck wrote: > > > Thanks Gene! > > > > I just connected up a DPDT relay to the spindle dir switch in the 7i76 > > mesa card. the relay switches the 24 volts enable signal between > > forward and reverse inputs on the vfd > > Thats a different hookup. Whats the suffix on your 7i76? D versions, > which are 1 of 3 available, do sink only. But you can invert that with > the relay. In any event be sure and put a diode across the relay else > turnoff will generate a high enough voltage to damage the 7i76. Even > running 12 volt field power, the deterioration is still present and > stuff you shut off, eventually won't without a power cycle, but may work > again if you put the diode in. Thats the situation on my 6040, the > machine that supplied that snippet of hal code. > > > and the enable input on 7i76 enable switch connects the +24v to the > > relay being switched if that makes sense. > > > > easy as once I got my head around it and it all works now. > > > > But I have many other issues to solve of course so I really appreciate > > your quick awesome responses > > > > regards > > > > andrew > > > > On Wed, Apr 1, 2020, 6:14 PM Gene Heskett <[email protected]> wrote: > > > On Tuesday 31 March 2020 23:42:38 andrew beck wrote: > > > > hey guys yelping out for help again here. sorry to me so noisy on > > > > the email list lol. > > > > > > > > just coming back to this problem with my spindle direction > > > > signals. > > > > > > > > (just to reiterate my set up > > > > > > > > I have a mesa 7i76 card and have the anlog input up and working. > > > > I am controlling a schiender vfd using 2 wire control at the > > > > moment. though I can use 3 wire control if that helps. > > > > > > > > the enable pin on the 7i76 is currently set to switch the forward > > > > rotation on the vfd > > > > the direction pin is currently set up for switch the reverse input > > > > on the vfd > > > > > > That sounds correct but do you have a common return from the > > > negative end of the 10 or 12 volt supply most vfd's supply back to > > > the - terminal on the 7i76? This would be your 4th wire. You need > > > this wire from the -supply in the vfd, to the -speed on the 7i76, > > > the wire from the + 12 of that supply in the vfd to the the +speed > > > of the 7i76, a wire from the speed terminal of the 7i76 to the 0-10 > > > volts speed input of the vfd. That will run you fwd only. For > > > reverse, now that you have a common - rail, you will need to pull > > > down to that, by sinking the reverse. Here is the spindle section of > > > my hal file for a 6040 mill with a Chinese 120 volt vfd that > > > required reprogramming!!!!!! > > > #*************************************************** > > > # setup spindle driver * > > > #*************************************************** > > > net spindle-cmd <= spindle.0.speed-out => abs.1.in > > > # feed always + value to spinout > > > net spindle-abs <= abs.1.out => hm2_5i25.0.7i76.0.0.spinout > > > # set a minimum speed to protect motor > > > # you can add these vars in the spindle section of the ini file! > > > setp hm2_5i25.0.7i76.0.0.spinout-maxlim [SPINDLE_0]MAXREV_LIM > > > setp hm2_5i25.0.7i76.0.0.spinout-minlim [SPINDLE_0]MINREV_LIM > > > setp hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_0]MAXREV_LIM > > > net motor-power <= motion.motion-enabled > > > net spindle-enable <= spindle.0.on > > > # enable spindle forward > > > net spindle-enable => fwdpul.in0 > > > net spindle-ena1 <= fwdpul.out => hm2_5i25.0.7i76.0.0.spinena > > > > > > # spindle fwd-rev to tallies in xml file > > > net spindle-fwd <= spindle.0.forward # used in postgui.hal to > > > turn on # and machine power > > > net spindle-rev <= spindle.0.reverse => revpul.in0 > > > net spinrev1 <= revpul.out => hm2_5i25.0.7i76.0.0.spindir > > > > > > # make the or2's into buffers, not's in other words > > > setp revpul.in1 false > > > setp fwdpul.in1 false > > > # While at it, use motion-enabled to turn on machine and lights, > > > power # output sinks to ground, relay coil pwr src is 12v term strip > > > # and don't forget a free-wheeling diode on the relays coil. net > > > motor-power => hm2_5i25.0.7i76.0.0.output-02 > > > # break into 2nd power strips cord, cutting the (black) hot wire > > > with the relay contacts so all motor > > > power and a 4 foot led lamp over machine all come on with the > > > motion.enable signal. F2 on the keyboard. > > > > > > As you can see, I am fond of renaming a module to indicate what its > > > doing. :) > > > > > > Hopefully this should clarify (but it could muddy the waters too > > > since I have never seen one of those vfd's) things a bit because the > > > pin names are all here. > > Stay home and safe, Andrew > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/gene> > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
