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

    Upgrading to 3.2, need a once over on code.

    Scheduled Pinned Locked Moved
    Firmware installation
    3
    12
    460
    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.
    • hbrownellundefined
      hbrownell @hbrownell
      last edited by

      @hbrownell
      I set my PWM to heater 3 and here's where the pin is so I'm hoping I'm right.
      wifi.jpg image url)

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        I don't see anything off in the config, but you can check it for syntax errors by booting up and then sending M98 P"config.g" in the gcode console. See if you get any errors or warnings.

        The pin you've highlighted is not heater3. I think you may be looking at it the wrong way round.
        0e68e255-a70f-47ea-844b-b394ae2e7ebb-image.png

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • engikeneerundefined
          engikeneer @hbrownell
          last edited by

          @hbrownell I can see a few syntax errors in your new config. I guess these would pop up if you ran M98 P"config.g" as Phaedrux suggests.

          ; Axis Limits
          M208 X0 Y0 Z0 S1 ; set axis minima
          M208 X0:220 Y-15:210 Z200 S0 ; set axis maxima

          Second M208 is wrong - you should only have the maxima values for X & Y

          M557 X20:180 Y20:180 S80 ; define mesh grid

          it's not wrong, but is there any reason you're only doing a 9-point grid? You might get better results if you do more points (max is 441-points)

          ; Fans
          M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
          M106 P0 S0 H T45 ; set fan 0 value. Thermostatic control is turned on
          M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
          M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on

          Is there any reason you want Fan0 (I presume your part cooling fan) to be thermostatically controlled (but not mapped to a heater...)? This seems to be how you had your old config but seems weird to me.
          I'd have thought you want this to just be controlled by the cooling fan commands from your slicer. In which case, just remove the first M106 command.

          In your bed.g:

          G30 P0 35Y105 Z-99999 ; probe near a leadscrew, half way along Y axis
          G30 P1 X205 Y105 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors

          The first G30 is missing an X for the x-coordinate.

          I would recommend adding a command right at the end of bed.g to rehome Z (e.g. G28 Z) as auto-bed-leveling can alter the bed height. Make sure that your homez.g and homeall.g are probing in the same place (or simply calling homez from within homeall works!)

          I would also uncomment out the M561 at the start of bed.g (and add it in to your homing files too). That way you know for sure that mesh compensation is deactivated whilst homing and running bed leveling. You definitely don't want to call G29 before running the bed leveling in youe bed.g file! If mesh compensation was to be active, you'd find the two would fight/counteract each other and you get some odd results (spoken as someone who lost quite a few hairs before I realised that... 😛 )

          E3D TC with D3Mini and Toolboards.
          Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
          i3 clone with a bunch of mods

          hbrownellundefined 1 Reply Last reply Reply Quote 1
          • hbrownellundefined
            hbrownell @engikeneer
            last edited by

            " I would also uncomment out the M561 at the start of bed.g (and add it in to your homing files too). That way you know for sure that mesh compensation is deactivated whilst homing and running bed leveling. "

            So, to be clear add this to homeall, homex, homey, homez files?
            M561 ; clear any bed transform

            Phaedruxundefined 1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator @hbrownell
              last edited by

              @hbrownell said in Upgrading to 3.2, need a once over on code.:

              So, to be clear add this to homeall, homex, homey, homez files?
              M561 ; clear any bed transform

              Yes.

              Z-Bot CoreXY Build | Thingiverse Profile

              hbrownellundefined 1 Reply Last reply Reply Quote 1
              • hbrownellundefined
                hbrownell @Phaedrux
                last edited by

                @phaedrux Awesome! I'll plug this in right away! Out of curiosity, what command SHOULD I run to do the dual z leveling? I've just been using G29 and leveling the bed from the data. I also have to manually level the x gantry which is a headache and I'd like to be done doing that. 😛

                Phaedruxundefined 1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator @hbrownell
                  last edited by

                  @hbrownell See here for automatic leveling options.

                  https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors

                  Z-Bot CoreXY Build | Thingiverse Profile

                  hbrownellundefined 1 Reply Last reply Reply Quote 0
                  • hbrownellundefined
                    hbrownell @Phaedrux
                    last edited by hbrownell

                    @phaedrux Got it, but I think I caught another error. I'm missing M671 no? and M584 should be ;
                    M584 X0 Y1 Z2:4 E3 yes? Because Z is running 2 and 4?

                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @hbrownell
                      last edited by

                      @hbrownell correct.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      hbrownellundefined 1 Reply Last reply Reply Quote 0
                      • hbrownellundefined
                        hbrownell @Phaedrux
                        last edited by

                        @phaedrux Last question (Hopefully) I erased the old drive but there were several folders and one zip file on it. The new build has but 2 folders sys and www. Do I need any other files to make this work or just plug it in and go?

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          You'll likely need to create a gcodes macros folders at minimum. Though it may be smart enough now to create those if they are missing.

                          Z-Bot CoreXY Build | Thingiverse Profile

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