Greetings all; I think I have a relay config drawn up that will do this, however it will need a 3rd ice cube, mainly because I was never any good with relay logic in the first place. I'd never met that critter till we were doing the pan- tilt-light controls for the Trieste's only trip down into the mohole in another life about 53 years ago. One of our vice presidents (they made everybody who was part of the startup a vice president so they could pay them a dollar a month salary) was tasked with using the 3 wires the navy gave us thru the side of the gondola to run the cameras with. Two cameras, 2 pans, two tilts, and two camera mounted banks of lights, all to be done with 3 pushbuttons. I have no clue how much sleep Joe Petite lost that night, but he came back in the morning with a diagram that used 8 output relays, to do the real work, and a small logic board, all in dpdt relays, to do it, and it worked first time. One 3 wires, using sequential button pushes. It might as well have been black magic to me, and you'll note that integrated circuit logic was not yet invented in '59, so all that was strange to me.
So, while its not wired up yet, it does look like it will do as I want after putting the C41 in the US mode which gives mutually exclusive fwd and rev signals. Now what I want to do in the hal file, is load 1 or 2 more instances of and2, and one instance of oneshot. Shutting it off from 1200 revs takes around 12 seconds to coast to a stop without a braking resistor, so the oneshot will start out as a 15 second timeout. I want this timeout to be triggered by any of the axis spindle stop button, an M5 from the mdi, or in the .ngc code file. Can motion.spindle.stop supply this trigger? Then, while this oneshot is running down, I want to disable pwmgen and pid by running those enables thru an and2. BUT, this won't stop the gcode execution & force the code to wait, or send any mouse clicks etc to /dev/null where they belong, and I don't want it to enable that stuff after a silent timeout catching me by surprise with a sudden startup, so where in this chain of command do I insert an and2 instance to block it? I expect to be forced to write some G4 P15's (or whatever the delay is once I get braking working) into the code, but while thats a nice reminder, it isn't idijit proof. That finger pointing at the idijit is of course is pointing at me. :( Thanks all. 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> BOFH excuse #192: runaway cat on system. A pen in the hand of this president is far more dangerous than 200 million guns in the hands of law-abiding citizens. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
