Machine fails to get past G1 "spindle-at-speed" issue EtherCAT spindle

More
29 Nov 2025 22:10 #339455 by Will_cnc
Hi everyone,I’ve recently finished mounting my machine to its base and tidying up the wiring, so I decided to try running a quick program to see if everything was working properly.Machine Configuration:
  • Controller: Raspberry Pi 5
  • Servos: 3 × Leadshine EL8 servo drives with 400 W motors (EtherCAT)
  • Spindle: 1 kW StepperOnline drive (EtherCAT)
The program starts fine, but the machine seems to get stuck at the first G1 command.After doing some reading, it looks like this could be related to the “spindle-at-speed” signal in the HAL configuration.Because I’m using EtherCAT, I’m not sure where this needs to be handled:
Should the spindle-at-speed signal be configured in the HAL file, or Is it something that needs to be set up in the .comp file for the EtherCAT drive?

Any guidance or examples on how to handle this signal within an EtherCAT setup would be really appreciated. when the spindle is running currently I am having no feedback from the drive to record the actual speed ? 
Attachments:

Please Log in or Create an account to join the conversation.

More
29 Nov 2025 22:16 - 30 Nov 2025 00:33 #339456 by langdons
Did you start the spindle with M3 or M4 first?

Try this:

Put M3 at the first line of your program.

Run some random G0 commands to wait until the spindle reaches full speed, then run a G1 and see if it works.

Perhaps the spindle actually just is not at-speed yet.
Last edit: 30 Nov 2025 00:33 by langdons.

Please Log in or Create an account to join the conversation.

More
29 Nov 2025 22:31 - 29 Nov 2025 22:31 #339457 by Hakan
I seem to have made a mistake in the cia402pv component with the stat-at-speed pin..
I'll look at that tomorrow. If you just want to mill you can comment out the spindle-at-speed signal and
setp Spindle.0.at-speed 1
 
Last edit: 29 Nov 2025 22:31 by Hakan.
The following user(s) said Thank You: Will_cnc

Please Log in or Create an account to join the conversation.

More
29 Nov 2025 22:53 #339458 by Will_cnc
Hi Hakan
thanks for your help , I'm using the cia402pv component you put together, I can't seem to get the drive to feed back the velocity of the motor could this maybe be another issue ?

Please Log in or Create an account to join the conversation.

More
29 Nov 2025 23:17 #339459 by Hakan
Not the same, stat-at-speed looks for two bits in the statusword from the drive.
There is a genuine mistake made there.

But actual speed should work nevertheless, I'll take a look at that also tomorrow.
Do you see any actual speed from the lcec.0 component?

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum