On Thursday 30 May 2013 09:26:11 Gene Heskett did opine:

> Greetings everybody;
> 
> I have the power logic all hooked up and working in both directions now,
> but no stop interlocking to prevent a premature on state while its still
> spinning the other other direction, yet.
> 
> And I have added an instance of oneshot watching the Phase-A pin, which
> will remain triggered until the spindle is within say 1 degree of
> stopped.
> 
> I think I can combine this all in a lut5 module but haven't yet worked
> out the truth table for that.  For me, that is an excedrin headache.
> 
> I am looking at this line in my .hal file:
> 
> net spindle-enable motion.spindle-on pwmgen.0.enable pid.0.enable
> 
> with an eye toward breaking the logic path between motion.spindle-on
> and pwmgen.0.enable.
> 
> But something in the back of my mind says that would allow the other
> circuits that are timing the accels to charge up and hit the motor with
> max power if I held it off for long enough that a oneshot watching
> Phase-A to time out (0.1 second=stopped) and re-enable things.
> 
> The only hold input to motmod says it stops and disables the whole
> MaryAnn, requiring a manual restart, so that is not usable for braking
> timing.  Is there a motion.N.pause that will allow things to resume
> that I don't know about?
> 
> Failing that, whats the next better idea than mine above?
> 
> Cheers, Gene

Ping?

I sent a decent part of yesterday scribbling logic diagrams w/o coming up 
with anything that looks like it would work.  The truth tables seem to be 
mutually exclusive.

It seems the one state needs to be an 'and' of of motion.spindle-on, and 
the timed out oneshot.  But when the spindle moves and the oneshot fires, I 
then lose the on state.  The motion.spindle-on=FALSE must stop it 
unconditionally, and that stop must be held until the oneshot times out 
before a motion.spindle-on=TRUE is allowed to be transmitted to its targets 
above.

Thanks for any hint you can throw my way guys.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
"The identical is equal to itself, since it is different."
                -- Franco Spisani
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to