EMC2 pulses parport on startup...
25 Mar 2012 20:27 #18792
by pferrick
EMC2 pulses parport on startup... was created by pferrick
Hello all,
I've just upgraded to EMC2-2.4.3 after quite a long while running I don't even remember what version...one of the BDI installs. At any rate, I have a Dell Optiplex GX240 connected to PMDX-120 multifunction parallel port board.
When I start up EMC2, I find that some of the higher-numbered output pins (14 and 16) get a brief pulse. On this particular output board these pins drive relays which I would like to use to control the spindle (a router) through software. The problem is that if the relays are powered when I start EMC, the router spins up a little bit. Not quite what I want to have happen! Of course, I could just keep the router's ON/OFF switch off until after I start EMC, but it would be nice to not have to remember to do this. I am going to have to think of a way to lockout the router for tool changes anyway, but I thought I'd shoot this past everyone and see what happens.
thanks,
Pat
I've just upgraded to EMC2-2.4.3 after quite a long while running I don't even remember what version...one of the BDI installs. At any rate, I have a Dell Optiplex GX240 connected to PMDX-120 multifunction parallel port board.
When I start up EMC2, I find that some of the higher-numbered output pins (14 and 16) get a brief pulse. On this particular output board these pins drive relays which I would like to use to control the spindle (a router) through software. The problem is that if the relays are powered when I start EMC, the router spins up a little bit. Not quite what I want to have happen! Of course, I could just keep the router's ON/OFF switch off until after I start EMC, but it would be nice to not have to remember to do this. I am going to have to think of a way to lockout the router for tool changes anyway, but I thought I'd shoot this past everyone and see what happens.
thanks,
Pat
Please Log in or Create an account to join the conversation.
25 Mar 2012 20:36 #18793
by cncbasher
Replied by cncbasher on topic Re:EMC2 pulses parport on startup...
use the amplifier enable or is-on hal signal , to drive a relay so closing the spindle circuit only when Linuxcnc is switched on from the Axis screen etc .
Please Log in or Create an account to join the conversation.
25 Mar 2012 21:55 #18794
by pferrick
Replied by pferrick on topic Re:EMC2 pulses parport on startup...
Thanks for the reply.
I'm not sure if I understand what you mean.
Are you suggesting that I use a separate, offboard relay driven by a hal signal, rather than the relay that's already on my interface? I'd still have to drive the external relay via one of the parport pins, though, so if they're getting tweaked when I start EMC I think I'd still have the issue. Please elaborate!
tnx,
Pat
I'm not sure if I understand what you mean.
Are you suggesting that I use a separate, offboard relay driven by a hal signal, rather than the relay that's already on my interface? I'd still have to drive the external relay via one of the parport pins, though, so if they're getting tweaked when I start EMC I think I'd still have the issue. Please elaborate!
tnx,
Pat
Please Log in or Create an account to join the conversation.
26 Mar 2012 00:10 #18795
by BigJohnT
Replied by BigJohnT on topic Re:EMC2 pulses parport on startup...
I used to have that same issue when I used the parallel port to drive my plasma and unless your board has a charge pump you can not guarantee the state of the parallel port pins until LinuxCNC has taken control. I learned not to have the power up on the plasma until LinuxCNC had taken over the parallel port.
John
John
Please Log in or Create an account to join the conversation.
26 Mar 2012 00:53 #18796
by PCW
Replied by PCW on topic Re:EMC2 pulses parport on startup...
This is why fancier parallel port breakout boards include a charge pump, so no matter what BIOS/OS port probing does, the outputs can not turn on until the proper signal is received.
A charge pump also acts as a watchdog so if the computer crashes the outputs turn off in milliseconds
A charge pump also acts as a watchdog so if the computer crashes the outputs turn off in milliseconds
Please Log in or Create an account to join the conversation.
26 Mar 2012 09:39 - 26 Mar 2012 09:51 #18801
by Rick G
Replied by Rick G on topic Re:EMC2 pulses parport on startup...
I always felt that the simplest solution is to always power up your equipment in the correct order as John pointed out.
On my router set up I have a row of lighted switches 1 for the computer, 1 for the stepper drivers, 1 for the router, etc.
I never power up the drivers or routers until LinxCNC is in control.
Of course a charge pump could give an additional layer of safety especially it more than one person is to use the machine.
By the way this is not a LinCNC thing you may find similar results on other systems.
I also make sure the switch on the router itself is also off anytime I need to work on it, change bits or make adjustment near it.
Rick G
On my router set up I have a row of lighted switches 1 for the computer, 1 for the stepper drivers, 1 for the router, etc.
I never power up the drivers or routers until LinxCNC is in control.
Of course a charge pump could give an additional layer of safety especially it more than one person is to use the machine.
By the way this is not a LinCNC thing you may find similar results on other systems.
I also make sure the switch on the router itself is also off anytime I need to work on it, change bits or make adjustment near it.
Rick G
Last edit: 26 Mar 2012 09:51 by Rick G.
Please Log in or Create an account to join the conversation.
26 Mar 2012 11:01 #18805
by doug6949
Replied by doug6949 on topic Re:EMC2 pulses parport on startup...
Rick G wrote:
Not only the simplest solution, it is the method used by every machine tool manufacturer. Both NPFA-79 and the equivalent IEC codes require manual enabling of all motive devices. This is always done after the computer goes thru it's self test. The machine enable circuit is inactive until the computer issues a ready signal. The ready signal goes to a safety relay, never directly to the enable pins.
The early Galil controllers would send the motors running if you didn't disable the amps during power down. They also made a noticeable jerk if the amps were enabled when the computer was turned on.
Doug
I always felt that the simplest solution is to always power up your equipment in the correct order as John pointed out.
Not only the simplest solution, it is the method used by every machine tool manufacturer. Both NPFA-79 and the equivalent IEC codes require manual enabling of all motive devices. This is always done after the computer goes thru it's self test. The machine enable circuit is inactive until the computer issues a ready signal. The ready signal goes to a safety relay, never directly to the enable pins.
By the way this is not a LinCNC thing you may find similar results on other systems.
Rick G
The early Galil controllers would send the motors running if you didn't disable the amps during power down. They also made a noticeable jerk if the amps were enabled when the computer was turned on.
Doug
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds