New user - pyvcp button not working
04 Sep 2020 12:17 #180668
by simonj69
New user - pyvcp button not working was created by simonj69
Hi all
Totally new to LinuxCNC so please go easy on me!!
Using version 2.7.14of LinuxCNC
Attempting to get some buttons working with pyvcp
I have a very basic button in the custompanel.xml as per below and this displays ok
<vbox>
<button>
<halpin>"Jog-X-Minus"</halpin>
<text>"X-Minus"</text>
</button>
</vbox>
In the custom_postgui.hal file I have the following:
net Jog_X_Minus halui.jog.0.minus <= pyvcp.Jog-X-Minus
nothing else added so it's nice and simple until it works
When I watch the pins in the Hal Configuration, if I click the button, the indicator changes on both pins, just the axis isn't jogging
It jogs correctly if I use the normal jog buttons on the left
I'm sure I must be missing something really simple
Any ideas
Thanks in advance
Totally new to LinuxCNC so please go easy on me!!
Using version 2.7.14of LinuxCNC
Attempting to get some buttons working with pyvcp
I have a very basic button in the custompanel.xml as per below and this displays ok
<vbox>
<button>
<halpin>"Jog-X-Minus"</halpin>
<text>"X-Minus"</text>
</button>
</vbox>
In the custom_postgui.hal file I have the following:
net Jog_X_Minus halui.jog.0.minus <= pyvcp.Jog-X-Minus
nothing else added so it's nice and simple until it works
When I watch the pins in the Hal Configuration, if I click the button, the indicator changes on both pins, just the axis isn't jogging
It jogs correctly if I use the normal jog buttons on the left
I'm sure I must be missing something really simple
Any ideas
Thanks in advance
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1441
04 Sep 2020 17:58 #180721
by Todd Zuercher
Replied by Todd Zuercher on topic New user - pyvcp button not working
First you must set a speed value for halui.jog-speed. (It is set at 0 default.)
The following user(s) said Thank You: simonj69
Please Log in or Create an account to join the conversation.
04 Sep 2020 18:13 #180725
by simonj69
Replied by simonj69 on topic New user - pyvcp button not working
Thank you
That worked
Easy when you know how, amazing how many vids i watched and no one mentioned this
Thanks again
Simon
That worked
Easy when you know how, amazing how many vids i watched and no one mentioned this
Thanks again
Simon
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1441
04 Sep 2020 18:19 #180726
by Todd Zuercher
Replied by Todd Zuercher on topic New user - pyvcp button not working
on the man page for halui, if you read the description of the pins it says that it jogs at the velocity set by the speed pin.
"halui.jog.N.minus bit in -- pin for jogging axis N in negative direction at the halui.jogāspeed velocity"
One thing to remember Halui is completely separate from the GUI controls. Settings you make with one do not necessarily have any affect on the other.
"halui.jog.N.minus bit in -- pin for jogging axis N in negative direction at the halui.jogāspeed velocity"
One thing to remember Halui is completely separate from the GUI controls. Settings you make with one do not necessarily have any affect on the other.
The following user(s) said Thank You: simonj69
Please Log in or Create an account to join the conversation.
04 Sep 2020 18:22 #180727
by simonj69
Replied by simonj69 on topic New user - pyvcp button not working
Cheers for the info
Looks like a learning curve ahead
Thanks agaun
Looks like a learning curve ahead
Thanks agaun
Please Log in or Create an account to join the conversation.
Time to create page: 0.062 seconds