Multiple Alarm Inputs Hal help needed

More
08 Jan 2017 04:03 #85449 by Jake

Okay I learned something today :cheer:
The missing thing for me was giving the signal a name. I thought net iocontrol.0.lube_level hm2_5i25.0.7i84.0.0.input-06-not would work but obviously not as I needed to connect a signal to the source:
net low-oil-alarm iocontrol.0.lube_level <= hm2_5i25.0.7i84.0.0.input-06-not
The above works. Correct me please if I'm still getting the syntax wrong.

net Z-Servo-Alarm axis.2.amp-fault-in <= hm2_5i25.0.7i84.0.0.input-10
The drive fault signal opens the drive contactors as I have them wired to the estop circuit and machine enable and kills power to the spindle and servos. This seems to work however it takes a few seconds to register a fault after pulling the encoder connector on my DMM drives. maybe this is okay for backup safety.
What's nice is the drive alarm message comes up.

Yes, a spindle fault pin would be nice as well as an io for low air pressure.


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

This will stop, or prevent the machine turning on without air pressure.

it is NET,

The pin name YOU set

The pin that is LCNC

Your motion hardware

Your motion hardware physical pin

Then the logic for it whether it is in/in-not


Does that make some more sense? It kicked my butt at first, John, Jon, Andy, Todd and others are instrumental in helping.

Air can be critical to your machine, in my case on the VMC I do not have tool change abilities without it.

But low lube just needs to be an indication, as I can run almost 24 hours of machine on time after getting my low lube alarm

My lube level is just
net lube_level iocontrol.0.lube_level ppmc.0.din.27.in
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

The above will send the message to the message bar, my air alarm message does not work correctly, I just get "motion inhibit" with a low air pressure. It just has not been important enough to fix as its the only pins that can do that are air and servo alarm.

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

More
16 Jun 2017 21:33 #94629 by OT-CNC
I'm working on an other machine now and I'm trying to get the low lube alarm message to display on the axis screen. Here is what I have in the hal:

loadrt message names=lube_level messages="LOW LUBE"

addf lube_level servo-thread

net low-oil-level iocontrol.0.lube_level <= hm2_5i25.0.7i77.0.0.input-13-not

The physical connection seems to work as the led toggels between yellow and brown on the machine hal monitor.
I just don't get the alarm message. What is missing? I didn't add anything to the ini btw.
And yes, I already looked at the MESSAGE doc.

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

More
16 Jun 2017 22:15 #94633 by PCW
net low-oil-level iocontrol.0.lube_level <= hm2_5i25.0.7i77.0.0.input-13-not
probably needs to be
net low-oil-level iocontrol.0.lube_level lube_level.trigger <= hm2_5i25.0.7i77.0.0.input-13-not
The following user(s) said Thank You: OT-CNC, Sadmeatball

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

More
18 Jun 2017 02:16 #94670 by OT-CNC
PCW, you were spot on. Thank you! Message works now.

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

More
20 Jun 2017 16:02 #94730 by andypugh
Does iocontrol.0.lube_level have any effect? The documentation doesn't describe any.

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

More
20 Jun 2017 21:13 #94740 by OT-CNC
Andy,

I only got it to work off PCW's example and based on what Jake posted prior.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum