Table of Contents

Interface ISpindleControlConfig

Namespace
Hi.NcParsers.Dependencys
Assembly
HiMech.dll

Machine-specific spindle control codes: maps custom spindle direction M-codes to SpindleDirection — e.g., an ultrasonic spindle started by M203 (CW) and stopped by M205 (STOP) instead of ISO M03/M05. Consulted by SpindleSpeedSyntax in addition to the built-in ISO defaults (M03/M04/M05), which always stay in effect; a configured code wins over its ISO meaning when both match. Machine-level (per-case parameter table) rather than brand vocabulary — implemented by ControllerParameterTableBase.

public interface ISpindleControlConfig : INcDependency, IMakeXmlSource
Inherited Members
Extension Methods

Properties

SpindleDirectionCodes

Configured custom spindle direction M-codes. Key = M-code as parsed (e.g., “M203”), matched case-insensitively; value = resulting direction. Enumerable for UI/serialization.

IReadOnlyDictionary<string, SpindleDirection> SpindleDirectionCodes { get; }

Property Value

IReadOnlyDictionary<string, SpindleDirection>

Methods

ConfigureSpindleDirectionCode(string, SpindleDirection)

Adds or updates a custom spindle direction M-code.

void ConfigureSpindleDirectionCode(string mCode, SpindleDirection direction)

Parameters

mCode string
direction SpindleDirection

RemoveSpindleDirectionCode(string)

Removes a custom spindle direction M-code.

void RemoveSpindleDirectionCode(string mCode)

Parameters

mCode string

TryResolveDirection(string, out SpindleDirection)

Resolves a parsed flag to a spindle direction. Returns true only for configured custom codes; ISO M03/M04/M05 defaults are the caller's fallback, not this config's concern.

bool TryResolveDirection(string mCode, out SpindleDirection direction)

Parameters

mCode string
direction SpindleDirection

Returns

bool