Method to read Trig. Height returned from G30 S-1?
-
Hi,
Does anyone know how to save trigger height returned by "G30 S-1" in a variable ? or does it get saved in some object model parameter that can be read in a variable ?
-
@jayt you can save it via M500 i think
-
Using G30 S-3 and M500 P31 would measure the trigger height and then save it to config-override.g
https://duet3d.dozuki.com/Wiki/G30
https://duet3d.dozuki.com/Wiki/M500 -
You probably want to read sensors.probes[].lastStopHeight if you want to use it in a macro or something
Or you might want trigger height depending on your use caseThe full list is here
https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation -
-
@jayt said in Method to read Trig. Height returned from G30 S-1?:
How to save object-model data into a variable?
https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands#Section_Variables
have you seen this?
-
@jayt
Sounds like you're trying to do something like thishttps://forum.duet3d.com/topic/22139/macro-for-automatic-calibration-of-bl-touch
You may have to modify to suit your machine and requirements
-