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

    Sub-expressions separated by colon results in error

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    2
    3
    116
    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.
    • reroundefined
      rero
      last edited by

      I am trying to offset my axes-limits with machine-dependant values.

      So when I am trying to execute M208 with two expressions separated with a ':', I get an error:
      "M208: Z axis maximum must be greater than minimum"

      var offset_z = 1.0
      M208 Z{-10+var.offset_z}:{136+var.offset_z}
      

      Separating min-/max-values works with no problems

      var offset_z = 1.0
      M208 Z{136+var.offset_z} S0
      M208 Z{-10+var.offset_z} S1
      

      Is this behaviour to be expected?

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @rero
        last edited by

        @rero I believe it should be

        M208 Z{-10+var.offset_z,136+var.offset_z}
        

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        reroundefined 1 Reply Last reply Reply Quote 1
        • reroundefined
          rero @jay_s_uk
          last edited by

          @jay_s_uk thx a lot!

          You are absolutely right.
          And to my shame: got this information already last week, and forgot about it .. 🤦

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