PROGRAM STOP BUTTON - ERROR
04 Feb 2019 10:45 - 04 Feb 2019 10:46 #125650
by phillc54
Replied by phillc54 on topic PROGRAM STOP BUTTON - ERROR
Sorry, the setp commands were just to show you how I tested, I didn't mean for you to use them in your config.
The following xml and hal codes work as expected in both 2.7 and master.
As I said before, the only time I could duplicate your error was if I clicked RUN when the program was running.
You could prevent that by creating a disable pin for the run button so it was only enabled while the machine is idle.
Cheers, Phill
The following xml and hal codes work as expected in both 2.7 and master.
Warning: Spoiler!
<pyvcp>
<button>
<halpin>"run-b"</halpin>
<text>"Run"</text>
</button>
<button>
<halpin>"step-b"</halpin>
<text>"Step"</text>
</button>
<button>
<halpin>"pause-b"</halpin>
<text>"Pause"</text>
</button>
<button>
<halpin>"resume-b"</halpin>
<text>"Resume"</text>
</button>
<button>
<halpin>"stop-b"</halpin>
<text>"Stop"</text>
</button>
</pyvcp>
Warning: Spoiler!
net runner pyvcp.run-b halui.program.run
net stepper pyvcp.step-b halui.program.step halui.mode.auto
net pauser pyvcp.pause-b halui.program.pause
net resumer pyvcp.resume-b halui.program.resume
net stopper pyvcp.stop-b halui.program.stop
As I said before, the only time I could duplicate your error was if I clicked RUN when the program was running.
You could prevent that by creating a disable pin for the run button so it was only enabled while the machine is idle.
Cheers, Phill
Last edit: 04 Feb 2019 10:46 by phillc54.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 18822
- Thank you received: 6320
04 Feb 2019 16:51 #125669
by tommylight
Replied by tommylight on topic PROGRAM STOP BUTTON - ERROR
Hey Jerry, CAPS_LOCK stuck again ???
Please Log in or Create an account to join the conversation.
05 Feb 2019 04:23 #125717
by phillc54
Using your rener_custom_panel.xml and rener_postgui.hal I do not get any errors from the 'PARAR O PROGRAMA' button.
I was using the axis_mm sim config in LinuxCNC 2.7.14
Cheers, Phill
Replied by phillc54 on topic PROGRAM STOP BUTTON - ERROR
Askjerry wrote:
Now the stop button... it stops... but with an error...
Using your rener_custom_panel.xml and rener_postgui.hal I do not get any errors from the 'PARAR O PROGRAMA' button.
I was using the axis_mm sim config in LinuxCNC 2.7.14
Cheers, Phill
Please Log in or Create an account to join the conversation.
13 Feb 2019 16:31 #126352
by andypugh
If the button and pin are netted together then a press and release looks exactly like a setp 1 followed by a setp 0
Replied by andypugh on topic PROGRAM STOP BUTTON - ERROR
Not sure how I would tie a SETP to a pyvcp button... let alone how to make it set then reset on a single button press.
If the button and pin are netted together then a press and release looks exactly like a setp 1 followed by a setp 0
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds