Connection MKS DLC V2.1 with a electromagnet to do an action

hello, im trying to do a cnc to take some objects, i already set de Y and X motors, but i wanna connect a electromagnet to do the action and it is not working, i don’t know where i should connect it so it’ll work with g commands as well, I connected it first at laser pin but it didn’t work when i put M3 S255, do yo know how to connect this? plz


Electrically, it’s more likely to work with the DC motor port but I don’t know what gcode you would need.

You need to make sure that you have a flyback diode. There should be one on the DC motor connection, but I don’t know for sure.

If you don’t have a flyback diode, the solenoid will destroy the transistor when it is turned off.

The board has limited current capabilities, so ensure you know how much current it needs and you’ll know if you can drive it directly off the dlc.

I seriously doubt you can directly drive it, unless you use spindle (dc motor), which does supply more current. If you’re trying to use it as a cnc machine, you’ll likely need that for spindle control…

Do what action?


Ensure, no matter how you switch it, follow @mcdanlj advice on using a snub diode.

:smiley_cat:

2 Likes

Looks like the Laser and DC Motor are just two different connectors for the same circuitry, and I don’t see any snub diodes. So you’ll have to add one, and if you already activated the solenoid through the laser port even once, there’s a possibility that you already destroyed Q1 in that diagram.

2 Likes

Well, you might be able to use a MOSfet driver board connected to A2(pin 3) and B2(pin3) on the EXT PINS and add an M-code for a FLOOD coolant to your .nc file.

MKS DLC V2.0_001 SCH.pdf (103.7 KB)

@mcdanlj, Did you notice that small line connected to pin1 of J18: image

I think the developers removed the diode from the published schematic intentionally.
Maybe to give some Chinese copyists a hard time :slight_smile:

@hennep Good eyes, no I didn’t notice that.

I wondered about a board with a “DC Motor” connection without a diode; that would explain it.

I’d still want to identify the actual part on the board before assuming it is there, though! :smiling_face:

This is the motor driver circuit from the DLC32 V2.1 – J18 is led laser module – J7 spindle.

This is a similar circuit from my little CNC3018 Woodpecker controller (328p) – J2 laser module – J3 spindle.

The Arduino site suggests you don’t run one of these off 12V… I look in the data sheet and it advises it’s limited to 5V on the inputs?

:smiley_cat: