K40 and Makerbase MKS DLC32 V2.1

Hi,

I am looking for some help as looking through youtube videos, various forums including lightburn and the Makerbase documentation regarding the MKS DLC32 V2.1 I am confused on where the wiring should go the the K40 laser engraver.

I have the type 2 power supply in the picture

This is the MKS DLC32 V2.1

So the where the blue heatsinks are this is the stepper motors these are working fine. The purple and black wire and the white above them (should be another one) theses are for the limit switches

When I press the switches I get the following error

The first issue is the limit switches when homing they do not register hitting the limit switches and bang against them. I’m not sure if this is because of limit switches not in the correct place on the motherboard currently on G and S (do they need any current as only 2 wires go to the switches) or if
the gcode is wrong, Which I have included

$0=10
$1=200
$2=0
$3=1
$4=0
$5=0
$6=0
$10=0
$11=0.010
$12=0.002
$13=0
$20=1
$21=1
$22=1
$23=3
$24=75.000
$25=2400.000
$26=50.000
$27=4.000
$28=1000.000
$30=1000.000
$31=0.000
$32=1
$38=1
$37=1
$40=1
$100=160.000
$101=160.000
$102=160.000
$103=100.000
$104=100.000
$105=100.000
$110=500.000
$111=5000.000
$112=1000.000
$113=1000.000
$114=1000.000
$115=1000.000
$120=800.000
$121=300.000
$122=1500.000
$123=200.000
$124=200.000
$125=200.000
$130=300.000
$131=200.000
$132=50.000
$133=300.000
$134=300.000
$135=300.000

The next issue is trying to figure out where the wires go for the laser to be fire when the command is sent again this could be an error in the gcode above. If i have understood the $32 set to true should enable it? I have looked at MKS DLC 32 with K40 - #38 by Atif but it is not clear where the laser wires should be. I have connected k+ and k- together connect L to the spindle negative and IN on the psu to positive on the spindle on the motherboard

I will create some documentation for the group when this issues have been resolved as this may help someone else in the future

Any help would be much appreciated

I don’t think the K and K+ inputs should be shorted…

Here’s a more comprehensive article by @HalfNormal on another site that is more generic K40…

You should, that means the hardware is working… It’s probably a configuration issue… You need to clarify what exactly is happening.


You get the pwm, generally, for a spindle or a laser… The $32 enable laser mode in the software.

Good luck

:smile_cat:

Hi Jack,

Let me clarify a few things, just to check my understanding as looking at various forums, you tube videos etc… I totally confused.

From my understanding

  • I have removed the short of the K & K+

  • The limit switches are working correctly by the error given in lightburn, I need to figure out why the head keeps bashing against them and does not stop (Any idea there would be helpful)

  • For the laser we need L- and the IN wires from the psu going to the Makerbase MKS DLC32 V.2.1 board, Looking at the documentation then IN goes to S on their documentation and L- goes to G

Is my logic correct on the laser side of the equation?

I don’t have one of these, so this lps is different from what I’m used to. I am following the previous link… it wouldn’t hurt to get assistance from @HalfNormal :pray:


Take some time and read this. These are the lps connections…


This is the text from the link… this is L

Connector #1
Pin #1 HIGH VOLTAGE Return (from ma meter)

That goes to the cathode of the laser tube… generally you put your mA meter in this return line.

The link has a guide for the IN, G and 5V connections…

Pin #1 (G) – Pot CCW Pin (turning knob ccw contacts this)
Pin #2 (IN) – 0-5V level control to High Voltage Power Supply
Pin #3 (5V) – Pot CW Pin (turning knob cw contacts this)

Your documentation is for an led laser, how they are wired is a bit different as you can control the power in two ways, via the external pot and the software percentage power.


This is the only place that seems to fire the laser and is probably where your S signal should go… This is just the pwm requested by the artwork layer. It appears to be active low.

Connector #3

Pin #1 (K-){really Gnd} – “Test Switch”
Pin #2 (K+) – “Test Switch”

Doesn’t any of this make sense?

:smile_cat:

1 Like

$5 is the limit switch invert.
$5=0 try $5=1

OK, I was mistaken L was connected to the mother board not L-. Altered $5 to 1 as it was 0 still the same issue
$0=10
$1=200
$2=0
$3=1
$4=0
$5=1
$6=0
$10=0
$11=0.010
$12=0.002
$13=0
$20=1
$21=1
$22=1
$23=3
$24=75.000
$25=2400.000
$26=50.000
$27=4.000
$28=1000.000
$30=1000.000
$31=0.000
$32=1
$38=1
$37=1
$40=1
$100=160.000
$101=160.000
$102=160.000
$103=100.000
$104=100.000
$105=100.000
$110=500.000
$111=5000.000
$112=1000.000
$113=1000.000
$114=1000.000
$115=1000.000
$120=800.000
$121=300.000
$122=1500.000
$123=200.000
$124=200.000
$125=200.000
$130=300.000
$131=200.000
$132=50.000
$133=300.000
$134=300.000
$135=300.000

I thought I’d taken a photo but can’t have done and I just need to find with the L wire connects to as I left it connected to the connector on the psu but not sure where it connect to?

In regards to the controlling the laser, I was looking to do this within lightburn software via percentage power whether this is for a test fire and engraving/cutting. so does this change anything

Is this the L connection on the left of the lps photo? This is the return from the cathode or the tubes ground…

:smile_cat:

This is the wire on the end of the white connector on the right where the yellow arrow is pointing

Now since my display is digital for the laser power

Pin 1 from the psu goes to Ground on the makerbase motherboard
Pin 2 from the psu goes to Signal on the makerbase motherboard
Pin 3 from the psu goes to Volt on the makerbase motherboard

going by

Pin #1 (G) – Pot CCW Pin (turning knob ccw contacts this)
Pin #2 (IN) – 0-5V level control to High Voltage Power Supply
Pin #3 (5V) – Pot CW Pin (turning knob cw contacts this)

Does this look like your supply?

:smile_cat:

This is my psu

Looks like this link

Atif may have been having the same issue I am on getting the laser connect to work.

So from what I have understood

Atif asked regarding his diagram

Atif replied as i am remembering/recalling of memory about my failure is when i press fire on LightBurn and connect K- and K+ pin laser tube fire up.
But when i gave some sketch to draw the laser tube did not fire up because i did not connect of short K- & K+ pin

Atif then mentioned it is correct we need to short K- & K+ in MKS DLC 32 V2.1.
Now laser tube is firing up and working…

So my interpretation of this is Black from TTL on the Makerbase motherboard goes to ground on the psu next to IN. The green from S on the Makerbase motherboard goes to go IN on PSU.

If this work by connect and disconnecting the K and K+ one will go as test fire on the circuit and the laser when running a job.

.

So how is K defined as a manual enable? different than P?

I mislead him, I didn’t think these were connected… It’s not very clear when they use similar identifiers for different operations.

Mine is the other type of lps…

Does that board have a ‘laser enable’ and pwm output similar to the Ruida? Or is the IN wired to a variable dc source?


I’ve got one of these boards, in it’s box. I guess I’ll be forced to wire up to at least, my diode laser…

:smile_cat:

L lo tienes q conectar en gnd del spindle y a sin te funcionará el laser

En buzzer interface gnd

De esta manera sí que te funcionará el láser Láser co2

Esta es la conexión buena para que tú la láser de CO2 te funcione correctamente y no le des más vueltas ya me dirás un
saludo soy juan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.