Advanced Search

Search Results (Searched for: XHC)

  • TooTall18T
  • TooTall18T's Avatar
29 Dec 2024 09:00

LinuxCNC 2.9.x hand wheel xhc-whb04b OFF/ON problem

Category: Installing LinuxCNC

A wireless one is no option for me.
The only way to use it now, is not to use the ON/OFF switch. But I know that I will use it instinctively.

I hope there will be a fix for this.
  • MaHa
  • MaHa
28 Dec 2024 15:17

LinuxCNC 2.9.x hand wheel xhc-whb04b OFF/ON problem

Category: Installing LinuxCNC

I had the same problem. It was working after start, when turn on again, in terminal it was cycling endless through connecting - disconnecting.
I have a wireless one, maybe 10 years old, and this worked until 2.7.14  After upgrading to 2.8  ,the wireless device showed this behaviour, but the wired device worked then.
And now, version 2.9 wants the wireless device. This was on 3 Pc, HP800 G2 and G3, always the same. As the old wireless device is working, no further action was required
 
  • TooTall18T
  • TooTall18T's Avatar
28 Dec 2024 13:46

LinuxCNC 2.9.x hand wheel xhc-whb04b OFF/ON problem

Category: Installing LinuxCNC

I have a problem with my hand wheel xhc-whb04b (wired version) on my machine.
A few weeks ago I have installed LinuxCNC 2.9.3(iso) on my mill pc, but I missed to configure my hand wheel. Yesterday I wanted to do so.
So I made a new HAL-file from the 2.8 documentation , insert the lines for halui inside the ini-file, added the .rules-file and reload it with udevadm.

When I start LinuxCNC and the hand wheel is ON, it works.
When LinuxCNC is running and I switch the hand wheel ON for the first, it works too.
But If I switch it OFF and ON again, when Lcnc is running, I can see totally wrong position values and after a few seconds it switches to Lost RF. I need to restart LinuxCNC to get the hand wheel back to work.

I try this on a virtual machine with Lcnc 2.9.1, 2.9.2 and 2.9.3 with the same problem.
On my milling pc is also my old 2.8.4(deb10) installation and there is no problem with it.

When I start "/usr/bin/xhc-whb04b-6 -p" on 2.8.4 I can switch it OFF and ON and the program is still running. If I do it on 2.9.x it stops working after the first turn off.
I also copied the file from 2.8.4 to 2.9.x with the same result.

Does anyone else have this problem?
  • DeckelCNC
  • DeckelCNC
30 Nov 2024 21:42
Replied by DeckelCNC on topic Leadshine EL8 Servo Drives - EtherCAT

Leadshine EL8 Servo Drives - EtherCAT

Category: Advanced Configuration

Thank you for the reply's

Kworm : i think i have the pdo's right in the drive Vs the terminal output Vs the .xml ? please let me know if i am not understanding correctly. Thank you for your time. 

Warning: Spoiler!


Aciera (sorry i thought it was better to upload files that made no errors, but not actually working)
i have been reading and come across a post about a Youtuber called Marco Reps ? i thought it would be a idea to apply some of the methods i found in these files. so i have changed things from my first post, and i am now getting errors again / LinuxCNC is not opening.  this looks to be the main issue ?  EL8_machine.hal:41: Pin 'lcec.0.0.cia-statusword' does not exist

i have included the Error report + the .xml + .hal + .ini
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.3
Machine configuration directory is '/home/edmuser/linuxcnc/configs/sim.axis-3'
Machine configuration file is 'EL8_machine.ini'
INIFILE=/home/edmuser/linuxcnc/configs/sim.axis-3/EL8_machine.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./EL8_machine.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
./EL8_machine.hal:41: Pin 'lcec.0.0.cia-statusword' does not exist
55850
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

.XML File

Warning: Spoiler!


.HAL

Warning: Spoiler!


.ini

Warning: Spoiler!

 
  • csurimilan
  • csurimilan
25 Nov 2024 08:45
Replied by csurimilan on topic Remora - ethernet NVEM / EC300 / EC500 cnc board

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Hello everyone, I had a lot of trouble to find a stable motion controller. First I bought an EC500 and i was trying to run with mach3. It was horrible. So i bought a 2nd card XHC (if i remember well) also wanted to run with mach3 but was still not good. Was better already. After a lot of people suggested me to try linuxcnc. So i sent the XHC motion controller back and currently im struggling with my old motion controller (ec500).The prozessor is an rt1052 and i found a firmware from github (remora from scottalford75).I changed the firmware. Im trying to adjusting the settings with the .ini and .hal files. I was able to move the motors and use home switches. My problem is now that if I jog with my keyboard and after i dont press anything sometimes the motors still do 1 or 2 steps. And i cant figure out why. Maybe someone has the same motion controller with linuxcnc or could help me?Thank you
  • mBender
  • mBender
17 Nov 2024 03:21

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

I changed the Y Axis motors back to the Nema 23 with the DM332T driver. 3200 Microsteps/rpm and I can go up to 6000mm/min without an issue.
Handwheel xhc-whb04b-6 is working as well.

Now I am focusing on getting Modbus and the spindle to work. This is the last thing I need to run the mill with the Tang. Can someone confirm that this wiring is correct for the Max485?
 
  • digiex_chris
  • digiex_chris
07 Nov 2024 21:17

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Below is the current set up as of last night. Bench testing worked as expected. It goes from there to a Parallel port break out board. This allwos me to use my machine with LinuxCNC and laserGRBL with just changing a plug. I tried to find out the current rating of the 3.3V and 5V power supply of the Tang Nano 9k. According to the schematics, it seems like that there is a TMI7003C DC/DC Step down, which gets it's 5V directly from the USB C port. If I read it correct, it can supply a max current of 1.5A total. That'a including the power for the FPGA,...It seems like the each Output of the Tang can drive up to 24mA. Which obviusley need to be deducted from the 1.5A plus the other current demands of the FPGA board. Still I believe there is plenty of current to drive secondary operations.The 1.8V needed for Bank 3 is not availbale at FPGA board. I was wondering if I could just use 1 or 2 1.8V outputs, set them pernantley to high and use them as supply voltage for any leverl shifter at Bank3. Opinions? 

 

My personal plan if I needed more gpio was to ignore the 1.8v pins and using the 3.3v pins either use a shift register, see if I could add i2c GPIO expansion support such as the mcp23017, or reserve the FPGA purely for estop, home pins, and steppers and use something else for things like MPG controls and such. github.com/wezhunter/ESP32_LinuxCNC_MotionController_RealTime perhaps, since I have a pile of esp32S2's around. 
I also ended up with a XHC WHB04B-6 wireless MPG that currently satisfies 90% of my control needs, so I don't have a lot of willpower to make a UI that needs a lot of GPIO.

I know that doesn't solve your problem, but just thought I'd mention it for ideas. 

Also, a common LM317 is easy to make it output 1.8v from from the 5v input, as another option. 2 capacitors and 2 resistors. It's hard to even burn them out, they shut themselves down with overcurrent.


 
  • zmrdko
  • zmrdko's Avatar
06 Nov 2024 10:56
Replied by zmrdko on topic XHC WHB04b-6 - Disconnects / freezes?

XHC WHB04b-6 - Disconnects / freezes?

Category: Basic Configuration

you need to buy something like this.
 

then you take it apart and find out how its wired.
Usually the side button enables the MPG encoder - for safety.

and then you have to connect all wires to your mesa card or whatever interface are you using.
and make hal file for it:
linuxcnc.org/docs/html/examples/mpg.html
 
  • CNC_Tux
  • CNC_Tux
05 Nov 2024 11:48
Replied by CNC_Tux on topic XHC WHB04b-6 - Disconnects / freezes?

XHC WHB04b-6 - Disconnects / freezes?

Category: Basic Configuration

Hello zmrdko,
have you an example for me, how is to do?
Thank you so much in advance
Best regards
Reinhard
  • zmrdko
  • zmrdko's Avatar
05 Nov 2024 08:46
Replied by zmrdko on topic XHC WHB04b-6 - Disconnects / freezes?

XHC WHB04b-6 - Disconnects / freezes?

Category: Basic Configuration

i have the same MPG and on linuxcnc 2.9.3 and I am experiencing same disconnects.
I support Mecanix opininon - the MPG should be hard wired.
  • CNC_Tux
  • CNC_Tux
05 Nov 2024 07:00
Replied by CNC_Tux on topic XHC WHB04b-6 - Disconnects / freezes?

XHC WHB04b-6 - Disconnects / freezes?

Category: Basic Configuration

Hello Community,
i ve the same problem with disconnects and freezes of the WHB04-6 and i think its not a matter of the Linuxcnc Version, its a matter of the source code of the WHB04.
I use Linuxcnc 2.8.4 and gmoccapy with a XHC-WHB04-6 and its working in manual mode very well, but if i move the Jogwhheel in the Mode MDI or in Auto will switch the WHB04 to manual mode.
The problem start if i use the mode Auto and a program is running and i move in this time the Jogwheel ... then i get a fault message " its impossible to switch from Auto to manual mode in a running program" after will freeze the WHB04 in.
I search in the HAL for a solution, but the switch function is programed ( so i suppose ) in the source code.
I think the fault chain start earlier, with the functions "mpg" , "con" and "stp"
With the function "mpg" (directly after start of gmoccapy) is working the Jogwheel at the feeding rate ..... after press on the Button "con" or "stp" is impossible to switch back to "mpg".
Have anybody a solution for this kind of problem?

Thank you so much in advance

Best regards
Reinhard
  • chrisfischer
  • chrisfischer
08 Sep 2024 16:35
Replied by chrisfischer on topic XHC-WH04b USB not detected in front port

XHC-WH04b USB not detected in front port

Category: General LinuxCNC Questions

I have the same problem here with the WH04B-6. Cant see the device on any ports. I checked my bios and the legacy usb is already enabled. i enabled some other usb stuff with no results. Any luck fixing this?
  • Mecanix
  • Mecanix
27 Aug 2024 08:07 - 27 Aug 2024 08:09
Replied by Mecanix on topic XHC WHB04b-6 - Disconnects / freezes?

XHC WHB04b-6 - Disconnects / freezes?

Category: Basic Configuration

Alright a few other related forum posts (forum.linuxcnc.org/gmoccapy/34296-xhc-hc04-lost-connection, forum.linuxcnc.org/38-general-linuxcnc-q...-hb04-pendant-issues) convinced me to upgrade LinuxCNC, which appears to have solved the issue.

I upgraded from 2.8 to 2.9.3.
 

I have the same MPG, which I only use for the macro buttons for when I'm far from the controller and doing manual fixture setup and other non-automation related tasks. Regardless of the Lcnc version that MPG is near if not close to being useless. Similar to the keyboard, it's quite dangerous ($$$) I would like to add. There is no CRC neither data integrity to that thing and so, don't complain if it decides to randomly wander either sides and crash your >5k worth spindle into something... you get the idea. 

A safe & honest MPG requires to be hard wired. Only hardware that is legally allowed to move my axis here (no keyboard, no wifi, nothing else). 
  • gardenweazel
  • gardenweazel's Avatar
27 Aug 2024 01:36
Replied by gardenweazel on topic QTDragon spindle raise issues

QTDragon spindle raise issues

Category: Qtvcp

The halui.pause nad halui.resume are coming from the xhc-whb04b-6.hal file.

I'm not sure how to change those entries.

17 # program related signals
  18 net pdnt.program.is-idle                  whb.halui.program.is-idle             halui.program.is-idle
  19 net pdnt.program.is-paused                whb.halui.program.is-paused           halui.program.is-paused
  20 net pdnt.program-is-running               whb.halui.program.is-running          halui.program.is-running
  21 net pdnt.program.resume                   whb.halui.program.resume              halui.program.resume
  22 net pdnt.program.pause                    whb.halui.program.pause               halui.program.pause
  23 net pdnt.program.run                      whb.halui.program.run                 halui.program.run
  24 net pdnt.program.stop                     whb.halui.program.stop                halui.program.stop
 
Displaying 31 - 45 out of 101 results.
Time to create page: 0.673 seconds
Powered by Kunena Forum