Beginner HallUI question

More
5 years 1 week ago #224262 by mBender
Replied by mBender on topic Beginner HallUI question
I am sorry, I still can´t get it to work. I have a float from my custom panel connected to halui.axis.jog-speed. Furthermore I set halui.axis.z.select 1 and connected the two buttons to halui.axis.z.plus and minus. I see in the Hal Configuration that all signals are working, but the machine is still not moving. It works fine when I use the jog buttons on the Axis GUI.

Here is the configuration in the postgui.hal

# connect the Z pyVCP buttons
net my-jogzminus halui.axis.z.minus <= pyvcp.z-minus
setp halui.axis.z.select 1
net my-jogzplus halui.axis.z.plus <= pyvcp.z-plus

# connect the pyVCP jog speed slider
net my-jogspeed halui.axis.jog-speed <= pyvcp.jog-speed-f

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

More
5 years 1 week ago - 5 years 1 week ago #224268 by andypugh
Replied by andypugh on topic Beginner HallUI question
Is the machine homed?
Before homing you can only jog in joint mode (ie, using the halui.joint.jog... pins)
If Axis is showing joint numbers rather than axis letters during your test then that will be the issue.
(If you want to jog in both modes, then
Code:
net my-jogzplus halui.axis.z.plus halui.joint.2.plus <= pyvcp.z-plus
is valid syntax to drive both pins.
Last edit: 5 years 1 week ago by andypugh.

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

More
5 years 1 week ago #224281 by mBender
Replied by mBender on topic Beginner HallUI question
My machine is not homed. But it shouldn't be necessary to home the machine, since I can use the axis button to drive the machine Z axis. (I only test the Z axis at the moment )

I tried already what you said with connecting halui.joint.2.plus <= pyvcp.z-plus without the addition of halui.axis.z.plus. It didn't work.

Now, I just tried exactly your suggestion net my-jogzplus halui.axis.z.plus halui.joint.2.plus <= pyvcp.z-plus and I see the pins in Hal Configuration act as they are supposed to be, but the machine does not move.

In the documentation it says halui need to find the nml find specified in the INI. Neither in the INI nor in the config folder I see anything like an NML file. Could that be the issue?

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

More
5 years 1 week ago #224286 by andypugh
Replied by andypugh on topic Beginner HallUI question

My machine is not homed. But it shouldn't be necessary to home the machine, since I can use the axis button to drive the machine Z axis. (I only test the Z axis at the moment )
 
The Axis GUI swaps from joint to axis automatically. That might be the difference. 

As well as operating the joint / axis jog+ you might also need to set the halui.joint.jog-speed pin too.

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

More
5 years 6 days ago #224452 by mBender
Replied by mBender on topic Beginner HallUI question
Got it working. Thanks

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

More
1 year 7 months ago - 1 year 7 months ago #324305 by mtbbiker
Replied by mtbbiker on topic Beginner HallUI question
This work perfectly for me using version 2.9 (Thanks a mil JT !!) My setup uses a Logitech (old) Xbox USB controller to work
Last edit: 1 year 7 months ago by mtbbiker.

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

Time to create page: 0.204 seconds
Powered by Kunena Forum