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

    PID Tuning Procedure

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    6
    56
    2.8k
    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.
    • CarlBossonundefined
      CarlBosson @stuartofmt
      last edited by

      @stuartofmt

      SENDING:M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later
      Board ID: 08DGM-917DA-G4MSD-6J1FA-3SJ6N-T8T39
      Used output buffers: 1 of 24 (13 max)
      === RTOS ===
      Static ram: 25712
      Dynamic ram: 93344 of which 484 recycled
      Exception stack ram used: 496
      Never used ram: 11036
      Tasks: NETWORK(ready,628) HEAT(blocked,720) MAIN(running,3760) IDLE(ready,160)
      Owned mutexes:
      === Platform ===
      Last reset 05:04:57 ago, cause: power up
      Last software reset at 2023-06-16 10:27, reason: User, spinning module GCodes, available RAM 11592 bytes (slot 2)
      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
      Error status: 10
      [ERROR] Error status: 10

      Free file entries: 10
      SD card 0 detected, interface speed: 20.0MBytes/sec
      SD card longest block write time: 504.0ms, max retries 0
      MCU temperature: min 26.7, current 44.1, max 48.3
      Supply voltage: min 0.9, current 24.6, max 24.8, under voltage events: 2, over voltage events: 0, power good: yes
      Driver 0: standstill, SG min/max 0/361
      Driver 1: standstill, SG min/max 0/232
      Driver 2: standstill, SG min/max not available
      Driver 3: standstill, SG min/max 0/1023
      Driver 4: standstill, SG min/max not available
      Date/time: 2024-02-20 15:37:13
      Cache data hit count 4294967295
      Slowest loop: 47.05ms; fastest: 0.05ms
      I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
      === Move ===
      Hiccups: 0, FreeDm: 160, MinFreeDm: 140, MaxWait: 12289133ms
      Bed compensation in use: none, comp offset 0.000
      === DDARing ===
      Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
      === Heat ===
      Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
      Heater 0 is on, I-accum = 0.1
      Heater 1 is on, I-accum = 0.9
      === GCodes ===
      Segments left: 0
      Stack records: 4 allocated, 0 in use
      Movement lock held by null
      http is idle in state(s) 0
      telnet is idle in state(s) 0
      file is idle in state(s) 0
      serial is ready with "M122" in state(s) 0
      aux is idle in state(s) 0
      daemon is idle in state(s) 0
      queue is idle in state(s) 0
      autopause is idle in state(s) 0
      Code queue is empty.
      === Network ===
      Slowest loop: 505.69ms; fastest: 0.00ms
      Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
      HTTP sessions: 0 of 8

      • WiFi -
        Network state is running
        WiFi module is connected to access point
        Failed messages: pending 0, notready 0, noresp 0
        WiFi firmware version 1.21
        WiFi MAC address cc:50:e3:0d:29:ce
        WiFi Vcc 3.40, reset reason Turned on by main processor
        WiFi flash size 4194304, free heap 17096
        WiFi IP address 192.168.1.151
        WiFi signal strength -61dBm, reconnections 0, sleep mode modem
        Socket states: 0 0 0 0 0 0 0 0
      droftartsundefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator @CarlBosson
        last edited by

        @CarlBosson said in PID Tuning Procedure:

        Firmware Version: 2.05.1 (2020-02-09b1)
        WiFi Server Version: 1.21
        Web Interface Version: 1.22.6

        Your firmware versions are very out of date. Most of the code suggestions you will get here likely won't work as expected.

        I suggest you update your firmware. You'll need to generate a fresh config set for RRF3. https://configtool.reprapfirmware.org/

        If you still have access to DWC. Upload these zip files, one at a time in the system tab. Don't extract them first. Reboot after each. Use M115 in the gcode console to verify the firmware has been applied.
        https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
        https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
        https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/Duet2and3Firmware-3.3.zip
        https://github.com/Duet3D/RepRapFirmware/releases/download/3.4.5/Duet2and3Firmware-3.4.6.zip

        Z-Bot CoreXY Build | Thingiverse Profile

        CarlBossonundefined 3 Replies Last reply Reply Quote 0
        • droftartsundefined
          droftarts administrators @CarlBosson
          last edited by

          @CarlBosson If you don't want to update the firmware, you can still tune the heaters. You just can't tune them as a tool. Use M303 H1 S200 instead.

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          CarlBossonundefined 1 Reply Last reply Reply Quote 0
          • CarlBossonundefined
            CarlBosson @Phaedrux
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • CarlBossonundefined
              CarlBosson @Phaedrux
              last edited by

              @Phaedrux

              Thank you for all your help. Sorry for the late response, I have been out sick. Things are a little busy now and I have playing catch up, I may have to take this machine home to work on it. I am sure I will have questions as I go. Thanks and have a great day.

              Carl

              1 Reply Last reply Reply Quote 0
              • CarlBossonundefined
                CarlBosson @droftarts
                last edited by

                @droftarts said in PID Tuning Procedure:

                Thank you for your input and the option that you offer. I think I will try to fix it once and for all. "I know that is a fantasy".

                Carl

                1 Reply Last reply Reply Quote 0
                • CarlBossonundefined
                  CarlBosson @Phaedrux
                  last edited by

                  @Phaedrux I have updated to firmware Ver 3.3.
                  But the kink you sent to Ver 3.4.6 says file not found?

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

                    @CarlBosson sorry typo
                    https://github.com/Duet3D/RepRapFirmware/releases/download/3.4.6/Duet2and3Firmware-3.4.6.zip

                    Z-Bot CoreXY Build | Thingiverse Profile

                    CarlBossonundefined 3 Replies Last reply Reply Quote 0
                    • CarlBossonundefined
                      CarlBosson @Phaedrux
                      last edited by

                      @Phaedrux Ok I have that done.

                      I need to be honest. I am in way over my head! Thank you for all the help.

                      Yesterday I connected to my home network and had access to the DWC but now it will not connect to the same IP address. When I enter M587 via YAT I get the following message?

                      M587
                      Failed to retrieve network list: another SPI transfer is pending
                      ok

                      1 Reply Last reply Reply Quote 0
                      • CarlBossonundefined
                        CarlBosson @Phaedrux
                        last edited by

                        @Phaedrux Current M122

                        M122
                        === Diagnostics ===
                        RepRapFirmware for Duet 2 WiFi/Ethernet version 3.3 (2021-06-15 21:44:54) running on Duet WiFi 1.02 or later
                        Board ID: 08DGM-917DA-G4MSD-6J1FA-3SJ6N-T8T39
                        Used output buffers: 1 of 24 (4 max)
                        === RTOS ===
                        Static ram: 23876
                        Dynamic ram: 73796 of which 84 recycled
                        Never used RAM 16660, free system stack 170 words
                        Tasks: NETWORK(ready,7.7%,521) HEAT(delaying,0.0%,386) Move(notifyWait,0.1%,364) MAIN(running,92.1%,461) IDLE(ready,0.1%,29), total 100.0%
                        Owned mutexes: USB(MAIN)
                        === Platform ===
                        Last reset 00:21:12 ago, cause: power up
                        Last software reset details not available
                        Error status: 0x00
                        Step timer max interval 0
                        MCU temperature: min 37.0, current 40.3, max 40.8
                        Supply voltage: min 0.3, current 24.6, max 24.7, under voltage events: 1, over voltage events: 0, power good: yes
                        Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
                        Driver 0: position 0, standstill, SG min/max not available
                        Driver 1: position 0, standstill, SG min/max not available
                        Driver 2: position 0, standstill, SG min/max not available
                        Driver 3: position 0, standstill, SG min/max not available
                        Driver 4: position 0, standstill, SG min/max not available
                        Driver 5: position 0
                        Driver 6: position 0
                        Driver 7: position 0
                        Driver 8: position 0
                        Driver 9: position 0
                        Driver 10: position 0
                        Driver 11: position 0
                        Date/time: 1970-01-01 00:00:00
                        Cache data hit count 4294967295
                        Slowest loop: 101.25ms; fastest: 0.13ms
                        I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                        === Storage ===
                        Free file entries: 10
                        SD card 0 detected, interface speed: 20.0MBytes/sec
                        SD card longest read time 0.9ms, write time 0.0ms, max retries 0
                        === Move ===
                        DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
                        === MainDDARing ===
                        Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                        === AuxDDARing ===
                        Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                        === Heat ===
                        Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
                        === GCodes ===
                        Segments left: 0
                        Movement lock held by null
                        HTTP is idle in state(s) 0
                        Telnet is idle in state(s) 0
                        File is idle in state(s) 0
                        USB is ready with "M122" in state(s) 0
                        Aux is idle in state(s) 0
                        Trigger is idle in state(s) 0
                        Queue is idle in state(s) 0
                        LCD is idle in state(s) 0
                        Daemon is idle in state(s) 0
                        Autopause is idle in state(s) 0
                        Code queue is empty.
                        === Network ===
                        Slowest loop: 0.33ms; fastest: 0.00ms
                        Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
                        HTTP sessions: 0 of 8

                        • WiFi -
                          Network state is starting2
                          WiFi module is disabled
                          Failed messages: pending 0, notready 1, noresp 0
                          Socket states: 0 0 0 0 0 0 0 0
                          ok
                        1 Reply Last reply Reply Quote 0
                        • CarlBossonundefined
                          CarlBosson @Phaedrux
                          last edited by

                          @Phaedrux Here are my attempts to restart the wifi below

                          • WiFi -
                            Network state is starting2
                            WiFi module is disabled
                            Failed messages: pending 0, notready 1, noresp 0
                            Socket states: 0 0 0 0 0 0 0 0
                            ok
                            M552
                            WiFi module is being started
                            ok
                            M552
                            WiFi module is being started
                            ok
                            M552
                            WiFi module is being started
                            ok
                            M552 S-1
                            WiFi module stopped
                            ok
                            M552
                            WiFi module is disabled
                            ok
                            M552 S0
                            ok
                            M552
                            WiFi module is being started
                            ok
                            M587
                            Failed to retrieve network list: another SPI transfer is pending
                            ok
                          1 Reply Last reply Reply Quote 0
                          • Phaedruxundefined
                            Phaedrux Moderator
                            last edited by

                            Try sending these commands to reflash the wifi module as it sounds like it may have failed on 3.3 which has happened before. Make sure you have the wifiserver bin file in the new firmwares folder.

                            M552 S-1
                            M552 S0
                            M997 S1
                            M552 S1

                            Z-Bot CoreXY Build | Thingiverse Profile

                            CarlBossonundefined 1 Reply Last reply Reply Quote 0
                            • CarlBossonundefined
                              CarlBosson @Phaedrux
                              last edited by

                              @Phaedrux I am sorry, I did not see that you posted yesterday. I will work on this this afternoon and supply feedback.

                              I also completed the RepRap firrmwareconfigtool you suggested and have it saved but not yet installed. do I upload that into the system folder the same way as the firmware updates?

                              Carl

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

                                Yes at the end of the config tool process you can download your config files as a zip file. Upload that zip file to the system tab in DWC to install them. Backup your SD card first if you want to preserve your existing configuration files.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                CarlBossonundefined 2 Replies Last reply Reply Quote 0
                                • CarlBossonundefined
                                  CarlBosson @Phaedrux
                                  last edited by

                                  @Phaedrux
                                  I have connected via YAT and USB. Keyed in M552 S0 and get the following:

                                  M552 S1
                                  Turn off the current WiFi mode before selecting a new one
                                  ok

                                  I backed up the SD Card yesterday in preparation.

                                  1 Reply Last reply Reply Quote 0
                                  • CarlBossonundefined
                                    CarlBosson @Phaedrux
                                    last edited by

                                    @Phaedrux
                                    I am still at a complete stand still here. Were you waiting for input from me?

                                    Carl

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

                                      @CarlBosson said in PID Tuning Procedure:

                                      Were you waiting for input from me?

                                      Yes. Have you sent these commands and what is the output of each?

                                      M552 S-1
                                      M552 S0
                                      M552 S1
                                      M997 S1

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      CarlBossonundefined 3 Replies Last reply Reply Quote 0
                                      • CarlBossonundefined
                                        CarlBosson @Phaedrux
                                        last edited by

                                        @Phaedrux

                                        I sent the first command in the list M552 S1 and the response was as follows, see below. In this case I stopped at this point because this seemed to be a problem. Tonight when I get home I will enter each command and post each response. I feel like if we could get the Wi-fi working that would be 90% of the battle. Thank you for your help.

                                        "M552 S1
                                        Turn off the current Wi-Fi mode before selecting a new one
                                        ok"

                                        Carl

                                        oliofundefined 1 Reply Last reply Reply Quote 0
                                        • oliofundefined
                                          oliof @CarlBosson
                                          last edited by

                                          @CarlBosson the first command in the list is

                                          M552 S-1 (S minus one)

                                          that disables the wifi

                                          <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                                          1 Reply Last reply Reply Quote 0
                                          • CarlBossonundefined
                                            CarlBosson @Phaedrux
                                            last edited by

                                            @Phaedrux said in PID Tuning Procedure:

                                            M552 S-1
                                            WiFi Module stopped
                                            ok
                                            M552 S0
                                            ok
                                            M552 S1
                                            WiFi module stopped
                                            ok
                                            M997 S1
                                            Error: M997: File 0:/firmware/duetwifiServer.bin not found
                                            ok

                                            Here are the responses to the commands you asked me to send. Se above.

                                            YAT Commands.jpeg

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