Limit switches on z axis

Hi, how do I add the Z axis to homing cycle?

Did you add a Z axes?

I didn’t think the Atomstack had a z axes…?


Unless the control board has options, you generally have to re-compile the grbl firmware and reload it back into the controller…

Some control boards are flexible enough to have this configurable from something like an sd card…

:smile_cat:

Hi, I have added a z-axis adjuster and stepper motor so that I can engrave and cut within the same program. My idea is that the z-axis is a set distance above the Bed, I then instruct the module to move a set distance depending on the operation:- set distance:- 15mm- matl+focus = zmove.This why I want to include the Z-axis in the homing cycle.

As far as I know there isn’t a factory setup for this… You probably should have checked for this operation before you modified your machine…

@berainlb might know… he’s more up on these than I.

It might be helpful if you can give us the boot/connection message when the machine connects in the console.

:smile_cat:

For original GRBL Z-homing needs to be compiled into the firmware from the beginning. Some newer GRBL variants allow for homing sequence to be configured after compilation so will depend on the specific variant on your laser controller.

What laser is this for?

my Laser is a "LaserTree LT-80W-AA(24v)

I’m not familiar with the firmware that would be used on that board.

Can you run these commands in Console and return output?

$I
$$

I 'm using LIGHTBURN" which uses GRBL

Let me reiterate. I’m not familiar with the specific variant of GRBL that’s used as the firmware on that laser.

Can you run the two commands listed and return output?

$I returns V1.i $$ returns :- $130=380 $131=380 $132=10
$133=300 $134=300 $135=300

I think you should copy the output from your console and paste it here… He’d like to see the whole output of both commands…

:smile_cat:

limit switchWaiting for connection…
Waiting for connection…
���lD�ok
ok
[VER:1.1h.2020062101:]
[OPT:MPHSW]
[MSG:Using machine:MKS DLC32]
[MSG:Mode=AP:SSDI=MKS_DLC_CS49274:IP=192.168.4.1:MAC=C4-DE-E2-DB-7A-C1]
ok
$I
[VER:1.1h.2020062101:]
[OPT:MPHSW]
[MSG:Using machine:MKS DLC32]
[MSG:Mode=AP:SSDI=MKS_DLC_CS49274:IP=192.168.4.1:MAC=C4-DE-E2-DB-7A-C1]
ok
$$
$0=10
$1=25
$2=4
$3=7
$4=0
$5=1
$6=0
$10=3
$11=0.010
$12=0.002
$13=0
$20=0
$21=0
$22=1
$23=3
$24=300.000
$25=600.000
$26=250.000
$27=1.000
$28=1000.000
$30=1000.000
$31=0.000
$32=1
$38=1
$40=1
$100=80.176
$101=80.633
$102=3566.380
$103=100.000
$104=100.000
$105=100.000
$110=6000.000
$111=6000.000
$112=600.000
$113=1000.000
$114=1000.000
$115=1000.000
$120=500.000
$121=500.000
$122=500.000
$123=200.000
$124=200.000
$125=200.000
$130=380.000
$131=380.000
$132=10.000
$133=300.000
$134=300.000
$135=300.000
ok

Looks like the board is based on MKS_DLC32. In that case it’s likely using GRBL_ESP32 as the base for the firmware.

Try running this in Console. It should first home Z and then XY.

$Homing/Cycle0=Z
$Homing/Cycle1=XY

If that doesn’t work, can you run this in Console and return output?

$settings/list

Hi. thanks for that, Tried all of those commands in the console but none were recognized so it looks like I will have to buy a new board to achieve what I am hoping for. is grbl_esp32 a download have not checked it out yet, the next step.

Did you try running $settings/list as well? If that doesn’t work, try $S.

If your board is indeed a MKS DLC32 I don’t think you’ll have to. Worst case is that you could load an alternative firmware.

It is but I’m fairly certain that you should already be using it.

GitHub - bdring/Grbl_Esp32: A port of Grbl CNC Firmware for ESP32

However, if you’re going to swap firmware you may want to look at FluidNC. It’s derived from GRBL and compatible with it. It’s written by the same author as GRBL_ESP32 but extended.

GitHub - bdring/FluidNC: The next generation of motion control firmware

just checked the board and it does have an esp32mounted the $homing runs do nothing,$settings/list and $S also give results so it looks like I just have to load new firmware. will try

Hi, Firstly a BIG THANKS for pointing me in the right direction.
I downloaded FLUIDNC plus another couple of items . PLATFORM IO and PYTHON looked at them, never used python, tried platform and got nowhere so gave it away . The day,as is my usual practice in similar circumstances I tried again, and, miracles do happen, my Z axis was racing away, not in the right direction, but it was moving. So after a few adjustments I now have control of my Z axis, which was all I wanted in the first pace. Now all I have to do is finalize how I adjust “Z” in various stages of engraving and cutting. Once again a BIG THANKS. Col