Advanced Search

Search Results (Searched for: )

  • Mr1576
  • Mr1576
25 Jan 2026 10:31 - 25 Jan 2026 10:33

HAL Edits for RS485 / VFD Spindle Control

Category: HAL

Bear with me:
I feel like I have read every article known to man on this subject and watched all the videos on YouTube that I can find but after several weeks cannot start my spindle via software.I am using Linuxcnc v 2.9.8, with QtDragon_hd as my GUI.

I have a 2.2kw water cooled spindle hooked up to a Huanyang HY02D223B inverter. I have a Waveshare RS485 USB connector, wired D+ to RS+ , and D- to RS- on the VFD. The shielded ground is connected to ground on the PC and COM on the VFD. The adapter shows up as ACM0.

VFD jumper has been switched to VI, and programmed as follows:-
PD001: Set to 2 (Source of run command = RS-485 communication port).
PD002: Set to 2 (Source of operating frequency = RS-485 communication port).
PD163: Set to 1 (Communication address of the VFD).
PD164: Set to 1 for 9600 baud 
PD165: Set to 3 (Communication method: 8 data bits, no parity, 1 stop bit - 8N1 RTU). 

While linuxcnc loads, if, after homing, I select MDI and type M3 S1000 (or any other value), nothing happens.
For a while I was questioning the wiring to the spindle/mains and had the awful thought that either the spindle or VFD were duff.
Last night I found this thread forum.linuxcnc.org/24-hal-components/310...anyang-speed-control and when I followed these steps in Terminal, voila! my spindle runs.

I have attached my HAL file and a screenshot of my procedure in Terminal in the hope that someone can explain why I can't operate the spindle from within my GUI. 

Thanks in advance.

File Attachment:

File Name: XYYZA2PPTHAL.txt
File Size:5 KB
  • Hakan
  • Hakan
25 Jan 2026 10:12 - 25 Jan 2026 10:14
Replied by Hakan on topic Lichuan 4 axis stepper need help-

Lichuan 4 axis stepper need help-

Category: EtherCAT

Do you think it is even possible to make a general homing component?
The drives I have seen have numerous different homing options.
Will all of them work?

The cia402 component has no easy task.
The device runs the cia 402 state machine and the cia402 component has to figure out what state it is in. 
From that, rebuild the control word to match what you want it to do next.
You can't let the cia402 component be the master of the state machine, the device is.

I don't know much about how homing is supposed to work,
otherwise I could try to help more.
 
  • stefan63
  • stefan63's Avatar
25 Jan 2026 08:08
PiBot Pendant was created by stefan63

PiBot Pendant

Category: General LinuxCNC Questions

This looks great, have anyone been able to port it for LCNC?
www.pibot.com/pibot-cnc-pendant-v4
  • grandixximo
  • grandixximo's Avatar
25 Jan 2026 04:49
Replied by grandixximo on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

We make machines, on our factory floor, we always have 3-4 machines on the floor I can test, some complete some partially because in construction. our customers have multiple shops running LinuxCNC, but it is in the background, and they don't really know, they only look at CAM, CNC for them is mostly open gcode start, regulate feed, stop if have problem.
The biggest changes we made you have them now in master, not sure how my implementation can help, and it is not in the scope of the OP.
  • Becksvill
  • Becksvill
25 Jan 2026 04:18
Replied by Becksvill on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Hey guys have a look at the link to the YouTube channel

These guys have a whole factory running linuxcnc I think.

Is awesome.

I have 7 machines here in NZ but these guys have way more stuff for testing.

Grandixximo.

Can you take some more videos of your machines please
Even a non promotional video for us linuxcnc guys where you can really dig into how your have implemented it.

This is perfect for testing 5 axis stuff and your jerk control.

And I just want to say thanks for trying to help the open source community.


Not everyone does that.

Cheers
  • tommylight
  • tommylight's Avatar
25 Jan 2026 03:01

Question about using Deadband in calibration when switching from Position to Spe

Category: Basic Configuration

It does seem something is not set correctly as setting deadband should not trigger joint error, at least i do not recall it ever happening to me, but i do use lower values:
DEADBAND = 0.0001
DEADBAND = 0.001
as a starting point, and go up or down a bit till i get soft noiseless motor standstill.
For a Delta drive, i would try with 0 I and 0 D values, find FF1 where machine would run at full speed properly, then set a very low value for deadband if you end up needing it.
First and foremost, find the P value where the motor does not lag to much at full speed and does not vibrate at standstill.
  • my1987toyota
  • my1987toyota's Avatar
24 Jan 2026 22:59
Replied by my1987toyota on topic ARE YOU KIDDING ME YOUTUBE !!!

ARE YOU KIDDING ME YOUTUBE !!!

Category: Off Topic and Test Posts

And even if it doesn't go anywhere this time governments will continue to try again. It's how the American
Government has gotten away with mandating kill switches into all new road vehicle
(2026 forward if I remember correctly). There is another bill that is suppose to repeal it (H.R. 1137) but 
I don't know if it passed or not. Given all the other crap that has gone on I wouldn't be surprised if it
got lost in the noise. 

 

As a side note from an earlier post, NO they have not repealed the stupid vehicle kill switch thing. It's just
the law hasn't been implemented yet.
  • grandixximo
  • grandixximo's Avatar
24 Jan 2026 22:36 - 24 Jan 2026 22:39
Replied by grandixximo on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

 

Inadequacies in the milling path should not be compensated for by violations of the limits of jerk and acceleration 




It is not the case that we try to fix inadequacy of the path by spiking the jerk, is that we cannot control the jerk spikes period. This is not because we don't want to or lack of trying, is IMO fundamentally a limitations of the current tp architecture. YangYang is trying work arounds...
  • grandixximo
  • grandixximo's Avatar
24 Jan 2026 22:09 - 24 Jan 2026 22:11
Replied by grandixximo on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Yes, most machines you see on the website do, the one I have most problems with is the sawjets, because of the huge kinematics pivot.
The only issue I found that needs fixing with the latest code, is when I do codes to mill down the table, zigzag style, YangYang will take a look next week, he keeps patching that up. And then it comes back again...
  • rodw
  • rodw's Avatar
24 Jan 2026 22:05
Replied by rodw on topic Lichuan 4 axis stepper need help-

Lichuan 4 axis stepper need help-

Category: EtherCAT

Yes, I need to check it all. I did see previously that cia402 was not waiting for confirmation of homing or something so will watch for that....
  • Hakan
  • Hakan
24 Jan 2026 21:59
Replied by Hakan on topic How good is Ethercat motion control?

How good is Ethercat motion control?

Category: EtherCAT

Sounds like 100% the right thing!
  • Hakan
  • Hakan
24 Jan 2026 21:52
Replied by Hakan on topic Lichuan 4 axis stepper need help-

Lichuan 4 axis stepper need help-

Category: EtherCAT

Its just a snippet of code and not the whole picture.
But I wouldn't switch state before statusword says the drive has switched state.
It would be in some pending_switch_state perhaps.
  • ihavenofish
  • ihavenofish
24 Jan 2026 21:18
Replied by ihavenofish on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions


You can find more on the youtube channel


Oooh. So this machine runs linuxcnc with jerk limiting?
 
  • grandixximo
  • grandixximo's Avatar
24 Jan 2026 21:08
Replied by grandixximo on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions


You can find more on the youtube channel
  • rodw
  • rodw's Avatar
24 Jan 2026 20:37
Replied by rodw on topic Lichuan 4 axis stepper need help-

Lichuan 4 axis stepper need help-

Category: EtherCAT

I gave some detailed instructions to Grok last night then slept like a baby.. I always wanted to use a C union to break out status word etc into  bits starts to make it readable.
 
 
Displaying 391 - 405 out of 19703 results.
Time to create page: 0.346 seconds
Powered by Kunena Forum