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

    hi, i am new here can anyone help me

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    3
    157
    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.
    • Quicksilverstarundefined
      Quicksilverstar
      last edited by

      HI,i am now to the Duet Family i have just upgraded my flsun to have a duet2

      I want to ask I have seen that you can create conditions where you can use an if statement

      like if !move.axes[0]

      is there a list of the variables as i want to create an if statement
      to detect if the level probe is still connected
      so it can not start printing when it is still connected

      as this will make the probe crash into the bed

      when my probe is connected on the dashboard the Z-probe is read and reading 1000

      is there a way of reading this and creating a condition using
      something like

      if sensor.in (what ever is the z-probe)

      1 Reply Last reply Reply Quote 0
      • achrnundefined
        achrn
        last edited by

        What you are looking for is called the object model, so searching for that might help.

        If you have DWC 3.3.0 or later there's a built-in plugin called 'Object Model Browser' that lets you browse the list, that's quite helpful. in teh web control Settings - General - Built In Pluhgins tab and enable the browser.

        If you are running SBC you can go to http://<insert your printers IP address>/machine/status and get a full dump, and if your browser has a JSON prettifying function that's even easier to work than teh browser (I find).

        There's documentation at https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation#overview

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

          @quicksilverstar also set https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands for conditional gcode commands and variables.

          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

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