• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    carlacda
    last edited by 16 Jul 2024, 07:47

    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

    undefined 1 Reply Last reply 16 Jul 2024, 10:20 Reply Quote 0
    • undefined
      droftarts administrators @carlacda
      last edited by 16 Jul 2024, 10:20

      @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

      undefined 1 Reply Last reply 16 Jul 2024, 20:17 Reply Quote 0
      • undefined
        carlacda @droftarts
        last edited by 16 Jul 2024, 20:17

        @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
        • undefined dc42 marked this topic as a question 19 Jul 2024, 20:16
        • undefined dc42 has marked this topic as solved 19 Jul 2024, 20:16
        1 out of 3
        • First post
          1/3
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA