Very brief "plasmac:program-is-running" during initial homing sequence
22 Apr 2024 04:29 - 24 Apr 2024 13:53 #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:
# 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
Last edit: 24 Apr 2024 13:53 by shasse. Reason: fix title
Please Log in or Create an account to join the conversation.
22 Apr 2024 06:39 #298814
by phillc54
Replied by phillc54 on topic Very brief "lasmac:program-is-running" during initial homing sequence
All halui pins are available in a QtPlasmaC config so you should be able to use them.
The following user(s) said Thank You: shasse
Please Log in or Create an account to join the conversation.
22 Apr 2024 13:06 #298836
by shasse
Replied by shasse on topic Very brief "lasmac:program-is-running" during initial homing sequence
Thanks, I'll try "halui.mode.is-auto" and see if that does the trick.
Please Log in or Create an account to join the conversation.
24 Apr 2024 13:46 #299001
by shasse
Replied by shasse on topic Very brief "lasmac:program-is-running" during initial homing sequence
Just as an FYI, and'ing halui.mode.is-auto and plasmac:program-is-running did work to resolve this.
Thanks!
Scott
Thanks!
Scott
The following user(s) said Thank You: phillc54, tommylight
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.063 seconds