Class InputChannel
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Information about a G/M/T-code channel
public class InputChannel : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
InputChannel
- Implements
- Inherited Members
Constructors
InputChannel()
public InputChannel()
Properties
Active
True if the input is is in active mode i.e. executing commands for its assigned motion system, false if it is assigned to a motion system other than the current one
public bool Active { get; set; }
Property Value
Remarks
This will always be true except for the File and File2 inputs
AxesRelative
Whether relative positioning is being used
public bool AxesRelative { get; set; }
Property Value
Compatibility
Emulation used on this channel
public Compatibility Compatibility { get; set; }
Property Value
DistanceUnit
Whether inches are being used instead of mm
public DistanceUnit DistanceUnit { get; set; }
Property Value
DrivesRelative
Whether relative extrusion is being used
public bool DrivesRelative { get; set; }
Property Value
FeedRate
Current feedrate as passed by the last G0/G1 F... command
public float FeedRate { get; set; }
Property Value
InMacro
Whether a macro file is being processed
public bool InMacro { get; set; }
Property Value
InverseTimeMode
Indicates if inverse time mode (G73) is active
public bool InverseTimeMode { get; set; }
Property Value
LineNumber
Number of the current line
public long LineNumber { get; set; }
Property Value
MacroRestartable
Indicates if the current macro file can be restarted after a pause
public bool MacroRestartable { get; set; }
Property Value
MotionSystem
Active motion system index
public int MotionSystem { get; set; }
Property Value
Name
Name of this channel
public CodeChannel Name { get; set; }
Property Value
SelectedPlane
Index of the selected plane
public int SelectedPlane { get; set; }
Property Value
StackDepth
Depth of the stack
public byte StackDepth { get; set; }
Property Value
State
State of this input channel
public InputChannelState State { get; set; }
Property Value
Volumetric
Whether volumetric extrusion is being used
public bool Volumetric { 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