Spindle servo step/dir Problems

More
2 years 6 days ago #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)

Please Log in to join the conversation.

More
2 years 6 days ago #313152 by Stran_ge
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.

Please Log in to join the conversation.

More
2 years 6 days ago #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)

Please Log in to join the conversation.

More
2 years 6 days ago #313154 by Stran_ge
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.

Please Log in to join the conversation.

More
2 years 6 days ago #313155 by tommylight
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.

Please Log in to join the conversation.

More
2 years 6 days ago #313159 by Stran_ge
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!!

Please Log in to join the conversation.

More
2 years 6 days ago #313189 by Stran_ge
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 ?

Please Log in to join the conversation.

More
2 years 5 days ago #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)
 

Please Log in to join the conversation.

More
2 years 5 days ago #313225 by Stran_ge
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)

Please Log in to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum