Preventing program from running while pin is asserted

More
14 Nov 2019 05:53 #150345 by kentavv
Is there a way in LinuxCNC 2.7.14 or later to prevent a program from running in Axis without out modifications of Axis or toggling machine power? Asserting halui.program.stop stops a running program but the program can be restarted while the pin is asserted. The thread below is precisely what I'm looking for, but I would rather not modify Axis in case collisions might occur during updates. The thread is from five years ago. It would be great to incorporate this idea into the distributed Axis.

forum.linuxcnc.org/21-axis/27585-enable-disable-run-button

Thank you

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

More
14 Nov 2019 08:21 - 14 Nov 2019 08:21 #150347 by pl7i92
use pause and resume
you can have 2 buttons
or simply a toggle state on pin
its the same as a KEYswitch on the mashine
or with flipflop
loadrt flipflop names=flipflop_resume,flipflop_pause
addf flipflop_resume servo-thread
addf flipflop_pause servo-thread
and as yoiu like to combinate things
net button-start-pause ((your-pin)) => flipflop_pause.clk flipflop_resume.clk 
net is-paused halui.program.is-paused => flipflop_resume.data flipflop_pause.reset 
net is-running halui.program.is-running => flipflop_pause.data flipflop_run.reset flipflop_resume.reset
net is-idle halui.program.is-idle => flipflop_run.data
net resume flipflop_resume.out => halui.program.resume
net pause flipflop_pause.out => halui.program.pause
Last edit: 14 Nov 2019 08:21 by pl7i92.
The following user(s) said Thank You: kentavv

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

More
14 Nov 2019 15:05 #150367 by Todd Zuercher
Would motion.feed−inhibit or motion.feed−hold do what you need? but they will prevent jogging as well?
The following user(s) said Thank You: kentavv

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

More
16 Nov 2019 17:59 #150486 by kentavv
Something about those pins didn't work. Maybe the pendent couldn't be used? Modifying Axis worked well. It's good lesson anyway in case I'd like other changes. E.g., I'd love a large MDI screen, perhaps as one of the tabs in Axis, or an adjustable split between the MDI and the plot.

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

Time to create page: 0.142 seconds
Powered by Kunena Forum