|
@@ -469,6 +469,13 @@ namespace FurnaceRT.Devices
|
|
|
});
|
|
|
|
|
|
_doEnableIn.SetValue(true, out _);
|
|
|
+
|
|
|
+ var setLastPoint = SC.GetConfigItem($"PM1.Heater.{this.Name}.SetLastPoint");
|
|
|
+ if (setLastPoint != null)
|
|
|
+ {
|
|
|
+ _tempSetpoint = (float)setLastPoint.DoubleValue;
|
|
|
+ DeviceData.SetPoint = _tempSetpoint;
|
|
|
+ }
|
|
|
SetCorrectParameters(SC.GetStringValue("PM1.TempCorrection"));
|
|
|
|
|
|
return base.Initialize();
|
|
@@ -759,7 +766,10 @@ namespace FurnaceRT.Devices
|
|
|
|
|
|
DeviceData.SetPoint = temperature;
|
|
|
DeviceData.RampSetPoint = _rampTime;
|
|
|
-
|
|
|
+ if (_tempSetpoint != temperature)
|
|
|
+ {
|
|
|
+ SC.SetItemValueFromString($"PM1.Heater.{this.Name}.SetLastPoint", temperature.ToString("F1"));
|
|
|
+ }
|
|
|
_tempSetpoint = temperature;
|
|
|
TempSetPoint = actualSet;
|
|
|
//LOG.Write($"{Name} setpoint={temperature} control mode={controlMode}, PID={PID}, correct={correct}");
|