PID Tuning Procedure
-
@droftarts
I tried the M300 T0 S200 command but nothing happened. See what was returned below.M303 T0 S200
SENDING:M303 T0 S200
No heater has been tuned yet -
@stuartofmt
Do I just copy and past the code
into a new Macro in the User interface? -
@CarlBosson said in PID Tuning Procedure:
@stuartofmt
Do I just copy and past the code
into a new Macro in the User interface?No, that would be a bad idea as the PID tuning parameters (in the first macro) depend a lot on your printer.
I offered up the macro as a way of assisting in understanding some of the parameters, assuming you may have been familiar with running macros.Can you descibe your machine ? From the config file it looks to have two different hotend heaters (H1 and H2) and a bed heater (H0) ? If so, how do you switch between the two different hotends?
Also - it looks like you may be running old versions of the firmware and DWC - can you comfirm by posting the output of M122
-
@stuartofmt said in PID Tuning Procedure:
Can you descibe your machine ? From the config file it looks to have two different hotend heaters (H1 and H2) and a bed heater (H0) ? If so, how do you switch between the two different hotends?
Also - it looks like you may be running old versions of the firmware and DWC - can you comfirm by posting the output of M122
This is a custom Machine. It used to be a Folger Tech FT-5 large volume printer 300mm X 300mm X 300mm. The only thing original now is a few stepper motors and the frame. We are running the Duet E3D mother board and E3D Titan Aqua extruder. There is a 110Vac heated bed controlled by the use of an SSR. This also has a custom built enclosure and heaters controlled by an externally mounted din rail Watlow controller. Early on I tried to use the Duet to control the chamber heaters but I ran out of time. I may come back to this.
There should only be two heaters. The hot end and the heated bed. If there are more, then this might be a hold over from the chamber heating attempt.
I am sure I have not upgraded the firmware since the original install so I am sure it is old.
I had never seen a 3D Printer when I was tasked too build this one, and now have a few Enders at home to learn on. I could use some help making this printer what I know it can be.
I will get you the M122 next.
Carl
-
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: 10Free 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
- WiFi -
-
@CarlBosson said in PID Tuning Procedure:
Firmware Version: 2.05.1 (2020-02-09b1)
WiFi Server Version: 1.21
Web Interface Version: 1.22.6Your 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 -
@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
-
This post is deleted! -
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
-
@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
-
@Phaedrux I have updated to firmware Ver 3.3.
But the kink you sent to Ver 3.4.6 says file not found? -
-
@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 -
@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
- WiFi -
-
@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
- WiFi -
-
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 -
@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
-
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.
-
@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
okI backed up the SD Card yesterday in preparation.
-
@Phaedrux
I am still at a complete stand still here. Were you waiting for input from me?Carl