- Posts: 476
- Thank you received: 0
XHC-WHB04B-6 LinuxCNC not working
6 years 6 months ago #162507
by alkabal
Replied by alkabal on topic XHC-WHB04B-6 LinuxCNC not working
Hi
Ok thanks for suggestion i will check for some motion.pin.
But only for stuff that can be used when program.is.running ? (like spindle override and feed override)
Except that a pendant is mostly a user component, or i'm wrong ?
i have do some test using halui.max-velocity.value * feed-button-position * 0.01 and i see the machine cant' move more than 16mm with one pulse but off course i think is better to use smaller value.
resulting value :
2% : 70 x 2 x 0.01 = 1.4 = move 1.4mm
5% : 70 x 5 x 0.01 = 3.5 =move 3.5mm
10% : 70 x 10 x 0.01 = 7 = move 7mm
30% : 70 x 30 x 0.01 = 21 = move 16mm
60% : 70 x 60 x 0.01 = 42 = move 16mm
100% : 70 x 100 x 0.01 = 70 = move 16mm
Ok thanks for suggestion i will check for some motion.pin.
But only for stuff that can be used when program.is.running ? (like spindle override and feed override)
Except that a pendant is mostly a user component, or i'm wrong ?
Is this have more sense ? "In Mpg mode the step speed is in percent of max-velocity"
(if yes the good pin it is halui.max-velocity.value for calc ?)
i have do some test using halui.max-velocity.value * feed-button-position * 0.01 and i see the machine cant' move more than 16mm with one pulse but off course i think is better to use smaller value.
resulting value :
2% : 70 x 2 x 0.01 = 1.4 = move 1.4mm
5% : 70 x 5 x 0.01 = 3.5 =move 3.5mm
10% : 70 x 10 x 0.01 = 7 = move 7mm
30% : 70 x 30 x 0.01 = 21 = move 16mm
60% : 70 x 60 x 0.01 = 42 = move 16mm
100% : 70 x 100 x 0.01 = 70 = move 16mm
Please Log in to join the conversation.
6 years 6 months ago #162512
by alkabal
Replied by alkabal on topic XHC-WHB04B-6 LinuxCNC not working
I see any nothing usefull in motion pin
Attachment not found
Please Log in to join the conversation.
6 years 6 months ago #162515
by andypugh
USB ones are, yes.
MPGs connected by ABZ wires to encoder counters in HAL and buttons connected to HAL can be realtime all the way.
Replied by andypugh on topic XHC-WHB04B-6 LinuxCNC not working
alkabal wrote: Except that a pendant is mostly a user component, or i'm wrong ?
USB ones are, yes.
MPGs connected by ABZ wires to encoder counters in HAL and buttons connected to HAL can be realtime all the way.
Please Log in to join the conversation.
6 years 6 months ago #162527
by alkabal
Replied by alkabal on topic XHC-WHB04B-6 LinuxCNC not working
Ok i understand, but in all way i can't see any motion override or jog related pin.
I have do a big cleaning for source code and use max-velocity for mpg
Two more stuff liked but no idea for do this for now
-swap spindle speed displayed on the pendant from Override % to Current-velocity regarding to used button (spindle+/+ or override+/-)
-Restore the MPG/CON/STEP usage for now the code force MPG at startup and does not allow to use the CON mode.
I have do a big cleaning for source code and use max-velocity for mpg
Two more stuff liked but no idea for do this for now
-swap spindle speed displayed on the pendant from Override % to Current-velocity regarding to used button (spindle+/+ or override+/-)
-Restore the MPG/CON/STEP usage for now the code force MPG at startup and does not allow to use the CON mode.
Please Log in to join the conversation.
6 years 6 months ago #162632
by alkabal
Replied by alkabal on topic XHC-WHB04B-6 LinuxCNC not working
Hi
I have forked Lcnc master and add the revised driver, i like if you can check and says if i can ask to PR ?
Br
github.com/alkabal/linuxcnc
I have forked Lcnc master and add the revised driver, i like if you can check and says if i can ask to PR ?
Br
github.com/alkabal/linuxcnc
Please Log in to join the conversation.
6 years 6 months ago #162995
by alkabal
Replied by alkabal on topic XHC-WHB04B-6 LinuxCNC not working
Any help wanted for variable sharing from different class ??
github.com/alkabal/linuxcnc/commit/8c83d...442dd4b7210fceafe791
github.com/alkabal/linuxcnc/commit/8c83d...442dd4b7210fceafe791
Please Log in to join the conversation.
- MarcoGaspar
- Offline
- Premium Member
-
Less
More
- Posts: 90
- Thank you received: 0
6 years 6 months ago #164475
by MarcoGaspar
Replied by MarcoGaspar on topic XHC-WHB04B-6 LinuxCNC not working
Hello,
I installed Debian 9 and linuxcnc 2.9 and try to setup my xhc-whb04b-4 to work but with no luck.
When starting linuxcnc and i get error:
Debug file information:
Note: Using POSIX realtime
failed to allocate HAL memory
./xhc-whb04b-6.hal:29: waitpid failed xhc-whb04b-6 xhc-whb04b-6
./xhc-whb04b-6.hal:29: xhc-whb04b-6 exited without becoming ready
But if i run
halrun
loadusr xhc-whb04b-6 -ue
It connects and show all the info from pendant.
What can i do?
I installed Debian 9 and linuxcnc 2.9 and try to setup my xhc-whb04b-4 to work but with no luck.
When starting linuxcnc and i get error:
Debug file information:
Note: Using POSIX realtime
failed to allocate HAL memory
./xhc-whb04b-6.hal:29: waitpid failed xhc-whb04b-6 xhc-whb04b-6
./xhc-whb04b-6.hal:29: xhc-whb04b-6 exited without becoming ready
But if i run
halrun
loadusr xhc-whb04b-6 -ue
It connects and show all the info from pendant.
What can i do?
Please Log in to join the conversation.
6 years 6 months ago #164484
by alkabal
Replied by alkabal on topic XHC-WHB04B-6 LinuxCNC not working
Have you use last buildbot or compil yourself from master ?
Can you attach your config file ini and hal ? mostly for see the loadusr cmd (loadusr -W xhc-whb04b-6 -Hsf)
Can you attach your config file ini and hal ? mostly for see the loadusr cmd (loadusr -W xhc-whb04b-6 -Hsf)
Please Log in to join the conversation.
- MarcoGaspar
- Offline
- Premium Member
-
Less
More
- Posts: 90
- Thank you received: 0
6 years 6 months ago #164487
by MarcoGaspar
Replied by MarcoGaspar on topic XHC-WHB04B-6 LinuxCNC not working
compiled:
git clone github.com/LinuxCNC/linuxcnc linuxcnc-dev
cd linuxcnc-dev
cd src
./autogen.sh
./configure --with-realtime=uspace
make
sudo make setuid
it's only a test config, i will be using mesa 7i96e
git clone github.com/LinuxCNC/linuxcnc linuxcnc-dev
cd linuxcnc-dev
cd src
./autogen.sh
./configure --with-realtime=uspace
make
sudo make setuid
it's only a test config, i will be using mesa 7i96e
Please Log in to join the conversation.
6 years 6 months ago #164496
by alkabal
Replied by alkabal on topic XHC-WHB04B-6 LinuxCNC not working
imo remove the [XHC_WHB04B_6_CONFIG]COMPONENT_ARGUMENTS i have some problem with this in the past
good one"loadusr -W xhc-whb04b-6 -H" or "loadusr -W xhc-whb04b-6 -Hsf"
But where did you get the "xhc-whb04b-6.hal" because i see something related to original component for machinekit ???
You need to use the one "example-configuration.md" in the source folder and rename to "xhc-whb04b-6.hal"
You can add "sf" args for use lead and Mpg mode for feed and spindle override
I use the same card 7i96e but a run in place instal
good one"loadusr -W xhc-whb04b-6 -H" or "loadusr -W xhc-whb04b-6 -Hsf"
But where did you get the "xhc-whb04b-6.hal" because i see something related to original component for machinekit ???
You need to use the one "example-configuration.md" in the source folder and rename to "xhc-whb04b-6.hal"
You can add "sf" args for use lead and Mpg mode for feed and spindle override
I use the same card 7i96e but a run in place instal
Please Log in to join the conversation.
Time to create page: 0.178 seconds
