- Posts: 282
- Thank you received: 0
Multiple Alarm Inputs Hal help needed
OT-CNC wrote: Okay I learned something today
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
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
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 to join the conversation.
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 to join the conversation.
probably needs to be
net low-oil-level iocontrol.0.lube_level lube_level.trigger <= hm2_5i25.0.7i77.0.0.input-13-not
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
I only got it to work off PCW's example and based on what Jake posted prior.
Please Log in to join the conversation.
