Table of Contents

Enum CodeFlags

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Code bits to classify G/M/T-codes

[Flags]
[JsonConverter(typeof(JsonNumberEnumConverter<CodeFlags>))]
public enum CodeFlags

Fields

Asynchronous = 1

Code execution finishes as soon as it is enqueued in the code queue

EnforceAbsolutePosition = 128

Enforce absolute positioning via prefixed G53 code

HasExplicitLineNumber = 8192

Indicates if this code has an explicit line number (e.g. N1 G1 X10)

IsFromConfig = 32

Code comes from config.g or config.g.bak

IsFromConfigOverride = 64

Code comes from config-override.g

IsFromFirmware = 1024

Indicates if this code was requested from the firmware

IsFromMacro = 8

Code originates from a macro file

IsInternallyProcessed = 4096

Code has been processed internally (if this is set the internal execution of a code is skipped)

IsLastCode = 2048

Indicates if this is the last code on the line

IsNestedMacro = 16

Code originates from a system macro file (i.e. RRF requested it)

IsPostProcessed = 4

Code has been postprocessed (i.e. it has been processed by the internal DCS code processor)

IsPreProcessed = 2

Code has been preprocessed (i.e. it has been processed by the DCS pre-side code interceptors)

IsPrioritized = 256

Execute this code as quickly as possible and skip codes that have the Unbuffered flag set

None = 0

Placeholder to indicate that no flags are set

Unbuffered = 512

Do NOT process another code on the same channel before this code has been fully executed. Note that priority codes may still override codes that have this flag set