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

    G29 S0 if G29 S1 not loaded

    Scheduled Pinned Locked Moved Solved
    My Duet controlled machine
    2
    3
    174
    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.
    • carlacdaundefined
      carlacda
      last edited by

      Hi everyone,
      I would like to setup my printer to run bed levelling compensation only once every power-up or reset.

      What approach have you used successfully?

      Thank you
      David

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @carlacda
        last edited by

        @carlacda You can check in the Object Model if mesh compensation is being used, and move.compensation.type will equal "mesh" or "none". So check for that, and if not, run a bed mesh. You can also check for the file name of the mesh in use.

        I'm not sure you can distinguish between if a mesh was loaded, or if a bed mesh probe was run, because if the bed mesh is run, it loads the generated bed mesh at the end of probing.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        carlacdaundefined 1 Reply Last reply Reply Quote 0
        • carlacdaundefined
          carlacda @droftarts
          last edited by

          @droftarts said in G29 S0 if G29 S1 not loaded:

          Object Model

          Hi Ian,
          many thanks for your idea. It did work perfectly.
          Here below my implementation in start.g

          if {move.compensation.type}=="none"
          	echo {"Bed probing started"}
          	G29 S0  ; Probe the bed, save height map to "heightmap.csv" and enable mesh bed compensation
          	echo {"Bed probing complete"}
          else
          	echo {"Bed compensation already loaded. Bed probing skipped."}
          

          David

          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