Class MCodes
Static class that processes M-codes in the control server
Inheritance
System.Object
MCodes
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DuetControlServer.Codes
Assembly: DuetControlServer.dll
Syntax
public static class MCodes
Methods
CodeExecuted(Code)
React to an executed M-code before its result is returned
Declaration
public static async Task CodeExecuted(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code processed by RepRapFirmware |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Result to output |
Remarks
This method shall be used only to update values that are time-critical. Others are supposed to be updated via the object model
Process(Code)
Process an M-code that should be interpreted by the control server
Declaration
public static async Task<Message> Process(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code to process |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Message> | Result of the code if the code completed, else null |