On Saturday 09 December 2017 10:33:06 Peter C. Wallace wrote: > On Fri, 8 Dec 2017, Gene Heskett wrote: > > Date: Fri, 8 Dec 2017 20:22:40 -0500 > > From: Gene Heskett <[email protected]> > > Reply-To: "Enhanced Machine Controller (EMC)" > > <[email protected]> > > To: "Enhanced Machine Controller (EMC)" > > <[email protected]> Subject: [Emc-users] Wrong > > polarity of pwm? > > > > Question for Peter C. Wallace; > > > > I swapped bobs on the main channel, p3 on a 5i25, with prob_rfx2 in > > the fpga. > > > > Somehow that inverted the pwmgen output. I tried inserting the line: > > > > setp hm2_5i25.0.gpio.001.invert-output true in my hal file > > > > All that did was cut the output down to about a volt, but the > > slowest speed is still 99% low, with a narrow + pulse at 20 KHz. > > Clicking + in the axis gui makes the + part of the pulse wider until > > its around 98%. > > > > That is what it should be at creep speed. > > > > This is not the desired pulse because normal wiring puts a 5volt > > rail on the + terms, while feeding at low speeds, a narrow pulse to > > ground that is normally connected to the - input. I am in the > > process of rewiring that to put a real ground on the - terminal, and > > feed the bobs pulses to the + terminal instead. This isn't as easy > > as it sounds as it adds a couple wires that have to fit > > > > So how does one invert the pwmgen.0's output if the above line > > won't? > > If that is a prob_rxf2 config then > > setp hm2_5i25.0.gpio.001.invert-output true > > will invert the PWM output > > If this does no happen, my guess would be that either theres another > setp hm2_5i25.0.gpio.001.invert-output
Bingo peter! I never thought to check that, there was another canceling statement, 400 lines on down the file. And halscan should have flagged it, but doesn't. Ack showhalconfig, it should be fixed now. I'll check when I get out there, but first a trip to the grocery store. > statement in the hal file or there's an electrical issue somewhere > > > Thanks Peter. > > > > 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> > > > > -------------------------------------------------------------------- > >---------- Check out the vibrant tech community on one of the world's > > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Emc-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/emc-users > > Peter Wallace > Mesa Electronics > > (\__/) > (='.'=) This is Bunny. Copy and paste bunny into your > (")_(") signature to help him gain world domination. > > > ---------------------------------------------------------------------- >-------- Check out the vibrant tech community on one of the world's > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > 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) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
