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
256 stars 105 forks source link

To manage the Z axis with LS ESP32 Pro V 2.1 #479

Open stef-ladefense opened 1 month ago

stef-ladefense commented 1 month ago

Add a driver (TMC2200, 2208, 2209, U4988 or a DRV8825), whatever you have on hand.

set M0-M1-M2 with the blockswitch according to your driver.

configure GRBL to XYZ mode with the command $45=2.

and of course the trap is that $102 which adjusts the number of pulse does not work because MKS does not use it, or not for that but the doc is silent on this.

you have to use $49 to configure the number of pulse, and hidden information is in Chinese readme.txt on firmware folder...

2024/01/03 ESP32S3 V4.1 V1.0.0

  1. Clear Z-axis settings when exiting XYZ mode.

2024/01/24 ESP32S3 V4.1 V1.0.1

  1. Modify BLE default name;
  2. Add $49 command to modify Z-axis pulse in XYZ mode.

for those who use endstops for the zero point, it only works for X and Y. the problem is the buggy firmware. The Z-endstop does not return the correct information it returns |Pn:P> instead of |Pn:Z>, so it is confused with the probe the Xendstop returns well |Pn:X> the Yendstop returns well |Pn:Y> so home Z ($HZ) does not work (nor $Homing/Cycle0=Z).

SB

Plasmacharriot commented 3 weeks ago

Hi Stef! Thanks for sharing this issue!

I use TTS-55 laser gantry with LS ESP32 PRO V 2.1 and plasma head to cut sheet metal. Now upgrading for THC that requires Z-Axis homing. You saved me some time for figuring out the firmware bugs.

I am interested in this issue being solved. thanks