Hal trigger when LINUXCNC launched but not else running

More
2 years 6 months ago #299488 by V34michel
Hi,
In fact it's half working : with this line
net linuxcnc motion.enable => parport.0.pin-09-out
when launch LinuxCNC, relay linked to pin-09 powered ON, but when I close LinuxCNC it doesn't stop. Have you an idea ?
regards, Michel

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

More
2 years 6 months ago - 2 years 6 months ago #299497 by PCW
Are you saying:

net linuxcnc motion.motion-enabled => parport.0.pin-09-out

does not work?

(it works for me but only goes on when  the machine in the power-on state)

I chose motion.motion-enabled rather than motion.enable because it goes false
when you toggle LinuxCNC power (the power button on the screen) so a normal
shutdown turns it off
 
Last edit: 2 years 6 months ago by PCW.

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

More
2 years 6 months ago #299503 by tommylight

when launch LinuxCNC, relay linked to pin-09 powered ON, but when I close LinuxCNC it doesn't stop.
That is normal for parallel port, it does not reset by itself, so if you are trying to do that, you will need a charge pump.
There was another topic (or was it this one) to use the shutdown.hal to reset the port when LinuxCNC exits, but somehow it went quiet, or i was to busy.

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

More
2 years 5 months ago #299556 by V34michel
<<net linuxcnc motion.motion-enabled => parport.0.pin-09-out>>
yes, it's working but not my initial target.
Initialy I wanted to power on all powers (main and ohmic) at Linuxcnc start. It's working at start but when we quit LinuxCNC, it doesn't cut the power (I don't find a signal activated by quit-yes).
So I decided to only drive the ohmic power and with <<net linuxcnc motion.motion-enabled => parport.0.pin-09-out>> it"s fine. Thank you for help and patient.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.133 seconds
Powered by Kunena Forum