× Forum Header

Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig

More
21 Nov 2024 14:32 #314981 by PCW
A couple of things:

You should use reset mode for all axis/spindle
this should double you maximum step rate

Can you post your current hal/ini files?
The following user(s) said Thank You: sk_linuxcnc

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

More
22 Nov 2024 08:48 #315020 by sk_linuxcnc
**the values in the Z axis config are just a replica of the parameters i used for A axis in a different config. (in reality i dont have a Z axis.)

the attached post is where i describe my machine, and the use case of Spindle, instead of A axis. but i would be really happy if you could give your 2 cents on this matter too! :)

forum.linuxcnc.org/20-g-code/54516-help-...usly?start=10#314987
 
Attachments:

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

More
22 Nov 2024 12:28 #315029 by sk_linuxcnc
i do not understand what is a reset mode. and where to call it/place it and in which file. :(

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

More
22 Nov 2024 17:57 - 22 Nov 2024 18:12 #315040 by PCW
Your X axis is using reset mode but the spindle is not:

net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1 <<<<<<<<<<<<<<<
net xdir => parport.0.pin-03-out
net spindle-step => parport.0.pin-04-out

setp stepgen.0.steplen 1 <<<<<<<<
setp stepgen.0.stepspace 0 <<<<<<<<<


Also the spindle scale should be 800 for 800 steps/turn since you
are setting the stepgen velocity in RPS

(it should be 13.33333 if you set the stepgen velocity in RPM)
Last edit: 22 Nov 2024 18:12 by PCW.
The following user(s) said Thank You: sk_linuxcnc

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

More
26 Nov 2024 14:59 #315303 by sk_linuxcnc
thank you. i did everything like you mentioned and it works. setting steplen to 1 and stepsace to 0 along with pin reset 1 increases the total rpm i can acheive with my motor. ( now it rotates much faster than it did with scale at 6400)

what doesnt work (or is counter intuitive) is when i set the spindle scale to 800 (as my servo is set to 800 pulses/rev) the spindle turns very slowly.
when i put it to 6400, it turns much faster.
and when i put it to 64000 it turns even faster.

but as it works for me, ill leave it at that. thanks again! :D

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

Time to create page: 0.111 seconds
Powered by Kunena Forum