XHC-HB04 wireless - how to set workpiece zero
9 years 3 months ago #96323
by travis036
XHC-HB04 wireless - how to set workpiece zero was created by travis036
on my wireless pendant, i like to jog the machine to the workpiece zero, but i have to run to the keyboard to set zero for the current axis. if my rotary selector is set to, say, X, then how to i configure things so that when i press "=0" (xhc-hb04.button-zero), it reads what the rotary selector is set to, and sets that axis to workpiece zero?
I have been through the Wiki several times and i can't find anything that would tell me how to configure this.
Thanks in advance for any help.
~Travis
I have been through the Wiki several times and i can't find anything that would tell me how to configure this.
Thanks in advance for any help.
~Travis
Please Log in to join the conversation.
9 years 3 months ago #96486
by andypugh
Replied by andypugh on topic XHC-HB04 wireless - how to set workpiece zero
I find this solution unappealing, but it ought to work.
You can create a set of MDI_COMMANDs in the [HALUI] section of theINI file.
linuxcnc.org/docs/2.7/html/config/ini-co....html#_halui_section
This defines a G-code command that is run when a HAL pin goes true. You probably want
This will create three HAL pins halui.mdi-command-00, halui.mdi-command-01, halui.mdi-command-03, one to zero each axis.
You then need a bit of HAL logic to make the right pin of those three go high when you press the "zero" button.
What form does the selected-axis data take when it gets to the HAL layer?
You can create a set of MDI_COMMANDs in the [HALUI] section of theINI file.
linuxcnc.org/docs/2.7/html/config/ini-co....html#_halui_section
This defines a G-code command that is run when a HAL pin goes true. You probably want
Code:
[HALUI]
MDI_COMMAND = G10 L20 X0
MDI_COMMAND = G10 L20 Y0
MDI_COMMAND = G10 L20 Z0
You then need a bit of HAL logic to make the right pin of those three go high when you press the "zero" button.
What form does the selected-axis data take when it gets to the HAL layer?
Please Log in to join the conversation.
9 years 3 months ago #96497
by travis036
Replied by travis036 on topic XHC-HB04 wireless - how to set workpiece zero
oh yeah, i forgot the MDI_COMMAND settings...
Not sure what form the selected axis data takes. I will go out and download the xhc-hb04.hal and xhc-hb04.tcl, as it is a little too hot out there right now to go through them on the LinuxCNC PC (haven't installed an A/C yet).
I will do that now, and get back when i find the info.
~Travis
Not sure what form the selected axis data takes. I will go out and download the xhc-hb04.hal and xhc-hb04.tcl, as it is a little too hot out there right now to go through them on the LinuxCNC PC (haven't installed an A/C yet).
I will do that now, and get back when i find the info.
~Travis
Please Log in to join the conversation.
9 years 3 months ago #96500
by travis036
Replied by travis036 on topic XHC-HB04 wireless - how to set workpiece zero
i couldn't seem to find what form selected_axis data takes.
~Travis
~Travis
Please Log in to join the conversation.
9 years 3 months ago #96514
by andypugh
Replied by andypugh on topic XHC-HB04 wireless - how to set workpiece zero
Presumably it chooses which axis to jog somehow, so what is connected to each axis.n.jog-enable?
Please Log in to join the conversation.
9 years 3 months ago #96515
by travis036
Replied by travis036 on topic XHC-HB04 wireless - how to set workpiece zero
i think this is the line you mean:
maybe...
~Travis
Code:
net pendant:jog-$coord <= xhc-hb04.jog.enable-$acoord \
=> axis.$axno.jog-enable
maybe...
~Travis
Please Log in to join the conversation.
9 years 3 months ago #96517
by andypugh
Replied by andypugh on topic XHC-HB04 wireless - how to set workpiece zero
Oh, that's fun, you are using a Tcl HAL file.
It is going to be easier to create a separate HAL file that runs after the XHC HAL file to connect up the MDI_COMMANDs.
As a first step, start up your config and then open a terminal window and type "halcmd show sig jog*"
It is going to be easier to create a separate HAL file that runs after the XHC HAL file to connect up the MDI_COMMANDs.
As a first step, start up your config and then open a terminal window and type "halcmd show sig jog*"
Please Log in to join the conversation.
9 years 3 months ago #96544
by travis036
Replied by travis036 on topic XHC-HB04 wireless - how to set workpiece zero
i will try that right after i get out from work. (gotta pay for CNC parts somehow
)
Just didn't want to leave you hanging all day.
Thanks for the help thus far, BTW
~Travis
Just didn't want to leave you hanging all day.
Thanks for the help thus far, BTW
~Travis
Please Log in to join the conversation.
Time to create page: 0.123 seconds
