Table of Contents

Class NxClRunner

Namespace
Hi.Numerical.ClsfParsers
Assembly
HiMech.dll

Factory for a SoftNcRunner that reads NX CLSF (cutter location source file) input. On a ClMillingDevice chain it resolves into pure-CL acts (ActClTeleport/ActClLinear/ActClArc); on an MC machine (IXyzabcChain, detected through the wired NcKinematicsDependency) each motion block is expressed in the NC pipeline's transform vocabulary — MsysCoordinateOffsetSyntax writes the MSYS work-offset entries plus ProgramXyz, ClToMcTransformSyntax inverse-solves the endpoint rotary state and writes the tool-height / kinematic-pivot entries, the shared McXyzSyntax composes MachineCoordinateState from ProgramXyz × chain — and ClMotionValveSemantic routes the block to the machine-coordinate semantics instead. The record chain maps each CLSF record into the same standardized JSON sections the NC/CSV pipelines use (Feedrate, SpindleSpeed, Coolant, ToolChange, MotionEvent), so the general semantics are reused unchanged; only the motion and tool-creation semantics are CLSF-specific.

The modal carry runs first in the record bundle (unlike the NC pipeline's carry-at-the-end): each piece receives the previous block's modal sections (Msys, CutterLocationState, tool data, feedrate, …) before its own record is resolved, so a GOTO reads its begin point and MSYS from its own piece and then overwrites the state with the new endpoint.

public static class NxClRunner
Inheritance
NxClRunner
Inherited Members

Methods

Create()

Builds a fresh SoftNcRunner pre-configured to read NX CLSF input. Call once per machining session so the runner's per-session state starts clean.

public static SoftNcRunner Create()

Returns

SoftNcRunner

Reg(XFactory)

Registers the CLSF-module components Create() instantiates with the given XFactory. The general components it reuses (BundleSyntax, ModalCarrySyntax, ToolChangeSemantic, SpindleSpeedSemantic, CoolantSemantic) are registered by Reg(XFactory). Idempotent.

public static void Reg(XFactory factory = null)

Parameters

factory XFactory