New user - pyvcp button not working

More
04 Sep 2020 12:17 #180668 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

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

More
04 Sep 2020 17:58 #180721 by Todd Zuercher
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.

More
04 Sep 2020 18:13 #180725 by simonj69
Thank you

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.

More
04 Sep 2020 18:19 #180726 by Todd Zuercher
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.
The following user(s) said Thank You: simonj69

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

More
04 Sep 2020 18:22 #180727 by simonj69
Cheers for the info

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
Powered by Kunena Forum