xhc-hb04 basic setup in 2.8

More
27 Mar 2025 11:44 - 27 Mar 2025 12:51 #325045 by Lampje
Replied by Lampje on topic xhc-hb04 basic setup in 2.8
OK. Here are the config files.
Anything in them that would hinder the jog wheel from working?
Edit1: Looking into the toolheight setter not ' responding' I found the HalShow button. Here the jog count is changing as I rotate it. so the signals are received by LinuxCNC. It's just not used or something. (BTW had the input pin for the probe wrong it was set to 31 but wired to pin 21...)
Edit2: the jog wheel works for the spindle and feed rate. But not on any of the 4 axis.

Also the debounce issue in the xhc-hb04.hal? "./xhc-hb04.hal:47: parameter or pin 'debounce.0.delay' not found"

I'm currently running the gmoccapy 3.4.9 GUI for LinuxCNC.
btw. any tips for a touchscreen interface (not Touchy)?
Attachments:
Last edit: 27 Mar 2025 12:51 by Lampje. Reason: Extra jogging results found., more jogging results.

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

More
27 Mar 2025 12:33 #325047 by Aciera
Replied by Aciera on topic xhc-hb04 basic setup in 2.8
You seem to be missing 'loadrt' and 'addf' lines for the 'debounce' component.
#setp  debounce.0.delay 1500
#net homeButton       xhc-hb04.button-home =>    debounce.0.4.in
#net homeCmd          debounce.0.4.out  => halui.home-all

Once the config is running you can use the 'Halconfiguration' tool by going to the settings page in gmoccapy and clicking on the button on the bottom right corner.
Then you can change to the Watch tab and select the pins 'axis.L.jog-enable', 'axis.L.jog-counts', 'axis.L.jog-scale' from the selector tab on the left ('L' being the axis letter you are testing). Confirm that '-enable' is true, '-counts' are changing when you turn the wheel on the pendant and that '-scale' is set to a sensible value.

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

More
27 Mar 2025 13:01 #325050 by Lampje
Replied by Lampje on topic xhc-hb04 basic setup in 2.8
Hi Aciera,

What would be the loadrt and addf lines for the debounce?

As for the jog pins. They are lighting up in the halshow. However, axis A doesn't.
Counts value changes. The scale is another thing. At 1x it shows 1e-6. At 10x it shows 1e-5. And finally at 100x it shows as 0.0001. At 100x the count changes per 1000 pulses/counts.
As stated in the earlier, edited, posts the feed and spindle values do change in the interface.

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

More
27 Mar 2025 14:00 #325056 by Lampje
Replied by Lampje on topic xhc-hb04 basic setup in 2.8
ok. so i found that there was no line for the A-axis in the main HAL file.. Added that one, and now that input shows up as well.
However, still no movement.

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

More
27 Mar 2025 15:48 #325072 by Aciera
Replied by Aciera on topic xhc-hb04 basic setup in 2.8
Note that if you copy/pasted stuff from this earlier post the debounce stuff is actually commented out so you likely wont need it:
forum.linuxcnc.org/10-advanced-configura...n-2-8?start=0#155864

if your scale is that small then it's not really surprising that there is no movement so I would suggest to set change these two lines
setp mult2Lowpass.in1 0.001
setp halui.feed-override.scale 0.00001

To this:
setp mult2Lowpass.in1  1.0
setp halui.feed-override.scale  1.0

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

Time to create page: 0.139 seconds
Powered by Kunena Forum