Class Axis
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Information about a configured axis
public class Axis : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
Axis
- Implements
- Inherited Members
Constructors
Axis()
public Axis()
Fields
Letters
List of supported axis letters
public static readonly char[] Letters
Field Value
- char[]
Properties
Acceleration
Acceleration of this axis (in mm/s^2)
public float Acceleration { get; set; }
Property Value
Babystep
Babystep amount (in mm)
public float Babystep { get; set; }
Property Value
Backlash
Configured backlash of this axis (in mm)
public float Backlash { get; set; }
Property Value
Current
Motor current (in mA)
public int Current { get; set; }
Property Value
Drivers
List of the assigned drivers
public ObservableCollection<DriverId> Drivers { get; }
Property Value
Homed
Whether or not the axis is homed
public bool Homed { get; set; }
Property Value
Jerk
Motor jerk (in mm/min)
public float Jerk { get; set; }
Property Value
Letter
Letter of this axis
public char Letter { get; set; }
Property Value
MachinePosition
Current machine position (in mm) or null if unknown/unset
[Live]
public float? MachinePosition { get; set; }
Property Value
Remarks
This value reflects the machine position of the move being performed or of the last one if the machine is not moving
Max
Maximum travel of this axis (in mm)
public float Max { get; set; }
Property Value
MaxProbed
Whether the axis maximum was probed
public bool MaxProbed { get; set; }
Property Value
Microstepping
Microstepping configuration
public Microstepping Microstepping { get; }
Property Value
Min
Minimum travel of this axis (in mm)
public float Min { get; set; }
Property Value
MinProbed
Whether the axis minimum was probed
public bool MinProbed { get; set; }
Property Value
PercentCurrent
Percentage applied to the motor current (0..100)
public int PercentCurrent { get; set; }
Property Value
PercentStstCurrent
Percentage applied to the motor current during standstill (0..100 or null if not supported)
public int? PercentStstCurrent { get; set; }
Property Value
- int?
PhaseStep
Whether or not the axis is currently using phase stepping
public bool? PhaseStep { get; set; }
Property Value
- bool?
PrintingJerk
Motor jerk during the current print only (in mm/s)
public float PrintingJerk { get; set; }
Property Value
ReducedAcceleration
Reduced accelerations used by Z probing and stall homing moves (in mm/s^2)
public float ReducedAcceleration { get; set; }
Property Value
Speed
Maximum speed (in mm/min)
public float Speed { get; set; }
Property Value
StepPos
Current step position of the axis (in steps)
[Live]
public int StepPos { get; set; }
Property Value
StepsPerMm
Number of microsteps per mm
public float StepsPerMm { get; set; }
Property Value
UserPosition
Current user position (in mm) or null if unknown
[Live]
public float? UserPosition { get; set; }
Property Value
Remarks
This value reflects the target position of the last move fed into the look-ahead buffer
Visible
Whether or not the axis is visible
public bool Visible { get; set; }
Property Value
WorkplaceOffsets
Offsets of this axis for each workplace (in mm)
public ObservableCollection<float> WorkplaceOffsets { get; }
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