XHC-WHB04B-6 LinuxCNC not working

More
7 years 1 week ago #148435 by randypetersen
Making progress!

I got the WHB04B-4 behaving much better. Jogging on XYZ and some buttons behaving. I can't get the XYZ position to show on the LCD display.
Any guesses on how to get the XYZ to show on LCD?
# LCD
net Xpos => xhc-hb04.x.pos-absolute
net Ypos => xhc-hb04.y.pos-absolute
net Zpos => xhc-hb04.z.pos-absolute
#net spindle-rps spindle-speed-out => xhc-hb04.spindle-rps
net feedrate halui.feed-override.value => xhc-hb04.feed-value

Under HAL Meter xhc-hb04.x.pos-absolute is showing 0. Seems like a lot of things I had to change in that file was X to 0 but since thats a xhc-hb04 pin not sure how to fix it.

The only other things I would immediately like to control is XYZ G54 homing. So If hit a button it would set X G54 to 0, does that make sense?

So much better than the joystick I was trying to use, much simpler and wireless is awesome actually. No wires to trip over.

Thanks!
Randy

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

More
7 years 1 week ago #148483 by satiowadahc
I'm thinking from you hal file it should be
# LCD
net x-pos-fb => xhc-hb04.x.pos-absolute
net y-pos-fb => xhc-hb04.y.pos-absolute
net z-pos-fb => xhc-hb04.z.pos-absolute

net spindle-rps spindle-output => xhc-hb04.spindle-rps

I don't see a feed in your hal file, so I'm guessing you'll need to use internal halui signals.

Our machinists onsite seem to like the new one, we had a lot of issues with the xhc-hb04 so the upgrade seems to be keeping them happy!
The following user(s) said Thank You: randypetersen

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

More
7 years 1 week ago #148500 by randypetersen
Thanks even more progress!
Thanks again for all the assistance, loving this.

I got X Y and Z showing up, but the value doesn't seem to be a normal value.
Is there a way I can get it to show a different coordinate set?
Like if I set the work home, can it show values from that?

I went through HAL METER trying to find a value that resembled what I was seeing on the DRO, but didn't have any luck.

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

More
7 years 1 week ago #148518 by satiowadahc
Workpiece coordinates are on my Todo list, it's not used often in our shop. Programmer by trade so building features as the machinists request.

I had an issue on one machine where it would read the absolute value from the position of the motor relative to when you turned on the pendant. So we had to home it before turning the pendant on. Either that or need to read an offset into the relative value.

The driver currently only takes in one set of values as there's some bitwise hacking I gotta do to seperate the two.

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

More
7 years 1 week ago #148598 by jonch919
@randypetersen
How well would you say this MPG is working for you now?
Is it worth buying, or should I go with something else?

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

More
7 years 1 week ago #148599 by randypetersen
Hi Jonch919,
I really haven't put it through it's paces yet, but I can say it seems to be working much better than the $20 joypad I was using before. I was looking at the ones from vistaCNC and I thought those looked pretty nice as well. A little pricier, but seems like they were quality units as well. I got to admit, the wireless function is nice. I would have said I don't care about a wire, but wireless is nice.

I still haven't set up the macros how I want yet, but working on it slowly with satiowadahc and the boards help.

If you'd like, I can shoot a video of how it's functioning now.

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

Time to create page: 0.208 seconds
Powered by Kunena Forum