Spindle servo step/dir Problems
24 Oct 2024 20:30 #313150
by PCW
Replied by PCW on topic Spindle servo step/dir Problems
That indicates the original issue, the scaling in incorrect (on one or both)
The following user(s) said Thank You: Stran_ge
Please Log in or Create an account to join the conversation.
24 Oct 2024 20:36 #313152
by Stran_ge
Replied by Stran_ge on topic Spindle servo step/dir Problems
with both you mean the step scale and encoder scale i suppose.
Yes i agree, the problem is i dont really have a way to find that out myself i believe.
The parameter that shows the factory default says 1024 motor resolution per revolution.
Yes i agree, the problem is i dont really have a way to find that out myself i believe.
The parameter that shows the factory default says 1024 motor resolution per revolution.
Please Log in or Create an account to join the conversation.
24 Oct 2024 20:56 - 24 Oct 2024 20:56 #313153
by PCW
Replied by PCW on topic Spindle servo step/dir Problems
I think the output scale should be 166.6666 (or -166.6666) as the ini file comment suggests.
This is completely unrelated to the encoder scale (which seems to have been factored in)
(at least assuming 10000 steps per turn)
This is completely unrelated to the encoder scale (which seems to have been factored in)
(at least assuming 10000 steps per turn)
Last edit: 24 Oct 2024 20:56 by PCW.
Please Log in or Create an account to join the conversation.
24 Oct 2024 21:08 #313154
by Stran_ge
Replied by Stran_ge on topic Spindle servo step/dir Problems
well that comment is from the creator of the spindle section (tall83). It is not from my servo so it should be unrelated to my setup.
Unfortunately my manual does not give any info for the step scale.
Unfortunately my manual does not give any info for the step scale.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6430
24 Oct 2024 21:24 #313155
by tommylight
Replied by tommylight on topic Spindle servo step/dir Problems
Does the servo drive have a speed display?
If not, Do you have something to check the spindle RPM?
If not, do you have an arduino and a photo resistor or optical sensor?
All these measuring should be done with no spindle feedback in hal as not to mess up the readings when commanded at a certain speed.
-
The encoder feedback RPM is easy to find manually, set the hal show to show the raw counts from the spindle and rotate the spindle by hand 1 full turn, adjust the scale accordingly.
-
This is untested, but setting the spindle as an axis and the output scale to 1 and checking how many mm it takes for a full rotation by using MDI or just jogging, would yield the actual scale.
If not, Do you have something to check the spindle RPM?
If not, do you have an arduino and a photo resistor or optical sensor?
All these measuring should be done with no spindle feedback in hal as not to mess up the readings when commanded at a certain speed.
-
The encoder feedback RPM is easy to find manually, set the hal show to show the raw counts from the spindle and rotate the spindle by hand 1 full turn, adjust the scale accordingly.
-
This is untested, but setting the spindle as an axis and the output scale to 1 and checking how many mm it takes for a full rotation by using MDI or just jogging, would yield the actual scale.
The following user(s) said Thank You: Stran_ge
Please Log in or Create an account to join the conversation.
24 Oct 2024 21:43 #313159
by Stran_ge
Replied by Stran_ge on topic Spindle servo step/dir Problems
it does have a speed display, i guess i could try to check the scales for both encoder and step scale. I will report back once i wake up, ty guys your help is truly appreciated!!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
25 Oct 2024 09:44 - 25 Oct 2024 09:47 #313189
by Stran_ge
Replied by Stran_ge on topic Spindle servo step/dir Problems
okay i did some more testing today.
I tried turning the spindle by hand and looked at the rawcounts.
I did 10 rotations and everytime the result was 4096 (or some single digits off, user error).
Which tells me that my encoder scale of 4096 should be correct.
Now i also tested the command M19 R0 or M19 R90......180....270....360....
and those commands all worked and were repeatable and correct.
The rpm however is still wrong and the spindle-at-speed never reaches true.
Also when i command 100 rpm via linuxcnc and check in the display of my servo drive it says 82 rpm which means my output scale is wrong i guess ?
I tried turning the spindle by hand and looked at the rawcounts.
I did 10 rotations and everytime the result was 4096 (or some single digits off, user error).
Which tells me that my encoder scale of 4096 should be correct.
Now i also tested the command M19 R0 or M19 R90......180....270....360....
and those commands all worked and were repeatable and correct.
The rpm however is still wrong and the spindle-at-speed never reaches true.
Also when i command 100 rpm via linuxcnc and check in the display of my servo drive it says 82 rpm which means my output scale is wrong i guess ?
Last edit: 25 Oct 2024 09:47 by Stran_ge.
Please Log in or Create an account to join the conversation.
25 Oct 2024 17:29 - 25 Oct 2024 17:30 #313224
by PCW
Replied by PCW on topic Spindle servo step/dir Problems
I would guess the steps/turn is 5000 so the stepscale should be 83.3333 (or -83.3333)
(based on the fact that 100/82 ~= 5000/4096)
(based on the fact that 100/82 ~= 5000/4096)
Last edit: 25 Oct 2024 17:30 by PCW.
The following user(s) said Thank You: Stran_ge
Please Log in or Create an account to join the conversation.
25 Oct 2024 17:39 - 25 Oct 2024 18:42 #313225
by Stran_ge
Replied by Stran_ge on topic Spindle servo step/dir Problems
I actually set my output scale to roughly - 83 by just testing via rpm difference at 100 rpm 500 and 1000. 20% difference on driver displayed rpm conpared to linuxcnc. That turns out to be roughly 83 in the output scale and that kinda works out to set the atspeed signal true. (There still is some variance but so far with a Max_Error of 1 rpm it works)
Last edit: 25 Oct 2024 18:42 by Stran_ge.
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds