Advanced Search

Search Results (Searched for: XHC)

  • CNC_Tux
  • CNC_Tux
12 Jun 2025 14:52
Replied by CNC_Tux on topic XHC-WHB04B-6 Bug

XHC-WHB04B-6 Bug

Category: HAL

Hello Rod,
Tank you so much for your answer.
yes of course, i know .... i am 2 versions behind.
If you has fixed in the new version 2.10 ... its possible to get the source code of the driver of the XHC-WHB04B-6 ?
I think this is for me faster like a complete new installation and new configuration of the Machine.
Thank you so much.
Best regards
Reinhard
  • rodw
  • rodw's Avatar
11 Jun 2025 22:05
Replied by rodw on topic XHC-WHB04B-6 Bug

XHC-WHB04B-6 Bug

Category: HAL

You are two versions behind. The first step is to install master branch (2.10) to confirm the bug it still present. It may have been fixed.
If it has been fixed, it won't find its way back into an older version of Linuxcnc.

You should report the bug as an issue on Linuxcnc's GitHub page.
 
  • CNC_Tux
  • CNC_Tux
11 Jun 2025 07:42
XHC-WHB04B-6 Bug was created by CNC_Tux

XHC-WHB04B-6 Bug

Category: HAL

Dear Community,
i hope this is the right place to describe a bug on the XHC-WHB04B-6 Driver.
My environments are LinuxCNC 2.8.4 with Debian 10.10 and 2.9.1 with Debian 12 ( in both the same issue )
If I use the XHC-WHB04B-6 part , are all functions working very well ... so far so good.
If I change from man Mode to MDI and use the jogwheel on the XHC-WHB04B-6, so change the mode from MDI back to man. Mode.
In Automatic exactly the same behavior ...... so far so good, but now the bug ....... if I do it the same on a running program, so will freeze in the XHC-WHB04B-6, because the Automatic Mode can not switch back to the man Mode.
To get open again,  ... switch off the Machine, switch off the XHC-WHB04B-6, start again the LinuxCNC, switch on the
XHC-WHB04B-6 and all will works again very well.
I looking about the HAL to find solutions about the problem, but in the HAL its impossible to fix this issue, its seems to be hard coded.
I looking to the source code, to find anything ( my knowledge in C+ or C++ have tight borders ).
I found something to fix the issue, but its not really working.
Result:
-The switch back to the man Mode is only working in Step Mode or in Con Mode, not in MPG Mode.
-It is possible to switch to Con Mode or to Step Mode on the XHC-WHB04B-6, its impossible to switch to the MPG Mode.
To switch to the MPG Mode has the driver no solution, just in the start is the XHC-WHB04-6 in the MPG Mode.
My idea, to fix this issue was in the hal.cc of the source code to switch in the MPG Mode if the CNC is in MDI or automatic Mode
and nothing will freeze in and working well.
I tried to programing a switch back to MPG Mode, without any faults in compiling the code, but isnt works.
Is anyone there in the community, with experience in C+ ; C++ for help to fix this issue ?
Thank you so much in advance.
Best regards
Reinhard
  • UweSauter
  • UweSauter
06 Jun 2025 16:29 - 06 Jun 2025 16:33

Umbau der Steuerung auf LinuxCNC + EtherCAT

Category: Deutsch

Hallo miteinander, 
 
ich habe mir vor einigen Jahren eine Portalfräse in XXYZ Konfiguration selbst gebaut. Damals hatte ich mich für eine Steuerung entschieden, die auf der Software Syntheos G2 [1] und CNCjs [2] aufbaut. Als Hardware dazu dient ein Arduino Due mit einer selbst entworfenen Platine, um an all die Ausgänge zu kommen.
Meine Achsen werden von JMC iHSV57-30-18-36 Servos angetrieben, meine Spindel ist eine Mafell FM1000PV. Außerdem ist ein Pilz PNOZ X3 Sicherheitsgerät verbaut, dass bei Nothalt u.a. die Spannungsversorgung von Spindel und Servos unterbricht.

Aus mehreren Gründen möchte ich jetzt meine Steuerung umbauen. Der wichtigste davon ist, dass die Steuerung manchmal ohne ersichtlichen Grund mitten im Programm stecken bleibt, die Spindel dann aber weiter läuft… keine gute Situation, da sie einem das Werkstück versauen kann.
 
Für meine neue Steuerung habe ich mich dazu entschieden, LinuxCNC einzusetzen und auf EtherCAT als etablierten Industriebus zu setzen. Seit einiger Zeit gibt es die JMC Servos auch in einer EtherCAT Variante, sodass ich auf Schnittstellenkarten zur Erzeugung von Schritt- und Richtungspulsen verzichten kann. Zusätzlich möchte ich meine Achsen noch mit einem zweiten Limit-Switch ausstatten und ein XHC WHB04b-6 Handrad hinzufügen.
Es steht allerdings noch die Entscheidung aus, ob ich einen Laptop (Thinkpad T400 oder T430) oder einen Raspberry Pi 4 oder 5 als Fräsrechner verwende.
 
Bevor ich jetzt allerdings meine funktionierende Fräse auseinander nehme möchte ich die neue Steuerung in einem Testaufbau in Betrieb nehmen.

Dank der guten Beschreibung hier im Forum hatte ich kein Problem, die grundsätzliche EtherCAT Funktionalität einzurichten. Ich sehe alle Schnittstellenkarten und Servos und kann den Status der Ein- und Ausgänge auslesen. Allerdings fehlt mir irgendwie noch ein kleines, aber entscheidendes Stück Verständnis, wie die INI und HAL Dateien aufzubauen sind… vielleicht wäre jemand so hilfsbereit und würde eine funktionierende Konfiguration veröffentlichen? Natürlich nur als Spickzettel, um daraus zu lernen.
 
Es folgt eine Detailübersicht über den aktuellen Aufbau der Steuerung:

 1 Laptop oder Raspi, mit USB Empfänger für das XHC WHB04b-6 Handrad, verbunden mit
 2 Beckhoff EK1100 Buskoppler
 3 Beckhoff EL1018 8-fach Digitaleingangskarte 10µs
 4 Beckhoff EL1018 8-fach Digitaleingangskarte 10µs
 5 Beckhoff EL2008 8-fach Digitalausgangskarte 0,5A 
 6 Beckhoff EL2008 8-fach Digitalausgangskarte 0,5A
 7 Beckhoff EL2024 4-fach Digitalausgangskarte 2,0A
 8 Beckhoff EL4104 4-fach Analogausgangskarte 0-10V
 9 Beckhoff EK1122 2-fach EtherCAT Abzweig
10 JMC iHSV57-30-18-36-EC für X1-Achse
11 JMC iHSV57-30-18-36-EC für X2-Achse
12 JMC iHSV57-30-18-36-EC für Y-Achse
13 JMC iHSV57-30-18-36-EC für Z-Achse

Die Ein- und Ausgänge sind wie folgt belegt:

 3.1 Limit-Switch X1 Min+Referenz
 3.2 Limit-Switch X1 Max
 3.3 Limit-Switch X2 Min+Referenz
 3.4 Limit-Switch X2 Max
 3.5 Limit-Switch Y Min+Referenz
 3.6 Limit-Switch Y Max
 3.7 Limit-Switch Z Min+Referenz
 3.8 Limit-Switch Z Max

 4.1 Werkzeuglängensensor
 4.2 Erkennung Nothalt (von Ausgang Sicherheitsgerät)
 4.3 Überwachung Spannungsversorgung Servos
 4.4 - 4.8 zur Zeit nicht belegt

 5.1 - 5.8 zur Zeit nicht belegt

 6.1 - 6.8 zur Zeit nicht belegt

 7.1 Ansteuerung Spannungsversorgung Frässpindel
 7.2 Ansteuerung Spannungsversorgung Absaugung
 7.3 - 7.4 zur Zeit nicht belegt

 8.1 Drehzahlsteuerung Frässpindel
 8.2 - 8.4 zur Zeit nicht belegt

Für die Konfiguration der Servos habe ich hier im Forum letztlich zwei unterschiedliche Möglichkeiten gefunden. Zum einen als "normales" CIA402 kompatibles Gerät oder, indem man die Konfiguration über PDOs selber macht. Gibt es dazu Empfehlungen? Ich hänge mal beide XML dazu an.

Ich würde mich über jeden Schubs in die richtige Richtung und über jede Hilfe freuen.
Da ich mir sicher bin, dass ich nicht alle notwendigen Informationen hier im ersten Post mitgeliefert habe, lasst mich wissen, was noch fehlt. Bei Interesse mache ich auch gerne Bilder von Fräse und Testaufbau.

Vielen Dank für die Unterstützung,

  Uwe

[1] github.com/synthetos/g2
[2] cnc.js.org/
  • akim14
  • akim14
13 May 2025 10:01

LinuxCNC Dual-Head Gantry Setup Assistance Request

Category: General LinuxCNC Questions

Just a heads-up for anyone wrestling with the XHC-WHB04B-6 like I was: relax, it's easier than it looks! Turns out, it's mostly a copy-paste job. My mistake was overthinking it. Make sure your drivers are good to go, create that xhc-whb04b-6.hal file, and pop HALFILE = xhc-whb04b-6.hal into your INI. Then, grab everything from raw.githubusercontent.com/LinuxCNC/linux...ple-configuration.md and paste it in. Tidy it up by removing what you don't need, and if LinuxCNC complains about a line, just delete it until it's happy. Hopefully, this saves someone else the headache!
  • akim14
  • akim14
13 May 2025 03:54

LinuxCNC Dual-Head Gantry Setup Assistance Request

Category: General LinuxCNC Questions

Wow, that's amazing. Did each of the eight heads move on the X-axis independently? I wish you could help me; I think I bit more than I can chew. I downloaded your files, and I feel lost. I am trying to retrofit this bystronic dual head water jet, it looks like a mess. I have all the axis moving, but I can't get the XHC-WHB04B-6 to work. I have not picked a GUI yet, and I  have no clue of how to modify  one , it sounds easy reading about things but doing it seem to be another issue, I just really need help  
  • Roger S
  • Roger S
10 May 2025 09:14 - 10 May 2025 09:23
Replied by Roger S on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

Hello Hakan
I hope I did everything correctly. Here's the result of lspci -k:
00:00.0 Host bridge: Intel Corporation Device 461c
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Device 4164
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-N [UHD Graphics]
    DeviceName: Onboard - Video
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N [UHD Graphics]
    Kernel driver in use: i915
    Kernel modules: i915
00:14.0 USB controller: Intel Corporation Alder Lake-N PCH USB 3.2 xHCI Host Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH USB 3.2 xHCI Host Controller
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Alder Lake-N PCH Shared SRAM
    DeviceName: Onboard - Other
00:16.0 Communication controller: Intel Corporation Alder Lake-N PCH HECI Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH HECI Controller
    Kernel driver in use: mei_me
    Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Alder Lake-N SATA AHCI Controller
    DeviceName: Onboard - SATA
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N SATA AHCI Controller
    Kernel driver in use: ahci
    Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation Alder Lake-N PCI Express Root Port
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCI Express Root Port
    Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation Alder Lake-N PCI Express Root Port
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCI Express Root Port
    Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Alder Lake-N PCI Express Root Port
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCI Express Root Port
    Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Alder Lake-N PCH eSPI Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH eSPI Controller
00:1f.3 Audio device: Intel Corporation Alder Lake-N PCH High Definition Audio Controller
    DeviceName: Onboard - Sound
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH High Definition Audio Controller
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Alder Lake-N SMBus
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N SMBus
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-N SPI (flash) Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N SPI (flash) Controller
01:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-LM (rev 04)
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Ethernet Controller I226-LM
    Kernel driver in use: igc
    Kernel modules: igc
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-LM (rev 04)
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Ethernet Controller I226-LM
    Kernel driver in use: igc
    Kernel modules: igc
03:00.0 Non-Volatile memory controller: Transcend Information, Inc. NVMe PCIe SSD 110S/112S/120S/MTE300S/MTE400S/MTE652T2 (DRAM-less) (rev 03)
    Subsystem: Transcend Information, Inc. NVMe PCIe SSD 110S/112S/120S/MTE300S/MTE400S/MTE652T2 (DRAM-less)
    Kernel driver in use: nvme
    Kernel modules: nvme
  • cekaa
  • cekaa's Avatar
06 May 2025 19:39

Ls L7nh CİA402 servo Drive ethercat op and preop problems

Category: EtherCAT

Mr. Hakan, I followed your posts a lot and I have come a long way.

your first question  (  I tried to try the xml in this video but it gives an error )

main pc ==  (cadenceautomation.ca/wp-content/uploads/...l-pc-ds-gfa1985c.pdf)
slim model endustrial pc profesyonel

To be more descriptive

in the same pc with the same ethercat card 4 xinje ethercat servo motors in addition ek1100 el 2809 el2808 inputs and outputs work without any problems even with inductive sensors and homes etc.
ls l7nh one all connected then one only then two then three at once incredible


cnc@debian:~$ uname -a
Linux debian 6.1.0-23-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
cnc@debian:~$ lshw -C
bash: lshw: command not found
cnc@debian:~$ lshw -C network
bash: lshw: command not found
cnc@debian:~$ sudo lshw
[sudo] password for cnc:
sudo: lshw: command not found
cnc@debian:~$ sudo lshw -class network
sudo: lshw: command not found
cnc@debian:~$ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 PCI bridge: Pericom Semiconductor PI7C9X20508GP PCI Express Switch 5Port-8Lane (rev 01)
02:01.0 PCI bridge: Pericom Semiconductor PI7C9X20508GP PCI Express Switch 5Port-8Lane (rev 01)
02:02.0 PCI bridge: Pericom Semiconductor PI7C9X20508GP PCI Express Switch 5Port-8Lane (rev 01)
02:03.0 PCI bridge: Pericom Semiconductor PI7C9X20508GP PCI Express Switch 5Port-8Lane (rev 01)
02:04.0 PCI bridge: Pericom Semiconductor PI7C9X20508GP PCI Express Switch 5Port-8Lane (rev 01)
03:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
04:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
05:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
06:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
08:00.0 Serial controller: Pericom Semiconductor Device 7954
cnc@debian:~$
  • vre
  • vre
06 May 2025 15:10
Replied by vre on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

When i start this pendant must push continuous mode button for jogging with
wheel is not press continuous it changes feedrate override.
How can fix this ?
  • vre
  • vre
05 May 2025 17:27

XHC-HB04 wireless MPG pendant HAL module

Category: HAL

There is also a bug with XHC-HB04 with ferror i had set it to feed-spindle override
and show me ferror to Z axis when rotated quick the encoder wheel.
  • Aciera
  • Aciera's Avatar
25 Apr 2025 06:59
Replied by Aciera on topic XHC-HB04 Pendant, Solving Jerky Movement

XHC-HB04 Pendant, Solving Jerky Movement

Category: Basic Configuration

Best way to get code changes for specific hardware into master would be to create a pull request with the description of the issue and the proposed (and tested) changes.
github.com/LinuxCNC/linuxcnc
  • vre
  • vre
24 Apr 2025 19:28

XHC-HB04 Pendant, Solving Jerky Movement

Category: Basic Configuration

Can these settings pushed to master?
because with default configuration i have also the same problem...
  • vre
  • vre
24 Apr 2025 15:08

XHC-HB04 wireless MPG pendant HAL module

Category: HAL

Some easier way to do this ?
This code github.com/LinuxCNC/linuxcnc/blob/master.../hallib/xhc-hb04.tcl
creates hal pins pendant_util.X can do something with these pins?
  • COFHAL
  • COFHAL
24 Apr 2025 10:47
Replied by COFHAL on topic XHC-HB04 wireless MPG pendant HAL module

XHC-HB04 wireless MPG pendant HAL module

Category: HAL

You have to use an OR comparator, to connect two inputs to a single output.
  • vre
  • vre
24 Apr 2025 09:23

XHC-HB04 wireless MPG pendant HAL module

Category: HAL

I have already configured in hal cycle start pause stop external buttons
and spindle start stop external buttons and when i start linuxcnc it reports that
these signals already used and can't used by XHC-HB04.
How can i use both the external buttons and XHC-HB04 together without conflict ?
Displaying 1 - 15 out of 76 results.
Time to create page: 0.758 seconds
Powered by Kunena Forum