Error 20 after installing homing switches

Waiting for connection…
ok
[VER:1.1.2022051001:]
[OPT:PHSW]
[MSG:Using machine:MKS DLC32]
[MSG:Mode=AP:SSDI=MKS_DLC:IP=192.168.4.1:MAC=B8-D6-1A-31-23-31]
ok
Starting stream
Layer C00 Pass 1 of 2
[MSG:M4 requires laser mode or a reversable spindle]
error:20
Unsupported or invalid g-code command found in block.
On or near line 2:
Job halted
Stream completed in 0:00
also:
; LightBurn 1.3.01
; GRBL device profile, current position
; Bounds: X-0 Y0 to X66.59 Y40.5
G00 G17 G40 G20 G54
G91
M4
; Cut @ 300 mm/min, 30% power
M9
G0 X0.2588Y0.3904
; Layer C00 Pass 1 of 2
G1 X0.0045Y-0.001S300F11.811
G1 X0.0042Y0.0011
G1 X0.0036Y0.0021
G1 X0.0027Y0.0028
G1 X0.0016Y0.0033
G1 X0.0008Y0.0035
G1 X-0.0003Y0.0036
G1 X-0.0012Y0.0033
G1 X-0.0023Y0.003
G1 X-0.0032Y0.0023
G1 X-0.0044Y0.0012
G1 X-0.0047Y-0.0003
G1 X-0.0044Y-0.0018
G1 X-0.0033Y-0.003
G1 X-0.0015Y-0.0032
G1 X-0.0006Y-0.0039

any help will be appreciated.
Bill

Can you check the value of $32? It should be = 1

$32 sets your controller to laser mode

thanks it is 1

It seems that V (Variable Spindle mode) has been optioned out.
I’ll go look at the build options to see if it’s been renamed or reworked.

What are you working on? I’ve seen everything here from Long-arm quilting machines, to drag-point engravers to Plasma cutters. Please do share what you’re up to.

Just laser engraving. I got the DLC board, after a lot of hair pulling. Then hooked up homing switches. It homes it will frame but when it comes time to engrave the laser module moves a very short distance and stops

I believe that the Variable Spindle feature (in the build options) was inadvertently turned off when the Switches were enabled. The variable spindle feature was written to use PWM to control a spindle for machining but for laser engravers, its almost always used to control the power output of the Laser.

Are you already into the Firmware and reflashing the controller?

Oh my if your willing to walk me through the procedure

Next question…

Do you have a TS24 or a TS35 based screen (or neither) on your laser Engraver?
This is a minor change to our staring point.

This purchase link offers clear pictures of each available model.
https://www.aliexpress.com/item/1005003183498253.html?spm=a2g0o.store_pc_allProduct.8148356.1.6aa17f59RmHSoR

We should also capture the Machine Settings so we can reconfigure if they go awry.
In the Console window in LightBurn please request some reports by typing the following:
$$
$#
$i
?
pressing enter after each request.

Please Copy and paste these into a reply here. We may need to keep a record of all the things that are working and correct before the next sweeping change.

One other thing that’s important. The version number on the board may not show from the requested reports.

PDF files (line drawings) of the top of the Board can be found here:

Each of the 6 Folders represents a different version of the board. There should be a version number printed on the ‘TOP’ (front face) of the board that you have. Please share that number and confirm it against one of the ‘TOP’ drawings from one of the folders and let me know which board you have.

ok

$$

$0=10

$1=25

$2=0

$3=5

$4=0

$5=1

$6=0

$46=10.000

$10=0

$11=0.005

$12=0.002

$13=0

$20=1

$21=0

$22=1

$23=3

$24=25.000

$25=500.000

$26=250.000

$27=1.000

$28=1000.000

$30=1000.000

$31=0.000

$32=1

$38=1

$40=1

$100=81.663

$101=81.663

$102=80.000

$103=100.000

$104=100.000

$105=100.000

$110=6000.000

$111=6000.000

$112=1600.000

$113=1000.000

$114=1000.000

$115=1000.000

$120=1000.000

$121=5000.000

$122=10.000

$123=200.000

$124=200.000

$125=200.000

$130=380.000

$131=370.000

$132=200.000

$133=300.000

$134=300.000

$135=300.000

ok

$#

[G54:0.000,0.000,0.000]

[G55:0.000,0.000,0.000]

[G56:0.000,0.000,0.000]

[G57:0.000,0.000,0.000]

[G58:0.000,0.000,0.000]

[G59:0.000,0.000,0.000]

[G28:0.000,0.000,0.000]

[G30:0.000,0.000,0.000]

[G92:0.000,0.000,0.000]

[TLO:0.000]

[PRB:0.000,0.000,0.000:0]

ok

$I

[VER:1.1.2022051001:]

[OPT:PHSW]

[MSG:Using machine:MKS DLC32]

[MSG:Mode=AP:SSDI=MKS_DLC:IP=192.168.4.1:MAC=B8-D6-1A-31-23-31]

ok

?

<Idle|WPos:0.000,0.000,0.000|FS:0,0|Pn:PZ|WCO:0.000,0.000,0.000>

ok

DLC32 V2.1

I have TS24 that looks like it is reversed can’t get MKS to tell me why.

Thanks you for your help.

be back tomorrow

1 Like

let me know at your convenience

1 Like

let me know at your convenience

The last thing I’m waiting on is the model number printed on the front/top plane of the control board. A picture of the board would be welcome.

DLC32 V2.1

It shouldn’t matter beyond the 2.1, the differences seem trivial. I’m just digging into the source code now.

2.1.01?
Release Notes:

  • PCB is black immersion gold
  • V2.0_001 change to V2.1_001

2.1.02?
Release Notes:

  • The direction of J18 buckle is 180 degrees, the line sequence remains unchanged
  • V2.1_001 change to V2.1_002

2.1.03?
Release Notes:

  • Add the driver slot silk screen, and the endstops silk screen is on the motherboard BOTTOM
  • V2.1_002 change to V2.1_003

pretty sure 01 version


This looks like the Current V2.1.003 the Limit switches are silkscreened on the bottom of the board.

20230302_174406 crop limit switch

V2.1.01 & V2.1.02:
2023-03-02_16-20-39 2.1.001+002

V2.1.03: And that’s when i saw the 003 version number.
2023-03-02_16-20-39 2.1.003

20230302_174406 crop bottom

I would test rubbing alcohol and a Q-tip on the blue stuff.
Humidity can be an unwanted adversary.

I’ll post back when I have a binary for you to try. :slight_smile:

Here’s the Binary file that I would test first:

If it’s unsuitable, a better one could be built from the source code.

Here are the directions.

This shouldn’t be too bad with Windows 10. Ignore everything under the word Linux for your firmware attempts.

Thank you attached is a screenshot it has been in sync for over 1 hour and still going, is this normal?