Greetings; I have a near module, comparing the pid.s.input to the filtered encoder velocity output. And the slider tach from pyvcp with an at speed led.
Before I quit for the night, I looked for the reason the led turned red at about 700 revs. Tracing with a halmeter, I found no input on its in2 pin but a valid in1 input, same as the pid.s.command because it was netted to it. So I added a link to in2 from the filtered encoder velocity. No more red led, unless a direct m5 stop was issued, and it went green again at about 100 revs as it was coasting to a stop. Near.n.scale is 1.0, near.n.tol was 10 at that point, presumably because I set it there quite some time back. I have now reduced the near.n.tol to 2, and I can see a momentary blink of red if, while its turning at 1k revs, I type s100. It stops quite rapidly, backs up a fraction of a turn, then comes back to 100 rpm, all in < 2 seconds, but the led is red for not more than 100 milliseconds during that time. I've read the man page, and because its stated in math terms, my mind doesn't follow to see where I have it set wrong. So, the target is 20 revs off, plus allow another 10 revs per 100 its commanded. 30 revs tolerance at 200, 40 at 300 yadda yadda. So what do I set its TOL and SCALE at to achieve this, and better yet, how did you go about determining the proper settings to do that? Next subject, sorta. It turns out that with the current PID.S settings, it has a quite stiff drive, I can try to grab the chuck and stop it at 100 revs, but only succeed in heating up my hand without dragging the tach down even 10 revs. It also, unlike the previous setup of the pid, has enough gain that I can ditch all the gearchanging stuff in .hal. Its currently bypassed anyway in the process of determining the pwmgen scale, which now has an automatic limit at 98% of "scale". I can set an s50 or an s500 (tops in high gear is about 1350 with the current gearing when in high) then do m3, m5, shift the backgear to low and repeat, and in low gear it has more than enough control to maintain the 500 rev spin rate, giving the motor a little more of the good Gulf. I'd say thats a plus. I also told the missus that I'll break this belt, and the spare I bought with it, but then I strip it for the goodies and buy a real lathe. Throw money at it IOW. This BS has not just begun to get old, its turning grey. The toy mill needs a better Z screw anyway. :) Thanks. 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> ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users