Get position shows negative Z coordinate after homing

I’m so close to completing my DIY laser cutter but one issue thwarts me. Pressing Home everything moves in the correct direction, hits the end stops and pulls off. However, ‘Get Position’, returns X & Y as zero, but Z is negative 27. When I move the bed up, it won’t reach 0 until it has moved 27 mm.

As a result, the $132 Max Z travel does not trigger and the bed crashes into the frame.

Tried various settings without success, trawled the internet, slept on it but no success.

In case it helps, here are my GRBL settings :-

$0=10
$1=25
$2=0
$3=2
$4=0
$5=1
$6=0
$10=0
$11=0.010
$12=0.002
$13=0
$20=0
$21=1
$22=1
$23=4
$24=25.000
$25=700.000
$26=250
$27=1.000
$30=1000
$31=0
$32=1
$100=20.031
$101=9.960
$102=1223.787
$110=1100.000
$111=1100.000
$112=50.000
$120=40.000
$121=40.000
$122=10.000
$130=914.000
$131=97.000
$132=28.000
ok

A screenshot of device settings: -

Screenshots of machine settings: -

Any help gratefully received.

Thanks in advance

Howard

Not much response to this one. Wondering if I need to apply a G10 command for the z axis as Grbl uses negative coordinates. Will try that when home tonight if there are no other suggestions. Will post back results.

A few questions for clarification please.

  1. How are you hoping for this to work? Ideally, how would it function? What should Z position be after homing?
  2. When homing, does Z-axis also home?
  3. What controller are you running and how was the firmware acquired?

Common homing schemes for lasers running GRBL only home X and Y for various reasons.

If your machine is in fact homing Z then you have a few options:

  1. recompile the kernel to set Z position after homing
  2. configure a work offset for Z to adjust position

If your machine does not home or you don’t care about absolute Z position, then you can use “Relative Z moves only” in Edit->Device Settings. This is the most intuitive approach but doesn’t allow you to auto-adjust for material height or other functions that require understanding of absolute height.

Hi Berainlb

My expectation was that once homed, ‘get position’ would show 1mm for all three axis, being zero + the pull off. The issue with getting -27 on the Z axis was that $132=28 would stop the table moving up too far and hitting the super structure. I could have possibly made $135=1 which would only allow it to move 28mm, however I was uncomfortable that my machine was not working as expected and something was wrong.

When I home, the z axis homes first, moves in the correct direction, hits the endstop, backs off and comes down onto it again slowly before doing the pull off.

The controller is an Arduino Uno running Grbl 1.1h.

Managed to sort the issue, when it suddenly came to me. I was following the Lightburn Common GRBL setups. That suggests that if your machine uses negative workspace coordinates then to use a G10 L2 P1 xx yy command. I found the laser homed, bottom right and running any job caused it to move to the right, straight into the end stop. I therefore put G10 L2 P1 x-914 y-97 and it then home to the bottom left and all was well. What I should have done was extended this to the z axis with G10 L2 P1 x-914 y-97 z-27 and it now homes correctly and Get Position returns x, y & z to be 1mm.

Have done that now and it looks to be working.

For anyone thinking of designing their own DIY laser cutter, it is a very rewarding project.

Thanks Berainlb for your help along with the other heroes who save frustration by monitoring this forum. I look forward to cutting out balsa parts to make lots of model aircraft.

All the best

Howard

A post was merged into an existing topic: Impresora da error

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