On Friday 01 February 2019 20:23:07 Peter C. Wallace wrote: > On Fri, 1 Feb 2019, Gene Heskett wrote: > > Date: Fri, 1 Feb 2019 20:13:54 -0500 > > From: Gene Heskett <ghesk...@shentel.net> > > Reply-To: "Enhanced Machine Controller (EMC)" > > <emc-users@lists.sourceforge.net> > > To: emc-users@lists.sourceforge.net > > Subject: Re: [Emc-users] For PCW > > > > On Friday 01 February 2019 15:10:44 Peter C. Wallace wrote: > >> On Fri, 1 Feb 2019, Gene Heskett wrote: > >>> Date: Fri, 1 Feb 2019 06:37:25 -0500 > >>> From: Gene Heskett <ghesk...@shentel.net> > >>> Reply-To: "Enhanced Machine Controller (EMC)" > >>> <emc-users@lists.sourceforge.net> > >>> To: emc-users@lists.sourceforge.net > >>> Subject: Re: [Emc-users] For PCW > >>> > >>> On Wednesday 30 January 2019 17:18:09 Gene Heskett wrote: > >>>> On Wednesday 30 January 2019 15:58:30 Peter C. Wallace wrote: > >>>>>> Now I've got one for you Peter. I have written that file with > >>>>>> the extra pwmgen on pins 5-6 of p2, twice, and --verified it. > >>>>>> But the only place I can see that 2nd pwmgen is in a mesaflash > >>>>>> --device 5i25 --readhmid output. It is NOT showing anyplace > >>>>>> else. ?????????? Anyplace else, and P2 is all gpio. Jumper on > >>>>>> 5i25 set wrong? I gave it a good 30 seconds dead time before I > >>>>>> hit the power button to reboot, which should have been long > >>>>>> enough to reset it. So whats next? > >>>>>> > >>>>>> Thanks Peter > >>>>> > >>>>> You probably have the PWMgen disabled in your hal file (in the > >>>>> hm2 driver load line) > >>>> > >>>> Thanks, that was it. > >>> > >>> but the 7i76 acts like its not getting > >>> Now, in setting it up in my .hal's, I can get pwmgen.1. out of p2 > >>> in order to drive Jon's pwm-servoamp, and I have setup both > >>> pwmgens in parallel, and I seem to be controlling spindir and > >>> spinena, but I am not seeing the analog out on > >>> hm2_5i25.0.7i76.0.0.spinout. Do I need to apply a ground on tb4-1, > >>> and some of the local 12volts to tb4-3 just to demo that its > >>> working? It makes sense but I'd druther be safe by asking. > >> > >> Yes, the 7I76(D)s analog spindle control is an isolated > >> potentiometer replacement device so needs an external 10 or 12V > >> power source (15V ABS MAX) normally this comes from a VFD > > > > ok, but then how do I enable a path from the 12 volts being fed to > > ena+ to ena-. ditto 5 volts to dir+, which should from what I'm > > reading, send 5 volts to the dir- terminal. The two supplies are > > separate, sharing a negative common with +12 volts on ena+ but > > nothing, well 60mv maybe on either dir- or ena-. The > > pwmgen.0.0.value is 3.1 and growing very slowly, identical to > > pwmgen.0.1.value, and I can see the pwm with the lalscope at either > > output. But I've no clue how to verify its getting to the spindle > > i/o other than looking at the right gpio pins on the 5i25. so > > obviously I do not know what I'm doing > > The 7I76 dir and enable outputs are Darlington opto-coupler transistor > outputs (+ = C and - = E) They may have as much as 1.5V drop when on > but thats it. They are rated 50 mA max so be careful you do not turn > them on into a shorted load (they will be stuck on if wired backwards) > But they are not coming on, regardless of the logic state of spinena or spindir at the hal inputs.
They've never had a load, I'm just measureing with a DVM at the - terminals. There is +5.12 on dir+, and +12.2 on ena+ but no change is see on either matching - terminal, which should be feeding the pico pwmservo amp to enable it, or reverse it. > In the hal file, the two pwmgens are driving identical pwm's on THE 5I25 gpio'S 9 and 26, while identical dirs are on THE 5I25 gpio'S 8 & 25 and I can see the pwm's and dirs change with a halscope while clicking on the axis spindle stuff. >From the g0704's hal file, the spinena chain looks like this: net spindle-enable <= spindle.0.on => boot.spindle.enable net spindle-enable => and_pid_s_en.in0 net spindle-enable => hm2_5i25.0.pwmgen.00.enable net spindle-enable => hm2_5i25.0.pwmgen.01.enable net spindle-enable => hm2)5i25.0.pwmgen.00.enable net spindle-enable => hm2_5i24.0.7i76.0.0.spinena The spindir chain looks like this: net spindle-ccw <= spindle.0.reverse net spindle-ccw => sample_dirchg.hold net spindle-ccw =>hm2_5i25.0.7i76.0.0.spindir both chains can be seen to be doing correctly on a halmeter as spindle commands are executed by whatever means including spinena and spindir, but the ENA and DIR outputs remain off as seen at ENA- and at DIR- ON TB4 7 AND 5. What am I missing? Thanks Peter. > Peter Wallace > Mesa Electronics > > (\__/) > (='.'=) This is Bunny. Copy and paste bunny into your > (")_(") signature to help him gain world domination. > > > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > 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) Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users