Lathe Question

More
17 Apr 2011 21:36 #9019 by andypugh
Replied by andypugh on topic Re:Lathe Question
BigJohnT wrote:

I assume that if you have a rotary and spindle g code together the spindle takes charge?

Yes, that's the way it is set up.

Incidentally, there is a small problem. Ideally the parport.write thread should be executed after the logic components, so the
addf parport.0.write base-thread
addf parport.0.reset base-thread

Lines should be later in the file than the logic functions.

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

More
18 Apr 2011 09:30 #9030 by Rick G
Replied by Rick G on topic Re:Lathe Question
Could the same logic be applied to a servo driven spindle?

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

More
18 Apr 2011 10:46 #9038 by andypugh
Replied by andypugh on topic Re:Lathe Question
Rick G wrote:

Could the same logic be applied to a servo driven spindle?


Not the exact same logic, no. However something very similar could be done with two separate PID controllers, one based on the encoder position output and the other on the velocity output.

You would switch the PWMgen input between the two PID outputs according to the operating mode. You would need to do something with the f-error limits too. (short circuit the feedback loop in the inactive mode, possibly)

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

Time to create page: 0.092 seconds
Powered by Kunena Forum