WHC-WHB04B on a lathe

More
03 Mar 2024 20:25 #295081 by Wusel
WHC-WHB04B on a lathe was created by Wusel
dear all,
Iam just about to finish my installation of the WHB04B-4 pendant. As usual it took a while with lots of reading, trying, failing. It runs on LinuxCNC 2.8 with a Mesa7i96s card.
Here are the questions:
1) on the display I see X1,Y1,Z1 on the first screen. I only have X and Z , can I get rid of the Y1 being displayed?
2) on X1 it shows the radius but I would like to display the diameter.
3) the spindle on-off button turns on the spindle alright but it won't turn it off again. I had hoped that this is a toggle switch. When I watch spindle-o and spindle-off  in the hal monitor only spindle on is triggered

any suggestions how to improve on these topics?

regards
Rainer

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

More
05 Mar 2024 12:18 #295221 by andypugh
Replied by andypugh on topic WHC-WHB04B on a lathe
Are you referring to the display on the pendant itself, or the LinuxCNC GUI?

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

More
05 Mar 2024 20:39 #295256 by Wusel
Replied by Wusel on topic WHC-WHB04B on a lathe
hello andy,
I am referring to the the display on the pendant. On the computer screen ( I am using axis) I see radius and diameter on the display. All the other pendants have no display so I couldn't complain but with the display on the pendant I might get used on that one and then I prefer the correct number shown- diameter

regards
Rainer

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

More
05 Mar 2024 23:40 #295270 by andypugh
Replied by andypugh on topic WHC-WHB04B on a lathe
I looked through the docs, and the actual code:
github.com/LinuxCNC/linuxcnc/blob/master...mps/xhc-hb04.cc#L667
And I don't see any way to put it in a lathe mode.

The conversion to diameter could be done in HAL, simply by doubling the values before passing them to the component.

linuxcnc.org/docs/stable/html/man/man9/scale.9.html

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

More
06 Mar 2024 07:51 #295302 by Wusel
Replied by Wusel on topic WHC-WHB04B on a lathe
thanks for your thoughts;
the doubling of the value seems a good solution, I'll give that a try

regards
Rainer

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

More
06 Mar 2024 09:15 #295303 by andypugh
Replied by andypugh on topic WHC-WHB04B on a lathe
Also in HAL, you might be able to wire the "Y select" to select axis Z.
So instead of XYZA the axis selector is XZZX (or similar)

ie alter this section
# "selected axis" signals
net pdnt.axis.X.select whb.halui.axis.x.select halui.axis.x.select
net pdnt.axis.y.select whb.halui.axis.y.select halui.axis.y.select
net pdnt.axis.Z.select whb.halui.axis.z.select halui.axis.z.select

net pdnt.axis.x.jog-scale whb.axis.x.jog-scale axis.x.jog-scale
net pdnt.axis.y.jog-scale whb.axis.y.jog-scale axis.y.jog-scale
net pdnt.axis.z.jog-scale whb.axis.z.jog-scale axis.z.jog-scale

net pdnt.axis.x.jog-counts whb.axis.x.jog-counts axis.x.jog-counts
net pdnt.axis.y.jog-counts whb.axis.y.jog-counts axis.y.jog-counts
net pdnt.axis.z.jog-counts whb.axis.z.jog-counts axis.z.jog-counts

net pdnt.axis.x.jog-enable whb.axis.x.jog-enable axis.x.jog-enable
net pdnt.axis.y.jog-enable whb.axis.y.jog-enable axis.y.jog-enable
net pdnt.axis.z.jog-enable whb.axis.z.jog-enable axis.z.jog-enable

To change the mapping of the selector.
This probably needs an "or2" HAL component and a bit of wiring if you want to do more than just have the "Y" position control Z.

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

Time to create page: 0.156 seconds
Powered by Kunena Forum