Servo spindle via step and dir

More
06 Feb 2022 15:09 #234112 by Gerd
Hi there,
who can help me with LinuxCNC of the servo spindle, which ran with Mach3 without any problems?

Servo Motor: 130ST-M07725
Driver: AASD 30A

I operated the spindle at Mach3 via step ind dir pin which also worked. Now I wanted to switch to LinuxCNC and I can't get the spindle to run.
I've already tried different settings in StepConfig, but it didn't work.
Attached are the pictures and from Mach3 .hal and .ini and servo motor.
What does the hal have to look like for the servo spindle to run?
I would be very happy about suggestions.
 

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

More
07 Feb 2022 09:54 #234228 by Aciera
Not sure but there a few older threads about this:

forum.linuxcnc.org/49-basic-configuratio...663-spindle-step-dir

So looks like you will need to set up a stepgen in velocity mode. For that you might need to edit the hal file directly.

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

More
07 Feb 2022 10:45 #234233 by Gerd
Replied by Gerd on topic Servo spindle via step and dir
Hello Aciera, Thank you for this information.
I also read and tried this thread, but that doesn't work either.

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

More
07 Feb 2022 11:00 #234235 by Aciera
Here is a more recent thread:
www.forum.linuxcnc.org/38-general-linuxc...ike-a-spindle#211162

Looking at your files it seems you don't have anything set up for a spindle.

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

More
07 Feb 2022 11:18 #234237 by Gerd
Replied by Gerd on topic Servo spindle via step and dir
I set it all up via Stepconf. What do I have to set up for the spindle?

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

More
07 Feb 2022 14:16 #234246 by Aciera
I doubt stepconf can create a config for a step/dir spindle but the easiest maybe to use stepconf to create a config with a pwm spindle and then edit the hal file to connect the spindle velocity command to the stepgen input.

I'm not used to parallel port setups so this will not be a detailed how to:

This should then give you a 'stepgen.4' which then you will need to connect to the spindle signals:

net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs => stepgen.4.velocity-cmd


linuxcnc.org/docs/html/man/man9/stepgen.9.html

If in doubt please post your ini and hal after you have created the config with the spindle. There might also be somebody else coming along with more experience in how to set this up.

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

More
07 Feb 2022 15:02 #234248 by Gerd
Replied by Gerd on topic Servo spindle via step and dir
Ok, thanks again, I'll try and see if I can do it.

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

Time to create page: 0.301 seconds
Powered by Kunena Forum