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

    conditional Gcode with printer Mode

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    3
    183
    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.
    • Pseud3mysundefined
      Pseud3mys
      last edited by

      Hi !
      I what to make to different pause script, one for the CNC mode and one for the FFF mode. Who can I make a "if" command with the M450 command ?
      like:

      if M450 == "PrinterMode:FFF"
      ;one pause script..
      if M450 == "PrinterMode:CNC"
      ;second pause script
      

      thank you !

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

        @pseud3mys you need to check the object model
        so state.machineMode

        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

        Pseud3mysundefined 1 Reply Last reply Reply Quote 1
        • Pseud3mysundefined
          Pseud3mys @jay_s_uk
          last edited by

          @jay_s_uk thank you !

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