Sven Wesley pravi:
2010/3/30 Slavko Kocjancic <esla...@gmail.com>Sven Wesley pravi:I have a strange behaviour on a machine. I have a breakout board (Rutex components), when the EMC2-computer starts the mill motor will startrightaway. When I start EMC2, it stops. The odd thing is, when I exit EMC2 the motor will stay off. I have tested both active high and low, could it be a "leaking" outputpin?I guess it might be fixed with a grounded drop signal resistor. What doyouthink? Regards, SvenThat's pretty normal. (sadly). When you start computer the BIOS check port and that's set's some random data at the port. The spindle cannot be (safe) controled by lpt port. It's needs another layer of safety. The easyest and safe is chargepump. So to run the spindle the PC must output stream of pulses long enought to energyze relay. In hal is chargepump component so it's easy to use it. The hardware to do that is in most cases just two diodes and two capacitors added into circuit. I use two of such relay's (with chargepump) One is for turning on the driver power supply Other is for turning on router. The Estop switch (NC) is wired to power relays. So to turn on the standar procedure is Relase Estop (before or later turning on EMC computer / doesn matter) Hit F2 to turnon chargepump for relay1 and realy turnon power for motors relay 2 is under M3 M5 control. so if computer hangup the power for spindle and motors are cutoff same if the estop is pushed. Don't use direct signal from port to turn on board/spindle. Just imagine that you have manual toolchange and just changing tool and there is power glitches just long enought to reset pc. (and turn on the spindle with your hands on it.) aniway the cnc controller should shut off in that condition but I didn't see that in smal benchtop machines. Not good news for our fingers. Slavko.I'm not sure I'm following you, it sounds like your solution is a relay that controls a relay, and then the problem remains?.. It sounds like an odd deal that a common breakout board shouldn't handle glitching on/off. Sven
seems my bad english strike again.The main problem is that on boot process near all LPT port's swings outputs. In some cases there are even POST code from BIOS come out here. So within boot process of computer the output from BOB can be very strange. And that's mean in our case danger too. If you not belive me then put osciloscope on pin 2 of lpt port while you have EMC on and then hit reset button on pc. On all board's I see there are at least few pulses on port. .. and BOB can't handle that as it seems like normal pulses when machine run.
About my wiring. I have 12V supply for the logic / bob etc... That 12V I have wired trought ESTOP to the two relays coil. on the other side of coil the transistor with chargepump is.So if the Estop is pushed or there is no pulsetrain from chargepump then relay can't be energized. And I use one relay to cut power for all stepper's and other relay to control spindle under M3/M5.
see little diagram attached
<<inline: estop.gif>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users