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

conditional Gcode with printer Mode

Scheduled Pinned Locked Moved
Gcode meta commands
2
3
182
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
    Pseud3mys
    last edited by 15 Jun 2021, 12:49

    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 !

    undefined 1 Reply Last reply 15 Jun 2021, 12:51 Reply Quote 0
    • undefined
      jay_s_uk @Pseud3mys
      last edited by 15 Jun 2021, 12:51

      @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

      undefined 1 Reply Last reply 15 Jun 2021, 13:00 Reply Quote 1
      • undefined
        Pseud3mys @jay_s_uk
        last edited by 15 Jun 2021, 13:00

        @jay_s_uk thank you !

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