Table of Contents

Class RotaryAxisUtil

Namespace
Hi.NcParsers.LogicSyntaxs
Assembly
HiMech.dll

Shared utilities for rotary axis (A/B/C) resolution. Used by G53p1RotaryPositionSyntax, McAbcSyntax, IsoG68p2TiltSyntax, and other syntaxes that read or write rotary axis values.

public static class RotaryAxisUtil
Inheritance
RotaryAxisUtil
Inherited Members

Methods

ConsumeAxis(JsonObject, string)

Consumes an optional axis value (degrees) from Parsing. Post-processor hints (e.g., A/B/C on G68.2 or G53.1 lines) are parsed by FloatTagSetupSyntax into Parsing as doubles. Returns the value and removes the key, or null if not present.

public static double? ConsumeAxis(JsonObject parsing, string axisName)

Parameters

parsing JsonObject
axisName string

Returns

double?

GetRotaryAxes(IMachineAxisConfig)

Gets the rotary axis names from the given IMachineAxisConfig. Returns an empty array if no rotary axes exist.

public static string[] GetRotaryAxes(IMachineAxisConfig axisConfig)

Parameters

axisConfig IMachineAxisConfig

Returns

string[]