question re. estop logic - (pncconf output)

More
30 Jul 2011 21:57 #12036 by cmorley
maybe u need to invert the inputs and or outputs?

estop-ext and estop-out will be true when NOT in estop.

Not sure y charge pump is not working can you check it's pins with halmeter to se if it is ever enabled?

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 06:45 #12045 by 1:1
ok,

halmeter shows no chargepump on all the signals and pins related to chargepump

I cannot get the system to estop either, pushing F1 does nothing ...

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 07:19 - 31 Jul 2011 07:20 #12048 by cmorley
1:1 wrote:

The way I actually see it is different however - I'm getting 5v on the input and 0v on the output - EMC/Axis is live from word go and attempts to hit the Estop in axis do nothing - but connecting the two pins I get estop - pretty much the opposite of what I expected. I dont want to simply hack around with inverting things until it works as I might end up with a "two wrongs = a right" situation of which one of those wrongs will cause a problem elsewhere...

Another aspect to this is that I see no charge-pump in any state either - there is a connection (literally and figuratively) - I just dont get it yet (I understand charge pump, just not why it isn't on)

any help appreciated,
Nick


k from manual, related to Estop;

iocontrol.0.user-enable-out
(bit, out) FALSE when an internal E-Stop condition exists.

iocontrol.0.user-request-enable
(bit, out) TRUE when the user has requested that E-Stop be cleared.

iocontrol.0.emc-enable-in
(bit, in) Should be driven FALSE when an external E-Stop condition exists.

Without an external Estop the configs must connect
user-enable-out to emc-enable-in

Do you mean that if you physically connect pin 49 and 50 together it comes out of Estop?
Last edit: 31 Jul 2011 07:20 by cmorley.

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 07:49 #12050 by 1:1
Connecting the two I go into e-stop - the button on screen is greyed out also, indicating to me I couldn't go out of it via the UI

I expected a NC circuit (what I earlier called normally on which is correct but not the right term) - its basically an inversion of logic which I think I could fix by doing another inversion, but I just want to make sure I'm not doing a 'two wrongs make a right' situation ...

I've been bitten by those in the past with limits when operating stage/show automation as some parts of the system just look at once element of the logic and if its inverted to 'fix' another part then its blood stains on the wall :ohmy:

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 08:00 #12051 by cmorley
yes it easy to get lost. It depends on what is connected to the Mesa board.
I use opto22 products and between Mesa board and the opto22's I often need to invert the inputs.
If you load a halmeter in your config (add loadusr halmeter to hal file or if using AXIS its selectable)
then you can read what the pins are actually getting after all the inversions.

I might add that there is a classicladder estop program available through pncconf which may or may not
help you understand the Estop chain better. If you use AXIS it allows you to load classicladder's GUI and then you can see the estop chain evaluated through classicladder.
Just another option.

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 09:25 - 31 Jul 2011 09:44 #12053 by cncbasher
how do you have your estop connected ? your quite correct in that the estop is a closed circuit and open state when triggered , however when the estop is triggered is the pin voltage rising to above say 3.5v ( presuming a 5v power )
mesa cards are active high , so the pin must switch above a threshold for emc to accept the change of state , it may be although you open the estop the pin stays in a low or near low state , and therfore it believes the estop is still in the normal condition and not trigger

if you have additional opto's in the estop wiring it may need inverting to get the correct responce

but yes your looking for a 0v ( or near ) on your estop under normal use and then on triggering the estop the pin voltage should rise to 4.5v on a 5v system
are you using any of the mesa addon breakout boards by any chance ?

the following should get your estop working

net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in
net enable => motion.motion-enabled

net estop-ext <=hm2_xxx.0.gpio.xxx.in ( edit for your pin )
Last edit: 31 Jul 2011 09:44 by cncbasher.

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 09:47 #12054 by 1:1
cncbasher wrote:

how do you have your estop connected ? your quite correct in that the estop is a closed circuit and open state when triggered , however when the estop is triggered is the pin voltage rising to above say 3.5v ( presuming a 5v power )
mesa cards are active high , so the pin must switch above a threshold for emc to accept the change of state , it may be although you open the estop the pin stays in a low or near low state , and therfore it believes the estop is still in the normal condition and not trigger

if you have additional opto's in the estop wiring it may need inverting to get the correct responce

but yes your looking for a 0v ( or near ) on your estop under normal use and then on triggering the estop the pin voltage should rise to 4.5v on a 5v system
are you using any of the mesa addon breakout boards by any chance ?


I don't have it connected - this issue has stopped me in my tracks ...

I'm just building as I go along slowly so I can understand it all before proceeding - otherwise I fear I'll mess something up which will affect more and more and I have to start again.

So, the plan was just to have a little loop coming out of the Mesa card then straight back in with a NC switch in the middle - I thought 3.3v would do for now ... The output would feed the estop input thereby letting EMC know the loop was good or not. On top of that if the e-stop within Axis were hit (F1 or whatever) the physical system would know as even though the external switch (a traditional latching e-stop switch) hadn't opened it wouldn't be getting any voltage from EMC either (a relay for instance could be tapped off the loop)... So like I thought, the internal and external parts of the machine would be both capable of a proper estop and in turn both sides would also be made aware of the others estop 'command'...

So, yeh - just two wires at the moment that I want to be estopped when they are apart, and not estopped when they are together ... I just want to make sure that by inverting the logic than I dont stuff up some other part of EMC in terms of safety logic.

Is this something to do with floating pins (pull-up and so on?) - that stuff I am only half understanding so far...

Not sure what you mean by "you're looking for a 0v ( or near ) on your estop under normal use and then on triggering the estop the pin voltage should rise to 4.5v on a 5v system " - isn't that the opposite of what you've agreed with me earlier on ?

thanks for the response - I really want to get this right, even if it takes months - I'm getting there slowly :)

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 11:29 - 31 Jul 2011 11:54 #12056 by cncbasher
ok no problem , lets take it one step at a time

you should have one side of the estop and your limit switches connected to gnd (or 0v ) of the interface card via the ribbon cable , and the other connected to the input pin , when the the estop is activated it should open the connection
this will effectivly give you a 0v or near 0V in normal operation , at the input pin of the interface card , then on operation of the estop and opening of the estop switch this should cause the voltage on the input pin to rise to somewhere near 3v or 5v depending on your
installation as you do not say if your connecting directly to the card or via any interface such as the 7i42 etc , or opto couplers .


the correct way is to have the estop switch (s) in series all hardwired to release mains power via the contactor , use a seperate spare contact pair on the contactor relay to connect with emc , or a relay in series to the estop switches
never use any kind of software to operate in a safety enviroment , use it purely as an input for informational use and secondary to it's main purpose to inform emc .

by the time you have operated the mouse or hit f2 etc , the damage has already happend , and probably someones limb !
Last edit: 31 Jul 2011 11:54 by cncbasher.

Please Log in or Create an account to join the conversation.

More
31 Jul 2011 18:38 #12059 by 1:1
cncbasher wrote:

ok no problem , lets take it one step at a time

you should have one side of the estop and your limit switches connected to gnd (or 0v ) of the interface card via the ribbon cable , and the other connected to the input pin , when the the estop is activated it should open the connection
this will effectivly give you a 0v or near 0V in normal operation , at the input pin of the interface card , then on operation of the estop and opening of the estop switch this should cause the voltage on the input pin to rise to somewhere near 3v or 5v depending on your
installation as you do not say if your connecting directly to the card or via any interface such as the 7i42 etc , or opto couplers .


the correct way is to have the estop switch (s) in series all hardwired to release mains power via the contactor , use a seperate spare contact pair on the contactor relay to connect with emc , or a relay in series to the estop switches
never use any kind of software to operate in a safety enviroment , use it purely as an input for informational use and secondary to it's main purpose to inform emc .

by the time you have operated the mouse or hit f2 etc , the damage has already happend , and probably someones limb !


Yup - I think we're on the same page ... Its good to just confirm it - should note that the idea is to implement chargepump also so if the linux machine decides to go awol then that will also be a source of 'STOP'.

I'm away from the machine for most of this week so until then I can only talk conceptual and not actually be at the machine - I'm going to read up on the classic ladder estop program though ... ;)

Please Log in or Create an account to join the conversation.

More
01 Aug 2011 01:24 #12069 by PCW
And always use active low outputs, so that the built in watchdog can work and the power up state is correct...

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.118 seconds
Powered by Kunena Forum