Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Method to read Trig. Height returned from G30 S-1?

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    8
    426
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JayTundefined
      JayT
      last edited by

      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 ?

      PCRundefined OwenDundefined 2 Replies Last reply Reply Quote 0
      • PCRundefined
        PCR @JayT
        last edited by

        @jayt you can save it via M500 i think

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          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

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 1
          • OwenDundefined
            OwenD @JayT
            last edited by

            @jayt

            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 case

            The full list is here
            https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation

            JayTundefined 1 Reply Last reply Reply Quote 2
            • JayTundefined
              JayT @OwenD
              last edited by JayT

              @owend :
              @Phaedrux :
              thank you for quick responses.

              with G30 S-3 and M500 P31 would measure, save and is perfect.

              If not, then I can try taking 4-5 points , save in variables, take average and set that avg value as trigger height to minimize the error?
              How to save object-model data into a variable?

              Phaedruxundefined OwenDundefined 2 Replies Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator @JayT
                last edited by

                @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?

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 1
                • OwenDundefined
                  OwenD @JayT
                  last edited by

                  @jayt
                  Sounds like you're trying to do something like this

                  https://forum.duet3d.com/topic/22139/macro-for-automatic-calibration-of-bl-touch

                  You may have to modify to suit your machine and requirements

                  JayTundefined 1 Reply Last reply Reply Quote 1
                  • JayTundefined
                    JayT @OwenD
                    last edited by JayT

                    @owend :
                    Thank you for the reference. looks like a good base for me.

                    @Phaedrux : thanks, I missed the global var example earlier. Now I see how its read.
                    You can close the thread as solved, As I understand how to read object model variables and where to look for the available variables.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA