- Posts: 489
- Thank you received: 297
XHC-HB04 wireless MPG pendant HAL module
have not observed this but the device is limited by its usb (not realtime) implementation. you would have to give more details on the behavior and how to reproduce it.I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?
A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?
3rd, the Pendant always say mm and only has 3 decimal places.. is this normal ? anyone figured out how to toggle it to inch mode and 4 decimal places?
You could try more reverse engineering on the undocumented protocols used by the device to explore this.
Please Log in or Create an account to join the conversation.
- Connor9220
- Offline
- New Member
-
- Posts: 16
- Thank you received: 1
I think the encoder on the MPG is faulty.. I'm running xhc-hb04 on the command line and watching the raw output.. turning the wheel the same direction.. It will do the following..dgarrett wrote:
have not observed this but the device is limited by its usb (not realtime) implementation. you would have to give more details on the behavior and how to reproduce it.I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?
04 00 00 11 01 0C delta +1
04 00 00 11 01 0C delta +1
04 00 00 11 01 0C delta +1
04 00 00 11 00 0C
04 00 00 11 FF 0C delta -1
04 00 00 11 FF 0C delta -1
As you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction. I've tried it on both my linuxcnc sim machine, and my real machine with real-time kernel.. so, it's not anything to do with the computers, or running a realtime kernel or not.
dgarrett wrote:
A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?
In theory the [XHC_HB04_CONFIG]scales= setting could be set to the fraction 0.1 to make sequence 1 behave as .0001 .001 .01 .1 but fractional scale values are not yet supported. I will make a patch for 2.7 to improve this (the axis gui display will show the 0.0001 digit but the device display will not since it has only 3 decimal places)Code:[XHC_HB04_CONFIG] ... # sequence 1: 0.001,0.010,0.100,1.000 (mm-based machine) # sequence 2: 0.001,0.005,0.010,0.020 (inch-based machine) # sequence 3: 0.001,0.010,0.100 # sequence 4: 0.001,0.005,0.010,0.020,0.050,0.100 # sequence 5: 0.001,0.010,0.050,0.100,1.000 sequence = 3
Okay, I tried setting the sales to 0.1, but.. it only sends out a .01 after 10 ticks (looking at the DRO on axis, not on the Pendant). So.. really not useful..
3rd, the Pendant always say mm and only has 3 decimal places.. is this normal ? anyone figured out how to toggle it to inch mode and 4 decimal places?
dgarrett wrote: You could try more reverse engineering on the undocumented protocols used by the device to explore this.
Yea, they're has to be a way to flip it to inch mode.
Please Log in or Create an account to join the conversation.
yes -- that sequence looks defectiveAs you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.
Okay, I tried setting the sales to 0.1, but.. it only sends out a .01 after 10 ticks (looking at the DRO on axis, not on the Pendant). So.. really not useful..
yes, as i said:
there will be a patch soon to address fractional scalesfractional scale values are not yet supported
Please Log in or Create an account to join the conversation.
- Connor9220
- Offline
- New Member
-
- Posts: 16
- Thank you received: 1
dgarrett wrote:
yes -- that sequence looks defectiveAs you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.
Okay, I tried setting the sales to 0.1, but.. it only sends out a .01 after 10 ticks (looking at the DRO on axis, not on the Pendant). So.. really not useful..
yes, as i said:there will be a patch soon to address fractional scalesfractional scale values are not yet supported
Got the replacement Pendant and it works as expected. Bad encoder on the first one. Just waiting for the patch for fractional scales. I'm looking into seeing if the pendant supports 4 digits after the decimal place.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Connor9220
- Offline
- New Member
-
- Posts: 16
- Thank you received: 1
Please Log in or Create an account to join the conversation.