Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. fšk
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 11
    • Best 4
    • Controversial 0
    • Groups 0

    Best posts made by fšk

    • Macros & BtnCmd pannel for jogging a delta printer

      So recently I have have found some time to play with my machine again. I'm trying to add a tool changer to it. Anyway, I made myself some macros to more easily jog to the tool position and I thought it might be useful to other people. It lets you jog along the other two sides of the triangle not just the one aligned with X/Y. It also lets you jog in polar coordinates.

      Here are the files

      Inside there is a folder named DeltaJog which you should put in jour macro folder like "/macros/DeltaJog/[all the macros here]"

      Besides the macros, there is also a file for the BtnCmd plugin which contains a custom panel with the jog buttons and a compact layout which is handy when you are making macros of your own.

      For the marcos to work you first need to run the "Init" macro to initialise some global variables.
      I just have: M98 P"/macros/DeltaJog/Init" in my config.g to take care of that.

      Cheers!

      Screenshot 2024-11-07 at 14.06.54.png
      Screenshot 2024-11-07 at 14.05.38.png

      posted in My Duet controlled machine
      fškundefined
      fšk
    • RE: Invitation to share your conditional GCode scripts

      Here is what I use to choose machine type at startup depending on what tool is connected.
      I include a resistor connected to the sensor pin inside the tool connector. This gives a fixed temperature reading and lets the machine choose its type depending on what is connected at startup.

      M308 S23 P"e2temp" Y"thermistor" T100000 B3950 A"ModeSelector"   ;setup a thermistor input as config selection sensor 
      
      
      ;wait for the sensor to start returning meaningful values (don't know if there is a better approach for this) 
      while sensors.analog[23].lastReading==0||sensors.analog[23].lastReading==2000
        echo
      
      ;print the value detected (useful when adding a new mode)
      ;M117 ModeSelector value:{sensors.analog[23].lastReading}
      
      ;depending on sensor reading choose a system folder
      if sensors.analog[23].lastReading==-273.1
        M117 No Attachment Detected.
      elif sensors.analog[23].lastReading<155
        M117 Going to be a CNC.
        M505 P"CNC"
      else 
        M117 Going to be a 3D printer.
        M505 P"Printer"
      
      ;load config.g from the chosen system folder
      M98 P"config.g"
      
      posted in Gcode meta commands
      fškundefined
      fšk
    • RE: Macros & BtnCmd pannel for jogging a delta printer

      @o_lampe that is a good observation:). There is an eye icon in the bottom right corner which opens up the usual DWC top panel (this is a feature of the BtnCmd plugin).

      Screenshot 2024-11-08 at 14.33.03.png

      And if you press the little button with the message bobble icon, it echoes the current polar coordinates to the console.

      Screenshot 2024-11-08 at 14.34.45.png

      posted in My Duet controlled machine
      fškundefined
      fšk
    • RE: Troubles with fans on heater ports

      OK, I figured it out. The config-override.g file was setting up the heaters again after i disabled them in the config file.

      posted in Duet Hardware and wiring
      fškundefined
      fšk