XHC-HB04 wireless MPG pendant HAL module
25 Jun 2016 00:09 - 26 Jun 2016 17:18 #76621
by dannym
Replied by dannym on topic XHC-HB04 wireless MPG pendant HAL module
Yeah, the spindle button can work fine! Press it once it starts. press it again, it stops
This is what I did in my .hal file:
The MPG and RF link and LinuxCNC polling loop already perform suitable debouncing. There will be only one edge per button press. And the spindle.is-on won't be true until at least one polling cycle after halui.spindle.start is strobed.
This is what I did in my .hal file:
#SPINDLE button
addf and2.0 servo-thread
addf and2.1 servo-thread
addf not.0 servo-thread
net spindleOn halui.spindle.is-on not.0.in and2.1.in1
net spindleXHCButton edge.1.out and2.0.in0 and2.1.in0
net spindleOnB not.0.out and2.0.in1
net spindleTurnOn halui.spindle.start and2.0.out
net spindleTurnOff halui.spindle.stop and2.1.out
The MPG and RF link and LinuxCNC polling loop already perform suitable debouncing. There will be only one edge per button press. And the spindle.is-on won't be true until at least one polling cycle after halui.spindle.start is strobed.
Last edit: 26 Jun 2016 17:18 by dannym.
Please Log in or Create an account to join the conversation.
26 Jun 2016 22:25 #76687
by Gasman
Replied by Gasman on topic XHC-HB04 wireless MPG pendant HAL module
Hi Danny -thanks for the quick response but I still can't get this to function as expected - the spindle now seems to start when the program starts but the spindle button on the pendant does nothing - nor does the button on the Axis GUI. I will have another play with Hal Command when I get a chance to get to the workshop to see what it thinks is connected where.
I tried it in my postgui.hal file (and put loadrt and2 count=2 , loadrt not count=1, loadrt edge count=1 into my custom.hal.) Is that correct or should it go in my main hal file?
I tried it in my postgui.hal file (and put loadrt and2 count=2 , loadrt not count=1, loadrt edge count=1 into my custom.hal.) Is that correct or should it go in my main hal file?
Please Log in or Create an account to join the conversation.
27 Jun 2016 09:37 #76695
by cncbasher
Replied by cncbasher on topic XHC-HB04 wireless MPG pendant HAL module
Gasman:
untill you have everything working in axis , then it wont work
you should be able to stop and start the spindle from axis , after you have homed ,
this would suggest either the spindle output is not as you think it is , so what interface are you using ? vfd etc
and how do you have this wired
also it may help posting your full config as an archive to you post so it can be checked
untill you have everything working in axis , then it wont work
you should be able to stop and start the spindle from axis , after you have homed ,
this would suggest either the spindle output is not as you think it is , so what interface are you using ? vfd etc
and how do you have this wired
also it may help posting your full config as an archive to you post so it can be checked
The following user(s) said Thank You: Gasman
Please Log in or Create an account to join the conversation.
29 Jun 2016 06:44 #76773
by Gasman
Replied by Gasman on topic XHC-HB04 wireless MPG pendant HAL module
Now got it working thanks - can toggle on/off the spindle, mist and flood as well as use the Mode button to switch between manual and MDI. My problem was I had forgotten that I had changed some things in the main hal file for my machine whilst i was trying to get this working in in sim on my laptop. Now all fixed. Just working on adding a camera next..
Please Log in or Create an account to join the conversation.
06 Jul 2016 21:53 - 06 Jul 2016 22:04 #77106
by vre
Replied by vre on topic XHC-HB04 wireless MPG pendant HAL module
hello!
I have created my config with stepconf wizard and hb04 does not start
It shows me errors with conflicts.
Is safe to comment lines that cause the conflict in my main hal generated by stepconf wizard ?
these are the lines that cause conflict
I have created my config with stepconf wizard and hb04 does not start
It shows me errors with conflicts.
Is safe to comment lines that cause the conflict in my main hal generated by stepconf wizard ?
these are the lines that cause conflict
net spindle-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net probe-in => motion.probe-input
Machine configuration file is '6040-parallel.ini'
Starting LinuxCNC...
Found file(REL): ./6040-parallel.hal
Found file(REL): ./xhc-hb04.tcl
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
xhc-hb04.tcl: !!! <halui.home-all> target pin does not exist, continuing
Pin 'motion.probe-input' was already linked to signal 'probe-in'
while executing
"hal net pendant:probe-z <= xhc-hb04.button-probe-z => motion.probe-input"
("eval" body line 1)
invoked from within
"eval hal net $args"
(procedure "net" line 1)
invoked from within
"net pendant:$bname <= $fullbname => $thepin"
(procedure "connect_pins" line 35)
invoked from within
"connect_pins "
invoked from within
"if { ![namespace exists ::tp] || ([::tp::passnumber] != 0) } {
connect_pins ;# per ini file items: [XHC_HB04_BUTTONS]buttonname=pin
wheel_setup..."
(file "./xhc-hb04.tcl" line 529)
invoked from within
"source $filename"
invoked from within
"set result [source $filename]"
(file "/usr/bin/haltcl" line 55)
Shutting down and cleaning up LinuxCNC...
xhc-hb04: connection lost, cleaning up
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [00005353] libusbx: error [do_close] Device handle closed while transfer was still being processed, but the device is still connected as far as we know
[ 0.000066] [00005353] libusbx: warning [do_close] A cancellation for an in-flight transfer hasn't completed but closing the device handle
LinuxCNC terminated with an error. You can find more information in the log
Last edit: 06 Jul 2016 22:04 by vre.
Please Log in or Create an account to join the conversation.
07 Jul 2016 15:58 - 07 Jul 2016 15:58 #77146
by andypugh
You will need to look at the two files and work out what is required to achieve the desired effect.
For example, consider two files that collectively contain
Then this following will not cause an error, but neither will it work:
Replied by andypugh on topic XHC-HB04 wireless MPG pendant HAL module
It is safe, but the lines in question almost certainly had a purpose.Is safe to comment lines that cause the conflict in my main hal generated by stepconf wizard ?
You will need to look at the two files and work out what is required to achieve the desired effect.
For example, consider two files that collectively contain
net probe-input motion.probe-in
net probe-input parport.0.pin-00-in
...
net input-probe motion.probe-in
net input-probe parport.0.pin-0-in
Then this following will not cause an error, but neither will it work:
#net probe-input motion.probe-in
net probe-input parport.0.pin-00-in
...
net input-probe motion.probe-in
#net input-probe parport.0.pin-0-in
Last edit: 07 Jul 2016 15:58 by andypugh.
Please Log in or Create an account to join the conversation.
07 Jul 2016 18:35 - 07 Jul 2016 20:59 #77154
by vre
Replied by vre on topic XHC-HB04 wireless MPG pendant HAL module
xhc-hb04 works ok in simulation but in machine iam testing it i getwhen i jog Z axis after a while and linuxcnc stops
if i jog from gui Z axis everything works ok
Jogging X & Y axes working from hb04
How can i fix this problem ?
here someone else have similar problem
sourceforge.net/p/emc/mailman/message/34193513/
----
The problem was the big mpg accelration.
I made this change and now works fine..
joint 2 following error
if i jog from gui Z axis everything works ok
Jogging X & Y axes working from hb04
How can i fix this problem ?
here someone else have similar problem
sourceforge.net/p/emc/mailman/message/34193513/
----
The problem was the big mpg accelration.
I made this change and now works fine..
#mpg_accels = 50 50 500 600
mpg_accels = 50 50 50
Last edit: 07 Jul 2016 20:59 by vre.
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
23 Aug 2016 17:54 #79320
by besriworld
Replied by besriworld on topic XHC-HB04 wireless MPG pendant HAL module
Hello ,
I bought by mistake this remote HB03
Can you work with LinuxCNC?
I bought by mistake this remote HB03
Can you work with LinuxCNC?
Please Log in or Create an account to join the conversation.
23 Aug 2016 18:02 #79321
by andypugh
Probably. Have you tried it?
Replied by andypugh on topic XHC-HB04 wireless MPG pendant HAL module
Hello ,
I bought by mistake this remote HB03
Can you work with LinuxCNC?
Probably. Have you tried it?
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
23 Aug 2016 18:07 #79323
by besriworld
Replied by besriworld on topic XHC-HB04 wireless MPG pendant HAL module
No I have not tried . I have read that does not work with linuxCNC
Please Log in or Create an account to join the conversation.
Time to create page: 0.231 seconds