Very brief "plasmac:program-is-running" during initial homing sequence

More
2 years 6 months ago #298811 by shasse
I have a fiber laser machine using qtplasmac. One of the safety features is a light tree. I have a red light that I control like so to be on when a program is running or the torch is fired outside of a program:

Code:
# enable the red light to represent when the laser is "firing" # currently defined as when a program is running or the torch is firing loadrt or2 addf or2.0 servo-thread net plasmac:program-is-running or2.0.in0 net plasmac:torch-on or2.0.in1 net red-light or2.0.out This generally works fine but during the initial homing sequence the red light flashes very briefly. Looking into this further, it is the "plasmac:program-is-running" that is briefly true during homing. Does anyone understand why that might be and how I might resolve the issue. I don't think there's any danger, but it might be a bit unnerving for users of the machine to have the red light briefly flash. It is a shared machine in a hackerspace. I found this thread: https://forum.linuxcnc.org/38-general-linuxcnc-questions/32031-pin-or-signal-to-identify-when-cnc-program-is-running which suggests and'ing in "halui.mode.is-auto", but that is for halui and I don't see anything similar in plasmac  (https://linuxcnc.org/docs/html/man/man9/plasmac.9.html). Thanks for any insight you might have! Scott

Please Log in to join the conversation.

More
2 years 6 months ago #298814 by phillc54
All halui pins are available in a QtPlasmaC config so you should be able to use them.

Please Log in to join the conversation.

More
2 years 6 months ago #298836 by shasse
Thanks, I'll try "halui.mode.is-auto" and see if that does the trick.

Please Log in to join the conversation.

More
2 years 6 months ago #299001 by shasse
Just as an FYI, and'ing halui.mode.is-auto and plasmac:program-is-running did work to resolve this.

Thanks!

Scott

Please Log in to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum