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

    best way to check if print is running

    Scheduled Pinned Locked Moved
    Gcode meta commands
    5
    6
    198
    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.
    • cosmowaveundefined
      cosmowave
      last edited by

      Hi all

      If i'd like to check with meta commends if a print is running, which is the best OM value for that?
      I think, there are different possible ways...

      Thanks in advance

      Mankati FSXT+, DeltaTowerV2, E3D MS/TC

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

        @cosmowave state.status

        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

        Notepadundefined 1 Reply Last reply Reply Quote 1
        • Notepadundefined
          Notepad @jay_s_uk
          last edited by

          @jay_s_uk Do you know all the possible outputs of state.status?
          I cant seem to find anything in the docs.duet3d page about it

          The real bamboo printer manufacturer

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

            @Notepad See https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation#statestatus

            state.status
            Current state of the machine
            This property may be one of the following:

            disconnected: Not connected to the Duet
            starting: Processing config.g
            updating: The firmware is being updated
            off: The machine is turned off (i.e. the input voltage is too low for operation)
            halted: The machine has encountered an emergency stop and is ready to reset
            pausing: The machine is about to pause a file job
            paused: The machine has paused a file job
            resuming: The machine is about to resume a paused file job
            cancelling: Job file is being cancelled
            processing: The machine is processing a file job
            simulating: The machine is simulating a file job to determine its processing time
            busy: The machine is busy doing something (e.g. moving)
            changingTool: The machine is changing the current tool
            idle: The machine is on but has nothing to do

            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 2
            • mikeabuilderundefined
              mikeabuilder
              last edited by

              You could also read jobs.duration, sleep for a couple of seconds, then read it again to see it it has incremented.

              cosmowaveundefined 1 Reply Last reply Reply Quote 0
              • cosmowaveundefined
                cosmowave @mikeabuilder
                last edited by

                @mikeabuilder it's probably better to check if it is > 0 (or eventually not = "null")
                then, a single reading should be enough

                Mankati FSXT+, DeltaTowerV2, E3D MS/TC

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