Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Fan turn on and of in Tfree and tpre

    General Discussion
    3
    5
    58
    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.
    • matej1006
      matej1006 last edited by

      Hello

      I have one question.
      can i control which fan works in ftree and tpre
      here is code:
      tfree:
      M106 PO S0
      M106 P1 S0
      M106 P2 S0
      M106 P3 S0
      G53 G0 X54.4 Y322.5 F25000 ; Rapid to the approach position with tool-0. (park_x, park_y - offset)
      G53 G1 Y366.5 F10000 ; Controlled move to the park position with tool-0. (park_x, park_y)
      M98 P"/macros/tool_unlock.g" ; Unlock the tool
      G53 G1 Y322.5 F6000 ; Retract the pin.

      tpre:

      M106 PO S1
      M106 P1 S0
      M106 P2 S0
      M106 P3 S0
      G0 X54.4 Y322.5 F25000 ; Rapid to the approach position without any current tool.
      G1 Y366.5 F10000 ; Controlled move to the pickup position with tool-0.
      M98 P"/macros/tool_lock.g" ; Lock the tool
      G1 Y322.5 F6000 ; Retract the entire tool.
      G60 S2 ; Save this position as the reference point from which to later apply new tool offsets.

      1 Reply Last reply Reply Quote 0
      • dc42
        dc42 administrators last edited by

        Yes you can do that. You can also configure different tools to use different print cooling fans, see the F parameter in the M563 command.

        1 Reply Last reply Reply Quote 1
        • matej1006
          matej1006 last edited by

          like that:

          ; Tool definitions
          M563 P0 S"TOOL1" D1 H1 F0 ; Define tool 1
          G10 P0 Z-3.75 ; Set tool 1 offset from the bed
          G10 P0 S190 R170 ; Set tool 1 operating and standby temperatures(-273 = "off")
          ;M572 D0 S0.1 ; Set pressure advance on Extruder Drive 0

          M563 P1 S"TOOL2" D2 H2 F1 ; Define tool 2
          G10 P1 X0.1 Y1.8 Z-2.65 ; Set tool 2 offset from the bed with tool-0 as a reference.
          G10 P1 S190 R170 ; Set tool 2 operating and standby temperatures(-273 = "off")
          ;M572 D1 S0.1 ; Set pressure advance on Extruder Drive 1,

          M563 P0 S"TOOL3" D3 H3 F2 ; Define tool 3
          G10 P0 Z-3.75 ; Set tool 3 offset from the bed
          G10 P0 S190 R170 ; Set tool 3 operating and standby temperatures(-273 = "off")
          ;M572 D0 S0.1 ; Set pressure advance on Extruder Drive 0

          M563 P1 S"TOOL 4" D4 H4 F3 ; Define tool 4
          G10 P1 X0.1 Y1.8 Z-2.65 ; Set tool 4 offset from the bed with tool-0 as a reference.
          G10 P1 S190 R170 ; Set tool 4 operating and standby temperatures(-273 = "off")
          ;M572 D1 S0.1 ; Set pressure advance on Extruder Drive 1

          deckingman 1 Reply Last reply Reply Quote 0
          • deckingman
            deckingman @matej1006 last edited by

            @matej1006 Exactly so. Then any M106 command in the gcode file that you want to print will automatically control the fan that is associated with the active tool.

            1 Reply Last reply Reply Quote 1
            • matej1006
              matej1006 last edited by

              ooo ok awesome so i can delete m106 from tfree and tpre

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