Air pressure stop motion question

More
30 Jan 2016 03:20 #69259 by Jake
I got this line of code to work in the my io.hal

I thought since I had designated it air-alarm when it came into alarm it would say air-alarm

It does do the trick of "motion inhibit" stopping the machine from running, but I was hoping to make it say air-alarm so I know for sure what triggered the motion inhibit.

Or is there more that I have to do for the desired description in the alarm window?
# Air Pressure Switch DI 28 
newsig air-alarm bit
net air-alarm motion.enable ppmc.0.din.28.in-not


Thanks!

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

More
30 Jan 2016 06:37 #69261 by cmorley
depending on the GUI you use thre are different methods.
If using AXIS the probably using the message component will do what you want.
www.linuxcnc.org/docs/2.7/html/man/man9/message.9.html

Gmoccapy has it's own message dialog system available, but message component will work with it also.

you would connect it to the same air-alarm signal.

Chris M
The following user(s) said Thank You: Jake

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

More
30 Jan 2016 14:35 #69271 by Jake
Thanks I'll give that a shot this weekend

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

More
01 Feb 2016 17:33 - 01 Feb 2016 17:34 #69375 by Jake
I am not totally following the page example, on my first try it did not do anything. Still loaded but when you killed the air the message did not appear.

I tried this now, does this look like this is correct? Ill try it on my machine tonight. I have it commented out in Git, ill un comment it in the file.
# Air Pressure Switch DI 28 
newsig air-alarm bit
net air-alarm motion.enable ppmc.0.din.28.in-not
#loadrt message names=air-alarm messages="LOW AIR PRESSURE"
#addf air-alarm iocontrol
#setp air-alarm.edge 0 #this pin should be active low
#net air-alarm motion.enable ppmc.0.din.28.trigger

Thanks!
Last edit: 01 Feb 2016 17:34 by Jake. Reason: dumb

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

More
03 Feb 2016 23:21 - 03 Feb 2016 23:29 #69534 by Jake
well it does not like the additional code for the message. It wont load with it. do any of yall see where I went wrong on it?

I am using axis btw...
# Air Pressure Switch DI 28 
newsig air-alarm bit
net air-alarm motion.enable ppmc.0.din.28.in-not
#loadrt message names=air-alarm messages="LOW AIR PRESSURE"
#addf motion.enable iocontrol
#setp motion.enable.edge 0 #this pin should be active low
#net air-alarm motion.enable ppmc.0.din.28.trigger

Or is this closer to what it needs to be?

Thanks!
Last edit: 03 Feb 2016 23:29 by Jake.

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

More
04 Feb 2016 04:34 - 04 Feb 2016 04:37 #69564 by Todd Zuercher
The newsig command is depreciated and is unnecessary.
All you need is the net command.
As you saw this only does the stopping part, to create your pop up message, you need quite a bit more.
loadrt message names=airpressure="Low Air Pressure"
addf airpressure servo-thread
net air-alarm motion.enable ppmc.0.din.28.in-not
net air-alarm airpressure.trigger

I'm not 100% sure about the above code, (never set this up before my self.
Last edit: 04 Feb 2016 04:37 by Todd Zuercher.
The following user(s) said Thank You: Jake

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

More
05 Feb 2016 03:03 #69630 by Jake
Thanks Todd,

I'll give that a shot in the morning!

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

Time to create page: 0.127 seconds
Powered by Kunena Forum