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

More
4 years 8 months ago #234689 by zz912
I want use OPTION:
Code:
-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" =>
 

Attachment not found



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

 

Please Log in to join the conversation.

More
4 years 8 months ago #234711 by alkabal
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

Please Log in to join the conversation.

More
4 years 8 months ago #234719 by zz912
what version of Lcnc are you using?

Please Log in to join the conversation.

More
4 years 8 months ago #234741 by alkabal
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

Code:
HAL related feed : halui.feed-override.value    halui.feed-override.increase halui.feed-override.decrease

Please Log in to join the conversation.

More
4 years 8 months ago #234755 by zz912
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
 

Attachment not found


if not look at Halscope.
2) do not turn off LCNC. Open the terminal and send me a pin list.
 

Attachment not found

Please Log in to join the conversation.

More
4 years 8 months ago #234772 by alkabal
 

Attachment not found





Warning: Spoiler!

Please Log in to join the conversation.

More
4 years 8 months ago #234773 by alkabal
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
Code:
loadusr ../bin/xhc-whb04b-6 -ue
 

Please Log in to join the conversation.

More
4 years 8 months ago #234870 by zz912
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" ?
 

Attachment not found

Please Log in to join the conversation.

More
4 years 8 months ago #234884 by alkabal
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 !!)
Code:
#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

Please Log in to join the conversation.

Time to create page: 2.721 seconds
Powered by Kunena Forum