G30 Question / Feature Request
-
This post is deleted! -
@jay_s_uk said in G30 Question / Feature Request:
My probe is offset in the - in X and + in Y so you'll have to adjust whether it adds or takes aways the value to suit your probe position.
The probe offsets are signed values so you don't need to use the abs function.
My printer is configured with X=0 Y=0 at the center of the bed so I just do this:
G1 X{-sensors.probes[0].offsets[0]}, Y{-sensors.probes[0].offsets[1]}, F6000
Frederick
-
This post is deleted! -
@jay_s_uk said in G30 Question / Feature Request:
@fcwilt I do have to use abs if I want to add a negative value...
As I said the probe offsets are signed - just subtract them.
Using your example 130 - -10 = 140.
Frederick
-
This post is deleted! -
@jay_s_uk said in G30 Question / Feature Request:
@fcwilt or use abs....
But why? The offsets are correct as they are if you just subtract them for both X and Y.
You have +abs for X and -abs for Y which means you are adjusting the formula based on the sign of the offset.
You are making an adjustment that you don't need to make.
By simply using subtraction the same formula works for everyone.
Frederick
-
This post is deleted! -
@jay_s_uk said in G30 Question / Feature Request:
because
- its cleaner code than using - -
You don't use - -
I was showing the subtraction of a negative offset - which results in the correct value.
Without abs is "cleaner" because, as I said, the same formula works for all printers.
Frederick
-
This post is deleted! -
@jay_s_uk said in G30 Question / Feature Request:
@fcwilt
abs works for all printers
i'm not going to argue any more
case closedSorry but your approach requires adjusting the formula based on the sign of the offset.
The simple, correct approach does not.
Frederick
-
i have nothing to input on this subject
-
@PCR said in G30 Question / Feature Request:
Running 3.2 stable.
if i type
G30 X100 Y100 P0 Z-9999
it will probe at the 100/100 with the probe offset in mind
But if it want to home my machine with a G30
G30 X100 Y100
does not probe at at 100/100. It probes at the current location. I suppose thats normal?
So before i home my machine i have to Go to G1 X130 Y100 when my prob offset is -30.Best
OK back to your question.
It has been suggested more than once that a G30 with no P parameter respect the X and Y parameters so the probe gets moved to the correct XY position, taking into account the probe X and Y offsets.
You can add your voice to this suggesting in the category for firmware updates.
As it stands you have to use a normal G1 command with X and Y adjusted according to the probe offsets.
You can compute the values for X and Y yourself or you can use the conditional code feature of v3 firmware to do it for you - if you wish.
Frederick