-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controllo motore Nidec con mks dlc32 e CLK (no PWM) #550
Comments
Link to datasheet please. |
I don't have a spec sheet for the motor, what I know is that it is labeled nidec g1271170. from the first tests I can operate it with m3 forward and m4 backward and I vary the speed only by changing the pwm hz $33 value in the firmware. any command from m3s1g1f1000 to m3s1000g1f1000 does not change the speed. |
Well, then I assume it controlled by frequency, not duty cycle or DC. If so a custom spindle driver has to be written. |
pdfcoffee.com_nidec-24h-bl4234-4-pdf-free.pdf |
There are two variants according to the datasheet, PWM or PLL controlled. Since it looks like you have the PLL version a custom spindle driver has to be written. |
#include "driver.h" // Definisci il pin GPIO per l'uscita della frequenza // Funzione per inizializzare il plugin // Funzione per aggiornare la frequenza del mandrino
} // Funzione di callback per il cambio di velocità del mandrino // Struttura del plugin // Funzione per registrare il plugin I don't know how to write a plugin..I asked bing and I don't know if the result is correct...can I go ahead with the plugin or am I completely off track? |
I am afraid that it is a bit more complicated. |
so the plugin generated by bing is incorrect? |
if bing generates an incorrect plugin for me I don't know how to do it, I don't know how to write it, I'm completely naked in the sector. Besides, I can't even integrate it for compilation |
The generated code is unusable. |
I managed to start the spindle, it's not the best as the speed doesn't change during processing but I still get the expected result... I create a macro with -$33=200- , -m3s1g1f1000-, I create another one with -$33=5000- , -m4s1g1f1000...from the combination of the values I can go forward and backward at different speeds, thanks for the support.. |
Hi, I have a 6 wire Nidec brushless motor with 24v-Gnd-5V-CLK-BRK-dir. I tried to control it with the MKS DLC32 and I can move it clockwise and anticlockwise using m3 and m4. I can adjust the speed only by varying the pwm value from the firmware, if I set it to pwm 500 it runs slow and jerky, if I set it to 20000 it runs fast and fluidly. Any value sent from consoles like m3 s1 (or s1000) does not change the speed. Is there a way to generate the CLK signal instead of pwm?
The text was updated successfully, but these errors were encountered: