Class State
Information about the machine state
Implements
Inherited Members
Namespace: DuetAPI.Machine
Assembly: DuetAPI.dll
Syntax
public sealed class State : ModelObject, ICloneable, INotifyPropertyChanging, INotifyPropertyChanged
Properties
AtxPower
State of the ATX power pin (if controlled)
Declaration
public bool? AtxPower { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Beep
Information about a requested beep or null if none is requested
Declaration
public BeepRequest Beep { get; set; }
Property Value
Type | Description |
---|---|
BeepRequest |
CurrentTool
Number of the currently selected tool or -1 if none is selected
Declaration
public int CurrentTool { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DisplayMessage
Persistent message to display (see M117)
Declaration
public string DisplayMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DsfVersion
Version of the Duet Software Framework package
Declaration
public string DsfVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String |
GpOut
List of general-purpose output ports
Declaration
public ModelCollection<GpOutputPort> GpOut { get; }
Property Value
Type | Description |
---|---|
ModelCollection<GpOutputPort> |
See Also
LaserPwm
Laser PWM of the next commanded move (0..1) or null if not applicable
Declaration
public float? LaserPwm { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
LogFile
Log file being written to or null if logging is disabled
Declaration
public string LogFile { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MachineMode
Current mode of operation
Declaration
public MachineMode MachineMode { get; set; }
Property Value
Type | Description |
---|---|
MachineMode |
MessageBox
Details about a requested message box or null if none is requested
Declaration
public MessageBox MessageBox { get; set; }
Property Value
Type | Description |
---|---|
MessageBox |
NextTool
Number of the next tool to be selected
Declaration
public int NextTool { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PowerFailScript
Script to execute when the power fails
Declaration
public string PowerFailScript { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PreviousTool
Number of the previous tool
Declaration
public int PreviousTool { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RestorePoints
List of restore points
Declaration
public ModelCollection<RestorePoint> RestorePoints { get; }
Property Value
Type | Description |
---|---|
ModelCollection<RestorePoint> |
Status
Current state of the machine
Declaration
public MachineStatus Status { get; set; }
Property Value
Type | Description |
---|---|
MachineStatus |
Time
Internal date and time in RepRapFirmware or null if unknown
Declaration
public DateTime? Time { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
UpTime
How long the machine has been running (in s)
Declaration
public int UpTime { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |