- Posts: 29
- Thank you received: 0
enable / disable button object on pyVCP?
3 years 9 months ago #261638
by pingtomi
enable / disable button object on pyVCP? was created by pingtomi
Hi
Google is not my friend in this case
Is it possible to disable custom button in pyVCP? I'd like to add button to release the hydraulic tool holder (it works) but 'd like to disable it when the spindle is on. Can I do this somehow? (I know I can do it on the HAL side by using simple logic to not activate the particular gpio output if spindle-enable signal is active but I'd prefer to disable the button on the gui as well).
Thank you for your advice.
Google is not my friend in this case

Is it possible to disable custom button in pyVCP? I'd like to add button to release the hydraulic tool holder (it works) but 'd like to disable it when the spindle is on. Can I do this somehow? (I know I can do it on the HAL side by using simple logic to not activate the particular gpio output if spindle-enable signal is active but I'd prefer to disable the button on the gui as well).
Thank you for your advice.
Please Log in to join the conversation.
3 years 9 months ago #261713
by MaHa
Replied by MaHa on topic enable / disable button object on pyVCP?
In the .xml file for the button, to activate disable pin, insert to button
In postgui.hal
change MYBUTTON to button's halpin
While spindle is on (M3 and S > 0), button is greyed out.
Code:
<disable_pin>True</disable_pin>
In postgui.hal
Code:
net btn_en spindle.0.on pyvcp.MYBUTTON.disable
change MYBUTTON to button's halpin
While spindle is on (M3 and S > 0), button is greyed out.
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
3 years 9 months ago #261795
by Todd Zuercher
Replied by Todd Zuercher on topic enable / disable button object on pyVCP?
In addition to disabling your button, you might also want to more explicitly disable the output signal to the tool release in hal using some hal logic.
Please Log in to join the conversation.
Time to create page: 0.078 seconds
