makerbase-mks / MKS-DLC32

MKS DLC32 motherboard kit, which is an offline engraving master control kit developed for desktop engraving machines. The hardware is equipped with a 32-bit high-speed ESP32 module, integrated WIFI function, and directly drives a 3.5-inch touch color screen; it can realize fast engraving and WEB web pages. Control, mobile phone APP control and other functions.
https://www.aliexpress.com/item/1005003183498253.html?spm=a2g0o.store_pc_home.productList_8356958.pic_0
261 stars 106 forks source link

synchronize spindle-speeds #17

Open trashypopashy opened 2 years ago

trashypopashy commented 2 years ago

Now, that it is at 1kHz...

My Spindle is spinning between the following commands:

M3 S260.9 which equals 350 rpm (lower input is too low for the spindle which is okay) M3 S1100 which equals 12500 rpm which is the highest rpm of the spindle, so that is fine as well. Now I want to know what needs to be changed, so that I can send the command M3 S5000 and the spindle would turn with 5000 rpm / M3 S350 and the spindle turns with 350 rpm / M3 S11800 and the spindle turns with 11800 rpm ...and so on...

My parameters set in the DLC_CFG.txt that belong to the spindle are: $30=12500.000 $31=0.000 $32=1

solawc commented 2 years ago

Now, that it is at 1kHz...

My Spindle is spinning between the following commands:

M3 S260.9 which equals 350 rpm (lower input is too low for the spindle which is okay) M3 S1100 which equals 12500 rpm which is the highest rpm of the spindle, so that is fine as well. Now I want to know what needs to be changed, so that I can send the command M3 S5000 and the spindle would turn with 5000 rpm / M3 S350 and the spindle turns with 350 rpm / M3 S11800 and the spindle turns with 11800 rpm ...and so on...

My parameters set in the DLC_CFG.txt that belong to the spindle are: $30=12500.000 $31=0.000 $32=1

Excuse me, do you use CNC? If yes, set $32 to 0

trashypopashy commented 2 years ago

Sorry, but setting $32=0 did not change the behaviour. And yes, I use a CNC.

trashypopashy commented 2 years ago

@solawc or anybody else: Do you have an idea, how to configure the settings to match the M3 Sxxx-commands with the real speeds of the spindle?

solawc commented 2 years ago

@solawc or anybody else: Do you have an idea, how to configure the settings to match the M3 Sxxx-commands with the real speeds of the spindle?

Well, actually I don't quite understand what you mean. M3 SXXX actually controls the output of PWM, and XXX represents the percentage. What is the speed of your spindle type and the corresponding voltage? I don't know this.

kweilim98 commented 2 years ago

Now, that it is at 1kHz...

My Spindle is spinning between the following commands:

M3 S260.9 which equals 350 rpm (lower input is too low for the spindle which is okay) M3 S1100 which equals 12500 rpm which is the highest rpm of the spindle, so that is fine as well. Now I want to know what needs to be changed, so that I can send the command M3 S5000 and the spindle would turn with 5000 rpm / M3 S350 and the spindle turns with 350 rpm / M3 S11800 and the spindle turns with 11800 rpm ...and so on...

My parameters set in the DLC_CFG.txt that belong to the spindle are: $30=12500.000 $31=0.000 $32=1

Sorry sir, can u share how to connect your spindle to motherboard?

iDBaliMaker commented 2 years ago

Sorry sir, can u share how to connect your spindle to motherboard?

sir yes sir... me too have spindle problem speed synchronize.. wird problems..

trashypopashy commented 2 years ago

I used a pwm to analog concerter: https://de.aliexpress.com/item/4001149885707.html

kweilim98 commented 2 years ago

I used a pwm to analog concerter: https://de.aliexpress.com/item/4001149885707.html

Hi sir, have u even solve the problems with the pwm to analog converter that can synchronise the spindle speed as u settings? If yes can u share here how u solve it?

trashypopashy commented 2 years ago

Sorry, no. Just by try an error. I wrote a table with g-Code rpm and real rpm by trying it out.

kweilim98 commented 2 years ago

Sorry, no. Just by try an error. I wrote a table with g-Code rpm and real rpm by trying it out.

Ok, I see, thx u