Changing base/servo thread for 10kHz charge pump

More
27 Aug 2014 00:24 - 27 Aug 2014 01:35 #50325 by olesk
Hi,

I have a Leadshine MX3660 stepper controller that needs a 10KHz signal for the charge pump.

My current setting for BASE_PERIOD is 100'000 and SERVO_PERIOD 1'000'000 which I have no idea if is crazy for my Shapeoko2. The data was based in a conversion of a Mach3 xml-file for the MX3660.

Still, my understanding is that I need 50'000 period for a 10kHz signal, which means that it would be convenient to change one of the two. It seems from my hal-file, that both BASE_PERIOD and SERVO_PERIOD are in use.

I presume the only way to get a charge pump running at 10kHz is to set up a separate thread with a period of 50'000?


OJ
Last edit: 27 Aug 2014 01:35 by olesk. Reason: Further studied revealed cluelessness

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

More
27 Aug 2014 01:33 - 27 Aug 2014 01:34 #50328 by PCW
Setting the base thread period to 50,000 should not hurt anything,
worst case you will get real-time delay notifier pop-ups and problems
at high step rates if your CPU cannot run a 20KHz base thread (50000 ns thread period)

The MX3660 is a motor drive not a controller so if you are using a parallel
port to drive the MX3660 you still need a base thread.
Last edit: 27 Aug 2014 01:34 by PCW.
The following user(s) said Thank You: olesk

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

More
27 Aug 2014 01:36 #50329 by olesk
Ok - thanks for clarifying! :)


OJ

PS: I was editing the original question as you wrote your answer, but it doesn't matter, as your answer certainly covers it.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum