XHC-WHB04B-6 Help needed

More
5 years 9 months ago - 5 years 9 months ago #194868 by alkabal
Replied by alkabal on topic XHC-WHB04B-6 Help needed
Hi

Thanks for your thanks !

For be real (i think is already write somewhere) : I'm not the author for this driver (originally for Machinekit from Raoul Rubien) but i have enhanced/corrected/adapted for 2.8 2.9 and ask for include in Lcnc.

After many time used for make this driver work the best things to do is try to save time for other one including this in Lcnc with a near ready to use exemple config file. (Imo the "bad side" of this is allow China seller to sell more unit rather than other one)


Lcnc is great because many people try to make it better, thanks a lot to all dev !!!
Last edit: 5 years 9 months ago by alkabal.
The following user(s) said Thank You: tommylight

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

More
5 years 9 months ago #194882 by ChrissyAG
Replied by ChrissyAG on topic XHC-WHB04B-6 Help needed
Thanks guys. I really appreciate your responses.

Alkabal, I will take your suggestions on board and try what you have suggested later today and report back.

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

More
5 years 9 months ago #194964 by ChrissyAG
Replied by ChrissyAG on topic XHC-WHB04B-6 Help needed
Ok, so I have done the following:

1. In Matilda001.ini:
Changed HALFILE = ChineseMPGPendant.hal to HALFILE = PendantAlkabalLink.hal
2. In PendantAlkabalLink.hal:
Hashed: net machine.is-on halui.machine.is-on whb.halui.machine.is-on
3. In PendantAlkabalLink.hal:
Added: net machine.is-on whb.halui.machine.is-on
4. Get error on startup on LinuxCNC:
Pin 'halui.mode.is-mdi' was already linked to signal 'MDI mode'
5. In Matilda001.hal:
Hashed: net MDI-mode halui.mode.is.mdi
6. Get error on startup of LinuxCNC:
Pin 'halui.axis.x.select' was already linked to signal 'axis-select-x'
7. In Matilda001.hal:
Hashed: net.axis-select-<n> halui.axis.<n>.select (<n>=x,y,z,a)
8. Get error on startup of LinuxCNC:
Pin 'halui.mdi-command-01' does not exist
9. In PendantAlkabalLink.hal:
Hashed lines concerning halui.mdi.command-<n> where <n>=01-09 and 11-14
10. Get error on startup of LinuxCNC:
Pin 'halui.home-all' does not exist
11. In PendantAlkabalLink.hal:
Hashed: net pdnt.button.m-home whb.button.m-home halui.home-all
12. Get error on startup of LinuxCNC:
Pin 'spindle.0.on' was already linked to signal 'spindle-enable'
13. In PendantAlkabalLink.hal:
Hashed: net pdnt.spindle.is-on whb.halui.spindle.is-on spindle.0.on
14. Get error on startup of LinuxCNC:
Pin 'halui.spindle.0.stop' was already linked to signal 'spindle-manual-stop'
15. In PendantAlkabalLink.hal:
Hashed: net pdnt.spindle.stop whb.halui.spindle.stop halui.spindle.0.stop
16. Get error on startup of LinuxCNC:
Pin 'halui.spindle.0.forward' was already linked to signal 'spindle-manual-cw'
17. In PendantAlkabalLink.hal:
Hashed:net pdnt.spindle.forward whb.halui.spindle.forward halui.spindle.0.forward
net pdnt.spindle.reverse whb.halui.spindle.reverse halui.spindle.0.reverse
18. Get error on startup of LinuxCNC:
Pin 'spindle.0.speed-out-abs' was already linked to signal 'sindle-vel-cmd-rpm-abs'
19. In PendantAlkabalLink.hal:
Hashed:net pdnt.spindle-speed-abs whb.halui.spindle-speed-cmd spindle.0.speed-out-abs
20. LinuxCNC starts up.
21. Switch on pendant, turn axis rotary switch to "X", turn scale rotary switch to 0.001, press "STEP", encoder wheel does not work.
22. Open Hal Configuration:
Watch: whb.axis.x.jog-scale (changes when scale rotary switch is turned)
whb.axis.x.jog-enable (changes from red to yellow when axis rotary switch is turned to X)
whb.axis.x.jog-counts 0 (does not change when jog wheel on pendant is turned)

Bugger........I'm now seriously confused.

I'm posting the configuration files that I have modified as described above for clarification.

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

More
5 years 9 months ago - 5 years 9 months ago #194972 by alkabal
Replied by alkabal on topic XHC-WHB04B-6 Help needed
Hi

Imo this is something that need to be discussed with regular developper !! due to the regular use of # connect miscellaneous signals

I think for first things you need to comment out this section in your hal :
#******************************
# connect miscellaneous signals
#******************************

In the example file nothing need to be commented out, if you have something already linked to a pin used in the pendant hal you have 3 choice :
-if is really used for something and this signal is a output from linuxcnc to pendant you need to mix like the exemple in other post for
Code:
halui.machine.is-on
using the same signal name
Code:
net machine.is-on
-if pin is a output from pendant and you already use the corresponding input in linuxcnc you need to use a component or2 (very rarely needed)
-- if pin is connected to nothing except signal name like you have in # connect miscellaneous signals imo is better to comment out the whole section and keep only what you really need
Last edit: 5 years 9 months ago by alkabal.
The following user(s) said Thank You: vre

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

More
5 years 9 months ago #194974 by ChrissyAG
Replied by ChrissyAG on topic XHC-WHB04B-6 Help needed
Hi,

I've quickly commented (hashed) out all lines under this section of Matilda001.hal.
Unfortunatley, the behavior is still the same.
Not sure what to do next.

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

More
5 years 9 months ago #194975 by alkabal
Replied by alkabal on topic XHC-WHB04B-6 Help needed
have you skype ?
team viewer ?

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

Time to create page: 0.142 seconds
Powered by Kunena Forum