On Fri, 2011-10-21 at 13:06 +0100, andy pugh wrote: > On 21 October 2011 06:58, Kirk Wallace <kwall...@wallacecompany.com> wrote: > > > The PID sees > > a position change and moves during the counter synchronization. > > You probably need to disable the PID during the synch. Possibly using > an inverted oneshot on the edge (or maybe something else entirely)
I tried the "Set Home" button first, which simply put encoder.0.reset and encoder.1.reset on a pyvcp button. What happened was one encoder would reset a significant time latter than the other. PID would either see the position or the command change and try to fix it. I added the amp (pwm actually) enable button to disable the motion while the resets settle, which works fine, except for the need for the manual button and PID would wind up in some cases. For switching the MPG to/from "Carousel", the problem is very similar, the command and position need to change and sync on entering and leaving "Carousel". I suppose it would be easier to just write a component that uses "if/case" to keep track of ATC status, but I thought I would try to build it with existing components first. I just don't have my brain around using components in an "if/case" fashion. Too many spinning plates for me: http://www.youtube.com/watch?v=Zhoos1oY404 -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users