PID Controlled Heated Bed
-
@Corexy Hi Mate,
Looks like you are already using PID on the bed because the "B" parameter for H0 (the bed heater) is set to 0. For Bang-Bang you'd use B1.
-
@deckingman said in PID Controlled Heated Bed:
@Corexy Hi Mate,
Looks like you are already using PID on the bed because the "B" parameter for H0 (the bed heater) is set to 0. For Bang-Bang you'd use B1.
True?! Cheers Ian.
So I'll just run up the PID tuning via M303? I'm wondering how any residual plastic in my nozzle will handle 350 degC? I'll unload the filament at least.
While I'm waiting for the hot end to cool, I'm running the bed test (M303 H1 S240). But I've left these as is for now, is that correct?
M307 H0 A144.9 C625.3 D1.0 B0
-
@Corexy said in PID Controlled Heated Bed:
While I'm waiting for the hot end to cool, I'm running the bed test (M303 H1 S240). But I've left these as is for now, is that correct?
M307 H0 A144.9 C625.3 D1.0 B0The D1.0 value looks rather low for a bed heater, but not impossible for a silicone heater with the thermistor embedded within it. Is the bed temperature stable, or oscillating?
The A and C values look reasonable.
-
@dc42 said in PID Controlled Heated Bed:
@Corexy said in PID Controlled Heated Bed:
While I'm waiting for the hot end to cool, I'm running the bed test (M303 H1 S240). But I've left these as is for now, is that correct?
M307 H0 A144.9 C625.3 D1.0 B0The D1.0 value looks rather low for a bed heater, but not impossible for a silicone heater with the thermistor embedded within it. Is the bed temperature stable, or oscillating?
The A and C values look reasonable.
It's always been pretty solid to be honest. I've been chasing a bit of Z banding from the start when I built it, but it's starting to look like it might be mechanical.
I'm running M307 H0 S140 on the bed right now, so my understanding is that I run M307 H0 to see the test results, then M500 to save them in the config.g?
-
This is what I got:
M307 H0
Heater 0 model: gain 149.3, time constant 841.4, dead time 0.4, max PWM 1.00, calibration voltage 23.6, mode PID, inverted no, frequency default
Computed PID parameters for setpoint change: P2289.7, I119.068, D704.4
Computed PID parameters for load change:M307 H1
Heater 1 model: gain 589.7, time constant 308.5, dead time 4.4, max PWM 1.00, calibration voltage 23.9, mode PID, inverted no, frequency default
Computed PID parameters for setpoint change: P21.0, I0.568, D65.4
Computed PID parameters for load change: P21.It would seem that M500 didn't work?
M500
Warning: No M501 command was executed in config.g -
@Corexy
The parameters are stored to config-override.g
But you have to put a M501 at the end of config.g to read them.Edit:
https://duet3d.dozuki.com/Wiki/Gcode#Section_M500_Store_parameters -
Alternatively, copy the new M307 parameters to your M307 command in config.g.
-
M307 H0
Heater 0 model: gain 149.3, time constant 841.4, dead time 0.4, max PWM 1.00, calibration voltage 23.6, mode PID, inverted no, frequency default Computed PID parameters for setpoint change: P2289.7, I119.068, D704.4 Computed PID parameters for load change:M307 H1
Heater 1 model: gain 589.7, time constant 308.5, dead time 4.4, max PWM 1.00, calibration voltage 23.9, mode PID, inverted no, frequency default Computed PID parameters for setpoint change: P21.0, I0.568, D65.4 Computed PID parameters for load change: P21. -
It's easiest to save with M500 and then copy the actual parameter line from there rather than trying to reconstitute it from the text read out, or just add M501 to the end of config.g.
-
@Corexy said in PID Controlled Heated Bed:
M307 H0
Heater 0 model: gain 149.3, time constant 841.4, dead time 0.4, max PWM 1.00, calibration voltage 23.6, mode PID, inverted no, frequency default Computed PID parameters for setpoint change: P2289.7, I119.068, D704.4 Computed PID parameters for load change:M307 H1
Heater 1 model: gain 589.7, time constant 308.5, dead time 4.4, max PWM 1.00, calibration voltage 23.9, mode PID, inverted no, frequency default Computed PID parameters for setpoint change: P21.0, I0.568, D65.4 Computed PID parameters for load change: P21.Or............ A=gain, C= time Constant, D=Dead Time and optionally, S = PWM V=voltage. So M307 for heater 1 would be
M307 H1 A589.7 C308.5 D4.4 S1.0 V23.9 B0