Using a servo as a spindle and positional axis - keep getting vague errors

More
05 Apr 2025 13:25 #325757 by PCW

cofhal - I will look at your files now, I did have another idea as well - could i simply use two stepgens? one for step.dir for spindle and another one for the "C" axis? and have a mesa output pin switch a dpdr relay to simply alter where the same motor gets the input?
 

You don't need two stepgens. Typically the way this is done is that a single stepgen is used (in velocity mode)
and the velocity command comes from the commanded spindle speed in spindle mode  and the position control PID
loop output in C Axis mode. The trick is returning to C axis mode after being in spindle mode with the spindle in
an arbitrary position.

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

More
05 Apr 2025 17:15 - 05 Apr 2025 17:24 #325771 by ffffrf
here is a picture of my physical manual, its slightly different than the online manual. However, do you think it actually does work and this physical copy of the manual is wrong?Also just to clarify - are you also saying that because my current encoder is not 1:1, that it will not work?I can go ahead and try to solder on the wires to my servo driver and test it out 


Currently using a 1024 p/r pulley mounted encoder
Attachments:
Last edit: 05 Apr 2025 17:24 by ffffrf.

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

More
05 Apr 2025 17:45 #325772 by ffffrf
Also could you explain how your physical setup for homing of the C axis / spindle? It is something I am having trouble with after modifying your HAL and INI (which I will attach here).
Attachments:

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

More
05 Apr 2025 22:03 #325781 by COFHAL
Does your encoder have index?

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

More
06 Apr 2025 00:51 #325787 by ffffrf
yes the one i am using has an index pulse!

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

Time to create page: 0.292 seconds
Powered by Kunena Forum