MKS DLC32 error:20

Lightburn MKS DLC32 error:20

I am using an MKS DLC32 and am getting the error code error:20

With gbrl everything works fine, but with Lightburn it doesn’t go well.

The machine is steering with the controls. The fire is also on. But when I start it, the machine draws 1 line and the laser does not turn on.

Is there a solution

Jan Postema

​Check to make sure your device is set up with the correct device profile, following these steps:

-Click ‘Devices’ in the ‘Laser’ window
-Double click your laser in the list
-Make sure the selected device is set to ‘GRBL’
-click next until you’re done

Next, in your Device Settings (‘Edit’ > ‘Device Settings’), make sure you do not have ‘GCode Clustering’ enabled.

1 Like

Bedankt ik ga kijken

Thanks I’ll take a look

I checked the settings but no change.

Is there anything else I can try?

Please save and share the GCode (‘File’ > ‘Save GCode’) for an example project here so we can take a look. You’ll need to change the file extension to ‘.txt’ to upload it here.

; LightBurn 1.4.00
; GRBL device profile, current position
; Bounds: X4 Y0 to X52 Y43.3
G00 G17 G40 G21 G54
G91
M4
; Cut @ 6000 mm/min, 20% power
M8
G0 X16Y0
; Layer C02
G1 X-12Y21.651S200F6000
G1 X12Y21.65
G1 X24
G1 X12Y-21.65
G1 X-12Y-21.651
G1 X-24
M9
G1 S0
M5
; return to starting pos
G0 X-16Y0
M2

Nothing is jumping out from this GCode - this could be a firmware configuration issue or a communications issue. A simple thing to try is changing the ‘Transfer mode’ in ‘Device Settings’ from ‘Buffered’ to ‘Synchronous.’

If that doesn’t help, please open the Console window (Top menu bar > ‘Window’ > ‘Console’), and enter these commands, one line at a time, and press “enter” after each:

$i
$$
$#
?

Then Copy/Paste the results into a reply here, so we may investigate further.

Hello to all. I’m having the same issue. I’ve looked at older posts and made sure all is correct.
Rotary : Disabled
Device set to GRBL
Gcode clustering : Disabled
Transfer mode : Buffered
Changed to Synchronous

Buffered

Starting stream

Layer C00

[MSG:M4 requires laser mode or a reversable spindle]

error:20

Unsupported or invalid g-code command found in block.

On or near line 4:

Job halted

Stream completed in 0:00

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

Synchronous

Starting stream

[MSG:M4 requires laser mode or a reversable spindle]

error:20

Unsupported or invalid g-code command found in block.

On or near line 7:

Stream completed in 0:00

This is the $I response

$I

[ORIGIN:China]

[PRODUCER:MKS_DLC32]

[DATE:20220905]

[VER:1.1h.2023052701:]

[OPT:VPHSW,15,256]

Target buffer size found

[MSG:Machine Name:MKS DLC32]

[MSG:Mode=AP:SSDI=MKS_DLC:IP=192.168.4.1:MAC=24-DC-C3-0E-83-B9]

ok

Gcode

; LightBurn 1.4.01
; GRBL device profile, user origin
; Bounds: X-0.66 Y0.13 to X190.58 Y189.96
G00 G17 G40 G21 G54
G90
G0 X1.5 Y6.5
G91
M4
; Image @ 4000 mm/min, 35% power
M9
G0 X190.578Y189.954
; Layer C00
G1 X-0.667F4000S0
G1 X-4.487S350
G1 X-0.169S348.6
G1 X-0.254S350
G1 X-0.17S348.6
G1 X-0.084S350
G1 X-0.17S348.6
G1 X-0.423S350
G1 X-0.085S348.6
G1 X-0.084S350
G1 X-0.085S348.6
G1 X-0.085S347.2
G1 X-0.084S348.6
G1 X-0.254S350
G1 X-0.254S348.6
G1 X-0.254S347.2
G1 X-0.085S348.6
G1 X-0.423S350
G1 X-0.085S348.6
G1 X-0.423S350
G1 X-0.17S348.6
G1 X-0.084S345.9
G1 X-0.085S334.8
G1 X-0.085S325.2
G1 X-0.084S321.1
G1 X-0.085S329.3
G1 X-0.085S339
G1 X-0.084S343.1
G1 X-0.085S347.2
G1 X-0.169S350
G1 X-0.085S345.9
G1 X-0.085S344.5
G1 X-0.084S340.4
G1 X-0.085S325.2
G1 X-0.085S315.6
G1 X-0.084S316.9
G1 X-0.085S329.3
G1 X-0.085S343.1
G1 X-0.084S344.5
G1 X-0.085S337.6

This looks like the culprit: “[MSG:M4 requires laser mode or a reversable spindle]”

In the Console window, try entering $32=1 to turn on ‘Laser Mode’ in your laser’s firmware.

Thanks for the reply :slightly_smiling_face:
I have infact enabled Laser mode and still to no avail :man_shrugging:t2:
I’ve actually bricked the controller trying to update the firmware from Makerbase so i need to fix that first :roll_eyes::man_facepalming:t2::rofl:

Good luck to me :grin:

Hi again. I’ve updated the firmware to the MKS latest version V2.30_H35_2022_1223_N_ZX_001 and i’m experiencing alot of line shifting/ missed steps even after adjusting $120(from 50 through to 1200) and X “Speed” to lower values in Lightburn as well. Nothing seem to be changing the shifting. So i loaded the earlier firmware version V2.20_H35_2022_1101_N_ZX_002 and even though this is alot better it seems that no settings are getting rid of the shifting in the lines. I’ve aslo taken the gantry apart and cleaned it. It’s now spotless so no binding, resistance, etc. So i’m not sure where to go from here ???

These 2 pics are of the start of burns with the :

latest firmware V2.30

And firmware V2.20

To try another avenue i was thinking to add a stepless control board from MKS to the X axis…?

$$ list from the controller:

$$

$0=6

$1=25

$2=0

$3=5

$4=0

$5=1

$6=0

$10=1

$11=0.010

$12=0.002

$13=0

$20=0

$21=1

$22=1

$23=5

$24=300.000

$25=1000.000

$26=250.000

$27=1.000

$28=1000.000

$30=1000.000

$31=0.000

$32=1

$50=0

$38=1

$40=1

$100=80.000

$101=80.000

$102=80.000

$103=100.000

$104=100.000

$105=100.000

$110=6000.000

$111=6000.000

$112=6000.000

$113=1000.000

$114=1000.000

$115=1000.000

$120=300.000

$121=500.000

$122=500.000

$123=200.000

$124=200.000

$125=200.000

$130=450.000

$131=450.000

$132=50.000

$133=300.000

$134=300.000

$135=300.000

ok

And would anyone be able to supply the list of $ settings for this firmware. There are some missing from the listing on Github MKS as copied from the site as opposed to the above from the controller

COMMANDS PARAMETERS DESCRIPTION
$0 10 Sets time length per step. Minimum 3usec.
$1 5 Sets a short hold delay when stopping to let dynamics settle before disabling steppers. Value 255 keeps motors enabled with no delay.
$2 0 Inverts the step signal. Set axis bit to invert (00000ZYX). The details can refer to XYZ-TABLE
$3 1 Inverts the direction signal. Set axis bit to invert (00000ZYX). The details can refer to XYZ-TABLE
$4 0 Inverts the stepper driver enable pin signal.
$5 1 Inverts the all of the limit input pins.
$6 0 Inverts the probe input pin signal.
$10 1 Alters data included in status reports.
$11 0.01 Sets how fast Grbl travels through consecutive motions. Lower value slows it down.
$12 0.002 Sets the G2 and G3 arc tracing accuracy based on radial error. Beware: A very small value may effect performance.
$13 0 Enables inch units when returning any position and rate value that is not a settings value.
$20 0 Enables soft limits checks within machine travel and sets alarm when exceeded. Requires homing.
$21 0 Enables hard limits. Immediately halts motion and throws an alarm when switch is triggered.
$22 0 Enables homing cycle. Requires limit switches on all axes.
$23 0 Homing searches for a switch in the positive direction. Set axis bit (00000ZYX) to search in negative direction. The details can refer to XYZ-TABLE
$24 300 Feed rate to slowly engage limit switch to determine its location accurately.
$25 1000 Seek rate to quickly find the limit switch before the slower locating phase.
$26 250 Sets a short delay between phases of homing cycle to let a switch debounce.
$27 1 Retract distance after triggering switch to disengage it. Homing will fail if switch isn’t cleared.
$28 1000 Modify the output frequency of the spindle, the input range is 0-100000
$30 1000 Maximum spindle speed. Sets PWM to 100% duty cycle.
$31 0 Minimum spindle speed. Sets PWM to 0.4% or lowest duty cycle.
$32 1 Enables laser mode. Consecutive G1/2/3 commands will not halt when spindle speed is changed.
$100 80 X-axis travel resolution in steps per millimeter.
$101 80 Y-axis travel resolution in steps per millimeter.
$102 80 Z-axis travel resolution in steps per millimeter.
$110 6000 X-axis maximum rate. Used as G0 rapid rate.
$111 6000 Y-axis maximum rate. Used as G0 rapid rate.
$112 6000 Z-axis maximum rate. Used as G0 rapid rate.
$120 500 X-axis acceleration. Used for motion planning to not exceed motor torque and lose steps.
$121 500 Y-axis acceleration. Used for motion planning to not exceed motor torque and lose steps.
$122 500 Z-axis acceleration. Used for motion planning to not exceed motor torque and lose steps.
$130 285 Maximum X-axis travel distance from homing switch. Determines valid machine space for soft-limits and homing search distances.
$131 272 Maximum Y-axis travel distance from homing switch. Determines valid machine space for soft-limits and homing search distances.
$132 80 Maximum Z-axis travel distance from homing switch. Determines valid machine space for soft-limits and homing search distances.
$Homing/Cycle1 0/Z $Homing/Cycle1=0 or $Homing/Cycle1=Z

Any help would be awesome guys!!! :grinning:

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