Custom alarm message from input?

More
10 Jul 2013 11:41 #36479 by DaOne
Can someone tell me if there is a way to send a custom alarm message with e-stop for axis? Basically I want an input to trigger a estop (That part I got) but I also want it to tell the user why and be able to reset it if the problem is cleared. An example would be a servo overheat.

Thanks,
Wes

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

More
10 Jul 2013 15:37 - 10 Jul 2013 15:38 #36490 by ArcEye
Hi

There are any number of ways to do this, just depends what fits best with your set up.

Do you have an existing pyVCP panel?
You could incorporate a warning label which is disabled until triggered, or you could use my multi-label widget and trigger display of the warning using a bit pin.

Attaching to a halui.mdi-command-NN pin would enable you to run a M code script which could play music or verbal warning, display a notice etc
but this would have to be before the estop condition and whilst not in Auto mode, as it relies on MDI

A simple component could write an error to Axis or even pop up a dialog.
A component would probably be the cleanest implementation.

Regards reset, an Estop reset is always manual for safety reasons, but resetting the trigger should not be a problem, so long as it will continue to trigger if the problem recurs.

depends what you want to do

regards
Last edit: 10 Jul 2013 15:38 by ArcEye.

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

More
10 Jul 2013 15:42 #36491 by DaOne
Thanks for the reply. Where would I find your multi-label widget?

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

More
10 Jul 2013 17:40 #36493 by ArcEye
Hi

Its on this thread
www.linuxcnc.org/index.php/english/forum...-in-hal?limitstart=0
at
www.linuxcnc.org/media/kunena/attachment...9/pyvcp_widgets3.zip

I was envisaging setting Label0 to "" and Label1 to "Your Warning here", making sure that initval is set to 0 (first label)

Then activate
net trigger-signal pyvcp.multilabel.0.label1 <= error.from.whatever.source

to set the error message to display.

If you only have the one message, you could also do this by disabling a normal label and enabling it when error condition arises

regards

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

More
10 Jul 2013 20:23 #36496 by ArcEye
If that method does not suit, the next step up the ladder is the message component

linuxcnc.org/docs/2.5/html/man/man9/message.9.html
The following user(s) said Thank You: Stormholt

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

Time to create page: 0.126 seconds
Powered by Kunena Forum