xhc-whb04b-6 OPTIONS [-f -s] dont work

  • zz912
  • zz912's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
13 Feb 2022 12:35 #234689 by zz912
I want use OPTION:
-s Lead + jogwheel changes the spindle override speed. Each tick will increase/decrease the spindle override. -f MPG + jogwheel changes the feed override. Each tick will increment/decrement the feed override.

But in real this OPTION do nothing. I don't know if this is a bug or I can't use the remote control I tried to press different combinations of buttons on the remote control, but turning the jogwheel does not affect any HAL pin related to SPINDLE or FEED.

I dont understand have to change feed.  What mean "MPG + jogwheel" ?
I understand it for spindle"Lead + jogwheel" =>
 

it is so? But this make no change HAL pin.

 
Attachments:

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

More
13 Feb 2022 16:31 - 13 Feb 2022 16:32 #234711 by alkabal
Replied by alkabal on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
Hi

For sure that work if you use the exemple hal file provided

The pendant support 4 mode and you can show that on the lcd.

Deffaut mode display MPG so you can directly use the jog wheel for see federate changing on the axis GUI slider

If you push continuous or step button you can see the Lcd displaying correspondant information this 2 mode the machine

Lead position is used for spindle feed override (check axis GUI slider)

After going back from lead you come again to MPG and corresponding federate override.


The only know options that does not work is the B (for remove big step usage)

Best regards
Last edit: 13 Feb 2022 16:32 by alkabal.

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

  • zz912
  • zz912's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
13 Feb 2022 18:57 #234719 by zz912
Replied by zz912 on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
what version of Lcnc are you using?

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

More
13 Feb 2022 20:29 - 13 Feb 2022 20:36 #234741 by alkabal
Replied by alkabal on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
2.8.2 (run in place) update done something like near 23 Jun 2021

I have the 6 axis unit, i don't know if the 4 unit work the same for MPG mode ???


HAL related signal for spindle :
halui.spindle.0.override.scale   
halui.spindle.0.override.value   
halui.spindle.0.override.increase
halui.spindle.0.override.decrease

HAL related feed :
halui.feed-override.value   
halui.feed-override.increase
halui.feed-override.decrease
Last edit: 13 Feb 2022 20:36 by alkabal.

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

  • zz912
  • zz912's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
13 Feb 2022 21:26 #234755 by zz912
Replied by zz912 on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
I have 2.8.2 too

whb.halui.feed-override.value
and
whb.halui.spindle-override.value
have DIR IN, so information flow to remote control.

I would like to ask you two things:

1) start a Halshow and see if these two HAL pins change when you change the feed with the wheel
 
if not look at Halscope.
2) do not turn off LCNC. Open the terminal and send me a pin list.
 
Attachments:

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

More
13 Feb 2022 23:49 #234772 by alkabal
Replied by alkabal on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
 



Warning: Spoiler!
Attachments:

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

More
13 Feb 2022 23:51 - 14 Feb 2022 00:10 #234773 by alkabal
Replied by alkabal on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
I have start my real machine using hal close to original one and i can see directly at start without homing the GUI slider move with jog wheel when machine is turned on


I think next step is to check which value is reported by usb when you go back from lead.

github.com/LinuxCNC/linuxcnc/blob/ef7360...c-whb04b-6/usb.h#L64


In terminal you can try to type :
halrun
loadusr ../bin/xhc-whb04b-6 -ue
 
Last edit: 14 Feb 2022 00:10 by alkabal.

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

  • zz912
  • zz912's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
14 Feb 2022 22:48 #234870 by zz912
Replied by zz912 on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
Hello,

I have to setp whb.halui.machine.is-on TRUE

and then

whb.halui.feed-override.decrease
whb.halui.feed-override.increase

works correctly.

But!!! It works until I click on button "Continous" or "Step" on pendant.

Can I ask you for other test?

Dont run LinuxCNC only terminal with halrun and loadusr xhc-whb04b-6 -Hsf
Turn on pendant and then click all button and jog wheel on pendant.

Do you have the message "failed to wait for reqested mode. waited 300ms" ?
 
Attachments:

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

More
15 Feb 2022 03:34 - 15 Feb 2022 03:48 #234884 by alkabal
Replied by alkabal on topic xhc-whb04b-6 OPTIONS [-f -s] dont work
I think yes in some situation i get same error, the driver is not perfect, you welcome for propose change.

"whb.halui.machine.is-on" of course this signal need to be linked with your machine "halui.machine.is-on".

If you have set correctly your hal :

[HAL]
#******************************************
HALUI = halui
HALFILE = xhc-whb04b-6-.hal


and ini :
[HALUI]
#******************************************
# add halui MDI commands here (max 64)
# halui.mdi-command-00:
etc...


I have do my best for allow the pendant hal file to work witout any change except if you already use some signal in your config.



I have only two line changed in my own xhc hal due to my particular setup : (changed not just removed !!)
#net spindle.is-on              whb.halui.spindle.is-on       halui.spindle.0.is-on
net spindle-orient-enable-out   whb.halui.spindle.is-on       # connected to halui.xxx in my main.hal

#net pdnt-program.is-running    whb.halui.program.is-running  halui.program.is-running
net program-is-running          whb.halui.program.is-running  # connected to halui.xxx in my main.hal
Last edit: 15 Feb 2022 03:48 by alkabal.

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

Time to create page: 0.159 seconds
Powered by Kunena Forum