On Saturday 09 January 2021 12:38:09 Gene Heskett wrote: > On Saturday 09 January 2021 12:19:21 Gene Heskett wrote: > > On Thursday 07 January 2021 21:33:08 Gene Heskett wrote: > > > On Thursday 07 January 2021 18:56:31 Gene Heskett wrote: > > > > On Thursday 07 January 2021 17:54:51 Jon Elson wrote: > > > > > On 01/07/2021 02:24 PM, Gene Heskett wrote: > > > > > > copy pasted from the anderswallin site it had a bunch of > > > > > > python stuff in the paste that didn't show in the onscreen > > > > > > box, so I removed it. Whats left is attached. > > > > > > > > > > This is an HTML corruption , > > > > > > > > > > in<0.0 > > > > > > > > > > should probably be replaced by in < 0.0 > > > > > > > > And that did it. Thanks Jon. > > > > > > > > Now I am wondering what a good starter for amount might be. > > > > Current miss is from .1 degrees to about .175 degrees short of > > > > hitting dead on. But I've no clue if its scaled. > > > > > > And apparently it is scaled, a lot. An amount >80.0 may or may not > > > oscillate, but 80.0 gets me to x.99xx of where I sent it, but it > > > now needs a wider zero point in order to stop tickling the motor > > > once its reached a friction locked point within a hundredth of a > > > degree. So I may see if I can add a new deadband parameter so it > > > treats anything within the deadband as zero out. As is, it is > > > getting quite a bit closer to where I sent it. > > > > > > Sent to 180, it goes to 180.0000, but sent to -180 with an amount > > > of 40 for a stable stop, it goes to 179.9985 degrees. I may be > > > wearing in the bs-1's worm as the amount before it oscillates at > > > stop is dropping. > > > > > > That seems like it ought to be good enough for the girls I go > > > with. Is it? > > > > One last thing I would like to do, is output a zero to the pwmgen if > > the error is less that a tolerance thereby shutting down the motor > > entirely. I can do that using a near and a mux2, however, from > > reading the near man page, it appears it is not symmetrical about > > zero. And with two worms in series the motor may as well be welded. > > It isn't going anywhere. > > > > So to get that response, one would have to scale one input by a > > small amount, and setp "near" to nominally 2x that scale in order to > > get s symmetrical response window centered on zero. > > > > If this is the case, it also explains the difficulty's I've had > > getting a really good spindle-at-speed signal. So I wind up playing > > 10k monkeys until it sorta works. > > > > Or I could modify idb.comp to do that. Then I would be assured of > > symmetrical response. But its been 20 years since I written any C > > and I'd have to brush up. > > I found the .comp for near, so it is is symmetrical or very close. > I'll give the idea a try. > I played with it for a couple hours but could not maintain the accuracy and cool the motor at the same time. Way too easy to make it oscillate, so its all commented out.
> > Thanks everybody. > > > > Cheers, Gene Heskett > > Cheers, Gene Heskett 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users