On 2 August 2010 17:41, Jon Elson <[email protected]> wrote: > I don't know if the above code will work for other reasons. It sets the > PWM output VERY rapidly to the two polarity outputs. My code waits a > full servo cycle before flipping to the other direction. That much time > isn't needed, but you need to make sure at least one 5% wide pulse gets > to the amp before you reverse it. Anyway, the above scheme would only > do this during program startup, not every time you come out of E-stop.
In that case it might be a function best handled by a custom HAL component. Basically a pass-through of the PWM request and an edge-detector and state machine that watch the amp-enable line. Only a dozen lines of comp script, I would guess. -- atp ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
