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

    Help on config.g upgrade from 2.03 to 3.1.1

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    3
    6
    234
    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.
    • Anthonyundefined
      Anthony
      last edited by

      Hi,

      I'm trying to update a config.g (working in 2.03) to a new Duet in RRF3.1.1

      All axes are working fine, but impossible to have my fans controlled by the PWM command. (ebm-papst 4-wire fans, with 25kHz PWM command)
      The M106 has no effect. The 24V is supplied externally, I only use the Duet to generate the PWM signal (wired to FAN0- pin).

      The LED command is working fine, I expect then to not be too far from the truth.

      Concerning the sx1509 outputs, can you confirm I need to declare them first with M950 ?
      Is my config OK for those ? I receive an error message when trying to use a P value >10 (would have loved to keep the old P120-126 to keep the same slicer/gcodes)

      Below my config.g file, with the old RRF2 commands, and my try at updating them to RRF3.

      ;config.g file hopefully compatible with RepRapFirmware 3.1.1
      ; Communication and general
      M111 S0 ; Debug off
      M550 My_new_printer ; Machine name and Netbios name (can be anything you like)

      ;*** Networking
      M552 S0 ; Turn network off

      M555 P2 ; Set output to look like Marlin
      G21 ; Work in millimetres

      ;Define axis
      M584 X0 Y1 Z2 U3 E4

      ;Set drive current an idle current at 20%
      M906 Z1500 X1500 Y1500 U1500 E1500 I20

      ;Set inactive time before idle to 5s
      M84 S5

      ; set microstepping with interpolation
      M350 X16 Y16 Z16 U16 E16 I1

      ;Set axis step/unit
      M92 Z3200 X3200 Y3200 U44.4 E460

      ;Set acceleration
      M201 Z200 X500 Y500 U10000 E3000

      ;Set max feedrate (unit/min)
      M203 Z600 X600 Y600 U108000 E10000 I1

      ;Set instant speed changes mm/minute (Jerk)
      M566 X1200 Y1200 Z1200 E1200

      ; Z probe definition
      ;M558 P5 I1

      ; Axis and motor configuration
      M569 P0 S1 ; Drive 0 X goes forwards
      M569 P1 S1 ; Drive 1 Y goes forwards
      M569 P2 S1 ; Drive 2 Z goes forwards
      M569 P3 S1 ; Drive 3 U goes forwards
      M569 P4 S0 ; Drive 4 E goes backwards

      ;define min and max travel
      ;RRF2: M208 X-25 Y-25 Z0 u-1000000000000 S1; min travel
      ;RRF2: M208 X25 Y25 Z92.5 u1000000000000 S0; max travel
      ;RRF3:
      M208 X-25:25 Y-25:25 Z0:92.5 U-1000000000000:1000000000000

      ;Endstop configuration
      ;RRF2:M574 X1 Y1 Z1 U2 S1
      ;RRF3:
      M574 X1 S1 P"xstop"
      M574 Y1 S1 P"ystop"
      M574 Z1 S1 P"zstop"
      M574 U2 S1 P"e0stop"

      ; Disable heat bed to use as command of the LED light
      ;RRF2:M307 H0 A-1 C-1 D-1
      ;RRF3.1:
      M950 P0 C"bed_heat"
      ;light ON
      M42 P0 S1

      ; Set Fan : H0
      ;RRF2: M106 P0 I1 H-1
      ;RRF3:M950 needed
      M950 F0 C"!fan0" Q25000
      M106 P0 S0.5

      ; Set Fan : H1
      ;RRF2: M106 P1 I1 H-1
      ;RRF3:M950 needed
      M950 F1 C"!fan1" Q25000
      M106 P1 S0.5

      ;set SX1509 outputs
      M950 P9 C"sx1509b:0" ;P0 already used by the LED
      M950 P1 C"sx1509b:1"
      M950 P2 C"sx1509b:2"
      M950 P3 C"sx1509b:3"
      M950 P6 C"sx1509b:6"

      ;Tool definition : still necessary in RRF3 to activate the PWM fan command?
      M563 P0 D0 F0:1
      ;Tool selection
      T0

      G90 ; Send absolute coordinates...
      M83 ; ...but relative extruder moves

      fcwiltundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @Anthony
        last edited by

        @anthony

        What Duet board are you using?

        What are the two fans being used for?

        Did you try a lower PWM frequency?

        Do the fans have a tachometer output? If so you may need a connection to the Duet.

        Did you comment out that M563 near the end of the file?

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        Anthonyundefined 1 Reply Last reply Reply Quote 0
        • Anthonyundefined
          Anthony @fcwilt
          last edited by

          @fcwilt
          It's for a Duet 2 ethernet (1.04)

          Fans used for thermal regulation of the printer chamber.

          The fan datasheet is requesting 25kHz. I will try a lower frequency, as the command was working in RRF2 with the default PWM frequency.

          The fans have a tacho output, but never used it (even cut the wire). Is it needed in RRF3 ?

          I tried with and without commenting the M563, no effect.

          fcwiltundefined 1 Reply Last reply Reply Quote 1
          • fcwiltundefined
            fcwilt @Anthony
            last edited by fcwilt

            @anthony said in Help on config.g upgrade from 2.03 to 3.1.1:

            The fans have a tacho output, but never used it (even cut the wire). Is it needed in RRF3 ?

            I don't know so but the documentation says it is supported.

            As a test try changing the M106 you have to this: M106 P0 L0 X255 S255 H-1

            Thanks.

            Frederick

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

              @anthony to see how to connect a 4-wire fan to a Duet 2, see the "Connecting a 4-wire fan" tab at https://docs.duet3d.com/User_manual/Connecting_hardware/Fans_connecting#connecting-fans-to-duet-fan-pins.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              Anthonyundefined 1 Reply Last reply Reply Quote 0
              • Anthonyundefined
                Anthony @dc42
                last edited by

                Ok, looks like a wiring issue on the PWM wire between the Duet and the fan.

                Thanks for the support!

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