XHC-HB04 wireless MPG pendant HAL module

More
11 years 11 months ago #53103 by dgarrett

I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?

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.

2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?

A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:
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
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)

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.

More
11 years 11 months ago #53105 by Connor9220

dgarrett wrote:

I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?

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 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..

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:

2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?

A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:
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
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)


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.

More
11 years 11 months ago #53106 by dgarrett

As you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.

yes -- that sequence looks defective

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:

fractional scale values are not yet supported

there will be a patch soon to address fractional scales

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

More
11 years 11 months ago #53470 by Connor9220

dgarrett wrote:

As you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.

yes -- that sequence looks defective

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:

fractional scale values are not yet supported

there will be a patch soon to address fractional scales


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.

More
11 years 11 months ago #53471 by dgarrett

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

More
11 years 11 months ago #53539 by Connor9220
okay, so, what do you change in the config files to support .0001 ?

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

Time to create page: 0.067 seconds
Powered by Kunena Forum