Lathe Macros

More
12 years 1 month ago #50944 by andypugh
Replied by andypugh on topic Lathe Macros
With the spindle motor turned off, rotate the chuck by hand through one full turn and see what the motion.spindle-revs pin does.

I have a feeling that this problem comes down to the spindle gearing. Is the encoder on the motor and not the spindle?

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

More
12 years 1 month ago #50946 by mariusl
Replied by mariusl on topic Lathe Macros
The encoder is on the spindle directly

motion.spindle-revs changed by 50 on one revolution

Regards
Marius


www.bluearccnc.com

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

More
12 years 1 month ago #50949 by andypugh
Replied by andypugh on topic Lathe Macros

mariusl wrote: motion.spindle-revs changed by 50 on one revolution


Ah, well, there's the problem :-)

You need to change the encoder position scale so that the number changes by 1.000 for one revolution.

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

More
12 years 1 month ago #50950 by andypugh
Replied by andypugh on topic Lathe Macros

andypugh wrote: You need to change the encoder position scale so that the number changes by 1.000 for one revolution.


Just to be clear, and not knowing what decimal separator you use in SA. I was trying to say "exactly one" not "one thousand" :-)

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

More
12 years 1 month ago #50951 by mariusl
Replied by mariusl on topic Lathe Macros
Ok that makes sense. It means that all my other calculations are also bugged as I used the encoder input as gospel.
I checked to see and encoder count is 2024 per revolution. So it uses one edge of the pulse not both sides as I believed.

Oh and I dont really care what we use for separator. I try any until things work. But I got what you meant thanks. :)

Regards
Marius


www.bluearccnc.com

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

More
12 years 1 month ago #50954 by mariusl
Replied by mariusl on topic Lathe Macros
Andy
Your'e Biscuit :woohoo:

And on top of it all it is rps not rpm. That is what caused the confusion for me. I just changed the encoder scale to 2048 and multiplied the feedback by 60

Regards
Marius


www.bluearccnc.com

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

Time to create page: 0.446 seconds
Powered by Kunena Forum