Air alarm

More
21 Nov 2021 15:13 #227200 by Jake
Air alarm was created by Jake
What are you using for a HAL pin for low air pressure ? 

I originally had my machine setup with motion inhibit.  It been this way for years, I am working to get some of the old issues enhanced.  This was one of them.  My machine can run with no air (just can't make a tool change).  I just want to get a message when I have low air, which if I am not watching the machine it will just error out at the tool change.  It appears to me that "iocontrol" is the ideal place for this.  For iocontrol to work on this would I need to change the "servo-thread" in the messages to iocontrol, and "motion-enable" iocontrol.  There is not a HAL pin for the air-alarm like there is for the lube_level.

Will the "net air-alarm iocontrol.0.air-alarm ppmc.0.din.28.in.not" add that HAL pin? Or do I have to go deeper into the system to get this HAL pin added?

Back to working on the tool changer.....Thanks everyone!


loadrt message names=EstopWrite,motion.enable,air-alarm,lube_level messages="EMERGENCY STOP,MOTION-DISABLE,LOW AIR PRESSURE,LOW LUBE"
addf EstopWrite servo-thread
addf motion.enable servo-thread
addf air-alarm servo-thread
addf lube_level servo-thread

# Air Pressure Switch DI 28
#net air-alarm motion.enable ppmc.0.din.28.in-not

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

More
21 Nov 2021 15:36 - 21 Nov 2021 15:37 #227202 by Michael
Replied by Michael on topic Air alarm
You can't create a pin if it doesn't already exist in a component.

For what you want to do you need to use the message component.

linuxcnc.org/docs/2.8/html/man/man9/message.9.html

It's pretty clear on how to use it. Don't forget to addf each name to the servo thread. This will essentially create a pin with attached message for your desired naming conventions.
Last edit: 21 Nov 2021 15:37 by Michael.
The following user(s) said Thank You: Jake

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

More
21 Nov 2021 18:34 #227218 by andypugh
Replied by andypugh on topic Air alarm
In addition, you probably want to take the same signal in to the tool-change logic to pause the tool-change at an appropriate point.

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

More
23 Nov 2021 14:41 #227407 by Jake
Replied by Jake on topic Air alarm
Thanks both Micheal and Andy!!

Andy I was looking at your toolchange subroutine with the air pressure step in there. I need to add that to mine. I am working through some of the same issues Micheal was having with the "pycall(remap.change_prolog) fail", that and a prox switch that goes closed and latches (even though the light on it turns on/off as the indexer rotates)

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

More
23 Nov 2021 21:30 #227434 by Michael
Replied by Michael on topic Air alarm
linuxcnc.org/docs/2.8/html/remap/remap.html

Step 4 will get the prolog stuff to work. What type of tool changer do you have?

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

More
23 Nov 2021 22:17 #227437 by Jake
Replied by Jake on topic Air alarm
I got past the prolog fail, I am going to post in my tool changer thread.

I have not gotten back to working on the messages. I did add the air-alarm to the toolchanger.ngc subroutine. Have not tested the messages yet.

This is what I have in messages now
[color=#d4d4d4]loadrt message [/color][color=#569cd6]names[/color][color=#d4d4d4]=ppmcEstop,spindle-alarm,air-alarm,lube_level,amp-fault [/color][color=#569cd6]messages[/color][color=#d4d4d4]=[/color][color=#ce9178]"EMERGENCY STOP,SPINDLE FAULT,LOW AIR PRESSURE,LOW LUBE,SERVO FAULT"[/color][color=#d4d4d4]addf ppmcEstop servo-thread[/color][color=#d4d4d4]addf spindle-alarm servo-thread[/color][color=#d4d4d4]addf air-alarm servo-thread[/color][color=#d4d4d4]addf lube_level servo-thread[/color][color=#d4d4d4]addf amp-fault servo-thread[/color][color=#d4d4d4]net amp-fault-x axis.0.amp-fault-in ppmc.0.din.00.in[/color][color=#d4d4d4]net ppmcEstop ppmc.0.din.estop.in[/color][color=#d4d4d4]net spindle-alarm motion.enable ppmc.0.din.08.in-not[/color][color=#d4d4d4]net lube_level iocontrol.0.lube_level ppmc.0.din.27.in-not[/color]
 [color=#d4d4d4]net air-alarm motion.digital-in-06 ppmc.0.din.28.in-not[/color]
 
 
I do see in the description in message that there is the "message.N.trigger"

Do I need a separate line for the trigger or can name.trigger be added to each of the lines I have above ?

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

More
23 Nov 2021 23:03 #227447 by andypugh
Replied by andypugh on topic Air alarm
Do you really have that, or has the forum inserted a bunch of spurious [color] tags?

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

More
23 Nov 2021 23:09 #227451 by Jake
Replied by Jake on topic Air alarm
I have been editing in Visual studio, it brought it from there. 
# MESSAGES -----------------------------------------------------

loadrt message names=ppmcEstop,spindle-alarm,air-alarm,lube_level,amp-fault messages="EMERGENCY STOP,SPINDLE FAULT,LOW AIR PRESSURE,LOW LUBE,SERVO FAULT"
addf ppmcEstop servo-thread
addf spindle-alarm servo-thread
addf air-alarm servo-thread
addf lube_level servo-thread
addf amp-fault servo-thread

net ppmcEstop ppmc.0.din.estop.in
net amp-fault-x axis.0.amp-fault-in ppmc.0.din.00.in
net lube_level iocontrol.0.lube_level ppmc.0.din.27.in-not
net air-alarm motion.digital-in-06 ppmc.0.din.28.in-not

A little easier to read!!

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

More
24 Nov 2021 06:34 #227477 by Michael
Replied by Michael on topic Air alarm
You would need to add the trigger pin to each of the signals:
net ppmcEstop ppmc.0.din.estop.in
net ppmcEstop ppmcEstop.trigger
setp ppmcEstop.edge 0 #set this depending on the behavior you want for the message to activate.
The following user(s) said Thank You: Jake

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

Time to create page: 0.064 seconds
Powered by Kunena Forum