Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order
    1. Home
    2. Tags
    3. macro
    Log in to post
    • All categories
    • Shoki

      Solved Tool and probe offset to variabne
      Gcode meta commands • macro variable • • Shoki

      3
      0
      Votes
      3
      Posts
      48
      Views

      Shoki

      @T3P3Tony Thanks a lot ! I missed them when I read through the object model I don't know why.

    • Schild0r

      How to put a conditional question based action into a macro
      Gcode meta commands • macro questionaire conditional gcode conditional actions • • Schild0r

      2
      0
      Votes
      2
      Posts
      173
      Views

      mikeabuilder

      Here's my answer, but it's based on me only knowing one way to "read" a user input - the M291 command. Someone else might have a better method.

      M291 posts a message and the user has two response options, "OK" and "Cancel". According to the M291 wiki page, if the users responds "OK", execution continues, but if they respond "Cancel", it "cancels the operation in progress".

      I use the M291 in the following way:

      global response = "Cancel" ;set the variable to the default Value. M291 P"To keep the default, select "Cancel" R"To change the default to the new value, select OK" S3 ; use the box title and the message to describe the two options. set global. response = "OK"

      I put these lines in their own macro. If the user responds OK, the last line is executed and the global variable becomes the OK value. If they select Cancel, the macro exits without executing the last mine and the "Cancel value is used.

      Someone may know better what "operation in progress" means and maybe this could be written in an if statement in the code.

      A good FW wishlist item would be new M291 parameters to specify the words on the buttons, and have the response stored in the object model so you could read the response directly.

    • o_lampe

      Apply external triggers with 'meaningful' names
      Firmware wishlist • macro trigger • • o_lampe

      1
      0
      Votes
      1
      Posts
      82
      Views

      No one has replied

    • tkamsker

      e3d toolchanger Pause t0,1 right pocket for ooze 2,3 lef
      Duet Hardware and wiring • e3d toolchanger macro • • tkamsker

      2
      0
      Votes
      2
      Posts
      150
      Views

      Phaedrux

      RRF3 isn't so bad really.

      There are even some example config sets using RRF3 to compare against.

      https://github.com/Duet3D/RRF-machine-config-files/tree/master/E3D_Tool_Changer

    • Tommy_Fr

      Solved [Problem] Homing Z works with Macro but not with Home Buttons
      Duet Hardware and wiring • z probe homez homing npn sensor macro • • Tommy_Fr

      15
      0
      Votes
      15
      Posts
      1758
      Views

      Tommy_Fr

      I tested it within several ways, which with bed compensation and it works great.
      Thank you to @dc42.

      You can mark it as solved.

    • 3dmntbighker

      Filament config?
      Tuning and tweaking • filament config macro • • 3dmntbighker

      18
      0
      Votes
      18
      Posts
      4816
      Views

      Phaedrux

      @3dmntbighker Agreed! Here's mine: https://www.dropbox.com/sh/24m8me9jieqk725/AACJMSA0qlxw3KPLf_cjIVT5a?dl=0

    • Martin1454

      Gcode macro - Get parameter (fan rpm)
      General Discussion • macro macros fans setup fans gcode • • Martin1454

      3
      0
      Votes
      3
      Posts
      585
      Views

      dc42

      @martin1454 said in Gcode macro - Get parameter (fan rpm):

      Is there any way to get what the current "fan speed" is for an output...

      Yes, send M106 with just a P parameter to specify the fan,

      ...and use that value to subtract 25 and write to m106?

      Not yet.