Advanced Search

Search Results (Searched for: XHC)

  • Lampje
  • Lampje
11 Apr 2025 17:09

Mill setup troubles and questions (Speed display, at speed signal, coolant pump)

Category: General LinuxCNC Questions

Good day hivemind.

I've been struggling with getting my mill up and running. It's running from an Mesa 5i25 / 7i76 (par port) controller, Leadshine HBS86H driver / 86HBM80C-1000 motor (closed-loop) at 70VDC; 1000PpR. And a BEST FC300-2.2G-S2-B4 VFD.
Attached is a zip with the config files.
Eventually i got it mostly functioning.
I got my homing to work.
Got my pendant (old XHC HB04) to work and operate the axis/spindle/feed.
I reserved a few inputs to add limit switches (at end of stroke). Might want to add extra past-home limits too to prevent overshoots. Setting the homing sensors to act as home and limit (PNCConf option) just gave errors when running LinuxCNC( can't start, limit switch active or something along those lines).

What is left:
Speed!. we want it....
I have a high speed spindle on a VFD (0-10v input, no feedback (jet?)). 24000rpm@400hz. No problems there.
When i turn the spindle on, the speed on screen reads as 300rpm at 100% and the VFD runs up to it's 400Hz max. Turning down to 50%, the VFD goes to 200hz and 12000RPM. But the screen reeds 150rpm.
The speed bar under the speed and % reeds " 0                0                  6000"
And the "at speed" dot doesn't turn green. I do have that output from the VFD connected to the board.

How do I get the display to show the true RPM?
Can the 0-10v output from the VFD be connected to the 7i76 as speed feedback?
*****************
Next question:
I also have a relay on TB6-output2 to which the spindle coolant pump is wired. How do I get that 'programed' to turn it on when the spindle is running? (and perhaps add a function to the pendent to manually turn it on/off too?).

TIA,
Niels
  • Aciera
  • Aciera's Avatar
27 Mar 2025 15:48
Replied by Aciera on topic xhc-hb04 basic setup in 2.8

xhc-hb04 basic setup in 2.8

Category: Advanced Configuration

Note that if you copy/pasted stuff from this earlier post the debounce stuff is actually commented out so you likely wont need it:
forum.linuxcnc.org/10-advanced-configura...n-2-8?start=0#155864

if your scale is that small then it's not really surprising that there is no movement so I would suggest to set change these two lines
setp mult2Lowpass.in1 0.001
setp halui.feed-override.scale 0.00001

To this:
setp mult2Lowpass.in1  1.0
setp halui.feed-override.scale  1.0
  • Lampje
  • Lampje
27 Mar 2025 14:00
Replied by Lampje on topic xhc-hb04 basic setup in 2.8

xhc-hb04 basic setup in 2.8

Category: Advanced Configuration

ok. so i found that there was no line for the A-axis in the main HAL file.. Added that one, and now that input shows up as well.
However, still no movement.
  • Lampje
  • Lampje
27 Mar 2025 13:01
Replied by Lampje on topic xhc-hb04 basic setup in 2.8

xhc-hb04 basic setup in 2.8

Category: Advanced Configuration

Hi Aciera,

What would be the loadrt and addf lines for the debounce?

As for the jog pins. They are lighting up in the halshow. However, axis A doesn't.
Counts value changes. The scale is another thing. At 1x it shows 1e-6. At 10x it shows 1e-5. And finally at 100x it shows as 0.0001. At 100x the count changes per 1000 pulses/counts.
As stated in the earlier, edited, posts the feed and spindle values do change in the interface.
  • Aciera
  • Aciera's Avatar
27 Mar 2025 12:33
Replied by Aciera on topic xhc-hb04 basic setup in 2.8

xhc-hb04 basic setup in 2.8

Category: Advanced Configuration

You seem to be missing 'loadrt' and 'addf' lines for the 'debounce' component.
#setp  debounce.0.delay 1500
#net homeButton       xhc-hb04.button-home =>    debounce.0.4.in
#net homeCmd          debounce.0.4.out  => halui.home-all

Once the config is running you can use the 'Halconfiguration' tool by going to the settings page in gmoccapy and clicking on the button on the bottom right corner.
Then you can change to the Watch tab and select the pins 'axis.L.jog-enable', 'axis.L.jog-counts', 'axis.L.jog-scale' from the selector tab on the left ('L' being the axis letter you are testing). Confirm that '-enable' is true, '-counts' are changing when you turn the wheel on the pendant and that '-scale' is set to a sensible value.
  • Lampje
  • Lampje
27 Mar 2025 11:44 - 27 Mar 2025 12:51
Replied by Lampje on topic xhc-hb04 basic setup in 2.8

xhc-hb04 basic setup in 2.8

Category: Advanced Configuration

OK. Here are the config files.
Anything in them that would hinder the jog wheel from working?
Edit1: Looking into the toolheight setter not ' responding' I found the HalShow button. Here the jog count is changing as I rotate it. so the signals are received by LinuxCNC. It's just not used or something. (BTW had the input pin for the probe wrong it was set to 31 but wired to pin 21...)
Edit2: the jog wheel works for the spindle and feed rate. But not on any of the 4 axis.

Also the debounce issue in the xhc-hb04.hal? "./xhc-hb04.hal:47: parameter or pin 'debounce.0.delay' not found"

I'm currently running the gmoccapy 3.4.9 GUI for LinuxCNC.
btw. any tips for a touchscreen interface (not Touchy)?
  • Aciera
  • Aciera's Avatar
26 Mar 2025 19:17
Replied by Aciera on topic xhc-hb04 basic setup in 2.8

xhc-hb04 basic setup in 2.8

Category: Advanced Configuration

You might want to attach your config files so people get an idea of what you are doing.
  • Lampje
  • Lampje
26 Mar 2025 17:25
Replied by Lampje on topic xhc-hb04 basic setup in 2.8

xhc-hb04 basic setup in 2.8

Category: Advanced Configuration

I'm fighting with the setup of my HB04.
Simply copying over the files and adding the HAL and HALUI lines in the ini file didn't work.
Adding the loadusr line to the ini did help.
Then i ran into the error that pin "halui.spindle-override.counts" didn't exist (running 2.9.4) changed it to "halui.spindle.0-override.counts" but that gives me the same error.
#-ing out all the ofending lines till i got LinuxCNC to run worked, then in the terminal checked the pin's with "halcmd show pin" and fond that it has a different name. "halui.spindle.0.override.counts"

I now see the display matches, and updates to what the screen coordinates show. However, the jog wheel doesn't move the spindle/coordinates.
Any tips?
  • Muftijaja
  • Muftijaja
25 Feb 2025 20:51
Replied by Muftijaja on topic 7i76e - Spindle FWD/ENA ok, but no speed output

7i76e - Spindle FWD/ENA ok, but no speed output

Category: Basic Configuration

Ok, I didnt realize this, because the Probe Basic GUI and the VFD switched the ENA/FWD Output if I give some MDI S command. I can see that in the GUi, my relai clicks, the VFD switches to Run. But the Pin says the truth...

I don't fully understand why this Enable command should come only from the XHC-WHB-04 pendant (set pdnt....) and not from the PB Gui - I would like to enable the spindle over the pendant but more in an OR funktion not only with the pendant.
I have to say that all these spindle commands weren't made by myself but from someone else who wanted to help me out in the past. And I couldn't test it in real life, because my VFD wasn't connected until now.

How should I change the settings so that it works with GUI and pendant? can you give me some hints, please?
Thanks for your support!
Hanno
  • Aciera
  • Aciera's Avatar
18 Feb 2025 08:52
Replied by Aciera on topic problem reading ini file xhc-hb04-cfg

problem reading ini file xhc-hb04-cfg

Category: HAL

could you post the exact error message?
  • jefsaro
  • jefsaro's Avatar
18 Feb 2025 07:17
problem reading ini file xhc-hb04-cfg was created by jefsaro

problem reading ini file xhc-hb04-cfg

Category: HAL

Bonjour a tous ,
je viens d 'installer linuxcnc 2.9.4,apres quelques heures de recherche sur le forum ,je ne trouve pas la solutions avec xhc-04, j 'ai toujours le probleme reading ini file.
 pouvez vous m 'aider .
 bonne journee
 jf
 
  • scotta
  • scotta's Avatar
13 Feb 2025 20:06

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I deleted xhc-whb04b-6.hal still an error
I no longer have the problem of " MOTION: num_joints is 33, must be between 1 and 16" 
I post you the .ini and .hal files in 

 

File Attachment:

File Name: NVEM_2025-02-13.hal
File Size:4 KB
 

File Attachment:

File Name: NVEM_2025-02-13.ini
File Size:3 KB





LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.0~pre1+git20230208.f1270d6ed7
Machine configuration directory is '/home/manu/linuxcnc/configs/NVEM'
Machine configuration file is 'NVEM.ini'
INIFILE=/home/manu/linuxcnc/configs/NVEM/NVEM.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtplasmac
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
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./NVEM.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
motmod: already exists
./NVEM.hal:6: waitpid failed /usr/bin/rtapi_app motmod
./NVEM.hal:6: /usr/bin/rtapi_app exited without becoming ready
./NVEM.hal:6: insmod for motmod failed, returned -1
8403
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

 

The error gives a hint - motmod: already exists

Looks like you are loading it twice in your hal file. Try removing the 2nd line. From above EMCMOT=motmodloadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD #num_joints=[KINS]JOINTS[TRAJ]SPINDLES
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
  • beauxnez
  • beauxnez
13 Feb 2025 18:58 - 13 Feb 2025 19:06

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I deleted xhc-whb04b-6.hal still an error
I no longer have the problem of " MOTION: num_joints is 33, must be between 1 and 16" 
I post you the .ini and .hal files in 

 

File Attachment:

File Name: NVEM_2025-02-13.hal
File Size:4 KB
 

File Attachment:

File Name: NVEM_2025-02-13.ini
File Size:3 KB


LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.0~pre1+git20230208.f1270d6ed7
Machine configuration directory is '/home/manu/linuxcnc/configs/NVEM'
Machine configuration file is 'NVEM.ini'
INIFILE=/home/manu/linuxcnc/configs/NVEM/NVEM.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtplasmac
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
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./NVEM.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
motmod: already exists
./NVEM.hal:6: waitpid failed /usr/bin/rtapi_app motmod
./NVEM.hal:6: /usr/bin/rtapi_app exited without becoming ready
./NVEM.hal:6: insmod for motmod failed, returned -1
8403
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
 
  • cakeslob
  • cakeslob
12 Feb 2025 19:51

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I think I misread that first error,
[HAL]
HALFILE = NVEM.hal
HALFILE = qtplasmac_comp.hal
HALFILE = xhc-whb04b-6.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal.

remove the xhc-whb04b-6.hal
  • Lisov_R
  • Lisov_R
07 Feb 2025 01:44

ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board

Category: Driver Boards

I am attaching all the files of my 5-axis machine with the ability to work only with stepper motors, motors and an ecoder and in ClosedLoop mode. Spindle control via RS485 with a frequency converter. Additionally, the xhc-hb04 remote control is connected.
 

File Attachment:

File Name: FoXCNC.zip
File Size:13 KB
Displaying 1 - 15 out of 101 results.
Time to create page: 0.515 seconds
Powered by Kunena Forum