- Posts: 17524
- Thank you received: 0
Forum Header
Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig
1 year 11 months ago #314981
by PCW
Replied by PCW on topic Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig
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?
You should use reset mode for all axis/spindle
this should double you maximum step rate
Can you post your current hal/ini files?
Please Log in to join the conversation.
- sk_linuxcnc
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 0
1 year 11 months ago #315020
by sk_linuxcnc
Replied by sk_linuxcnc on topic Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig
**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
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
Please Log in to join the conversation.
- sk_linuxcnc
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 0
1 year 11 months ago #315029
by sk_linuxcnc
Replied by sk_linuxcnc on topic Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig
i do not understand what is a reset mode. and where to call it/place it and in which file.
Please Log in to join the conversation.
1 year 11 months ago #315040
by PCW
Replied by PCW on topic Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig
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)
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)
Please Log in to join the conversation.
- sk_linuxcnc
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 0
1 year 11 months ago #315303
by sk_linuxcnc
Replied by sk_linuxcnc on topic Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig
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!
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!
Please Log in to join the conversation.
Time to create page: 0.083 seconds
