Class Heater
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Information about a heater
public class Heater : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
Heater
- Implements
- Inherited Members
Constructors
Heater()
public Heater()
Properties
Active
Active temperature of the heater (in C)
[Live]
public float Active { get; set; }
Property Value
AvgPwm
Average heater PWM value (0..1)
[Live]
public float AvgPwm { get; set; }
Property Value
Current
Current temperature of the heater (in C)
[Live]
public float Current { get; set; }
Property Value
ExtrPwmBoost
Current feedforward PWM boost applied to the heater
public float? ExtrPwmBoost { get; set; }
Property Value
ExtrTempBoost
Current temperature boost applied to the heater
public float? ExtrTempBoost { get; set; }
Property Value
Max
Maximum temperature allowed for this heater (in C)
public float Max { get; set; }
Property Value
Remarks
This is only temporary and should be replaced by a representation of the heater protection as in RRF
MaxBadReadings
Maximum number of consecutive temperature reading failures before a heater fault is raised
public int MaxBadReadings { get; set; }
Property Value
MaxHeatingFaultTime
Time for which a temperature anomaly must persist on this heater before raising a heater fault (in s)
public float MaxHeatingFaultTime { get; set; }
Property Value
MaxTempExcursion
Permitted temperature excursion from the setpoint for this heater (in K)
public float MaxTempExcursion { get; set; }
Property Value
Min
Minimum temperature allowed for this heater (in C)
public float Min { get; set; }
Property Value
Remarks
This is only temporary and should be replaced by a representation of the heater protection as in RRF
Model
Information about the heater model
public HeaterModel Model { get; }
Property Value
Monitors
Monitors of this heater
public StaticModelCollection<HeaterMonitor> Monitors { get; }
Property Value
Sensor
Sensor number of this heater or -1 if not configured
public int Sensor { get; set; }
Property Value
Standby
Standby temperature of the heater (in C)
[Live]
public float Standby { get; set; }
Property Value
State
State of the heater
[Live]
public HeaterState State { get; set; }
Property Value
Methods
Assign(IStaticModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
public void Assign(IStaticModelObject from)
Parameters
fromIStaticModelObjectOther instance
Clone()
Clone this instance
public object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON element
public void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data