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

    sensors.probes[].diveHeight

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    2
    4
    177
    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.
    • jhelmstetterjrundefined
      jhelmstetterjr
      last edited by

      I am running a macro that is using the object "sensors.probes[].diveHeight" I know that it has been replaced by sensors.probes[].diveHeights. I ried updating the macro, however, when I replace diveHeight with diveHeights, I get the error:

      M98 P"0:/macros/Maintenance/Calibrate Z Offset"
      Error: in file macro line 26 column 41: G1: expected numeric operand

      Line 26: G1 Z{sensors.probes[0].diveHeights} F360 ; if axes homed move to dive height

      If I change it back to diveHeight, I get the warning that the object is obsolete, but the macro works.

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

        @jhelmstetterjr
        sensors.probes[].diveHeights[] is an array.
        It contains two dive heights as configured by M558 Hnn:nn

        So you need something like
        sensors.probes[0].diveHeights[1]

        jhelmstetterjrundefined 1 Reply Last reply Reply Quote 2
        • jhelmstetterjrundefined
          jhelmstetterjr @OwenD
          last edited by

          @OwenD Ah, that makes sense. As I only have 1 Z probe, the first element in the array would be 0, correct?

          1 Reply Last reply Reply Quote 0
          • jhelmstetterjrundefined
            jhelmstetterjr
            last edited by

            By the way, that worked. Thanks

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined Phaedrux marked this topic as a question
            • Phaedruxundefined Phaedrux has marked this topic as solved
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA