Class MCodes
Static class that processes M-codes in the control server
Inherited Members
Namespace: DuetControlServer.Codes.Handlers
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 Task CodeExecuted(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code processed by RepRapFirmware |
Returns
Type | Description |
---|---|
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 Task<Message?> Process(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code to process |
Returns
Type | Description |
---|---|
Task<Message> | Result of the code if the code completed, else null |