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.
>
> I can speed up and run the spindle fine forwards its just backwards
> that is a problem)
>
> anyway to carry on with the issue
>
> So its quite funny what happens.
>
> I can start the spindle in forward rotation with m3 s400  then I can
> stop the spindle manually or with m30.  and then start it backwards
> with m4 s400.  then without stopping I can type m3 s500 again and send
> it forwards.  That part all works good.  what doesn't work is if I try
> to send the spindle backwards on the fly.  eg m4 s500 while still
> running forward. The speed changes but the direction doesn't.  Its a
> weird.
>
> One fix for this I suppose is I could connect a relay that switches
> the direction in the vfd between forward and reverse rotation.  that
> is easy but I still don't know if it will work.  I suppose I could
> almost run the enable relay feeding the direction relay so you switch
> the direction relay between fwd and rev and actually turn on the vfd
> with enable relay once the direction relay is set the right way.  But
> that sounds like a pretty complicated setup when I know that I am
> facing a very common problem.  So I will await any ideas before
> mucking around too much..
>
> I will add a photo of what I am thinking and reply here from my phone.
>
> regards
>
> Andrew
>
> On Tue, Mar 17, 2020 at 2:12 PM Gene Heskett <[email protected]> 
wrote:
> > On Monday 16 March 2020 19:28:59 andrew beck wrote:
> > > ok gene just a update
> > >
> > > I have the mesa card connected to the vfd now.
> > >
> > > currently the analog signal is working fine I can it being read by
> > > the vfd which is good.
> > >
> > > I am having trouble with the control signals though.
> > >
> > > I currently have the 7i76 spindle enable pin switching the forward
> > > pin on the vfd
> > > the spindle direction pin on 7i76 switches reverse pin on vfd
> > >
> > > I am a bit stuck with what I need to do to connect up the hal
> > > signals.. any help there would be appreciated.  and let me know
> > > what info you need from me.
> > >
> > > regards
> > >
> > > Andrew
> > >
> > > On Mon, Mar 16, 2020 at 7:02 PM andrew beck
> > > <[email protected]>
> > >
> > > wrote:
> > > > I have a schiender vfd made in France so a proper manual lol.
> > > >
> > > > It's just the Mesa card I'm not sure about lol
> > > >
> > > > On Mon, Mar 16, 2020, 9:10 PM Gene Heskett
> > > > <[email protected]>
> >
> > wrote:
> > > >> On Monday 16 March 2020 00:28:43 andrew beck wrote:
> > > >> > Hey guys..
> > > >> >
> > > >> > this has probably been rehashed a few times but did some
> > > >> > google searches and couldn't find it so am asking here
> > > >> >
> > > >> > I just want to connect my mesa 7i76 spindle outputs to my
> > > >> > vfd.
> > > >> >
> > > >> > I will use 0-10 volts control speed reference and a forward
> > > >> > pulse and reverse pulse.
> > > >> >
> > > >> > I am not sure what actual pins I should be using though and
> > > >> > am slightly confused.
> > > >> >
> > > >> > any help would be appreciated
> > > >>
> > > >> There are pins designated for that on the 7i76D, what seems to
> > > >> confuse folks is that the spindle speed is an electronic
> > > >> resistor that acts exectly like the arm of the front panel
> > > >> speed pot on the vfd, but the vfd must be programmed to use it
> > > >> that way. Print the 7i76 manual and reread it, it is explained.
> > > >>
> > > >> Less clearly done is the explanation in the vfd manual as most
> > > >> are chinglish or engrish translations that are only
> > > >> half-assedly done. Sometimes they switch halves in mid sentence
> > > >> too, just to make it interesting :-[
> > > >>
> > > >> > regards
> >
> > Get the Sheldon package from my web site, my vfd is being fed from
> > pwmgen 0, follow that to where the pwm feeds a spinx1, bypass that,
> > and feed the pwmgen to the spindle-speed on the 7i76. I'll also
> > attach the hal file for my G0704, but it doesn't have a vfd as its
> > useing a pico pwm-servo to run its pmdc motor. But between those 2
> > files, that should show you how the analog signal gets from point A
> > to point B on a 7i76.
> >
> > If not, yelp again.
> >
> > Take care, avoid this virus if you can.
> >
> > > >> > Andrew
> > > >> >
> > > >> > _______________________________________________
> > > >> > Emc-users mailing list
> > > >> > [email protected]
> > > >> > https://lists.sourceforge.net/lists/listinfo/emc-users
> > > >>
> > > >> 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
> >
> > 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


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

Reply via email to