Interface INcRunner
NC runner — parses and executes NC program lines. Nc is the umbrella
term for any machine-readable control program (famous-brand controller
code, NX-CL, CSV): the same runner contract serves all of them, and
NcKind names the kinds where they must be
distinguished.
public interface INcRunner
- Extension Methods
Remarks
Renamed from IControlRunner (with RunControlLines) — the
implementors were already named SoftNcRunner / HardNcRunner,
and the whole soft pipeline (session state, syntax layers, dependencies)
carries the Nc prefix while serving CL and CSV too.
Methods
RunNcLines(string, IEnumerable<string>, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken)
Runs raw NC program lines and yields source sentence and Act pairs.
IEnumerable<SourcedActEntry> RunNcLines(string relFilePath, IEnumerable<string> lines, MachiningSession machiningSession, StepDiagnosticProgress stepDiagnosticProgress, NcDiagnosticProgress ncDiagnosticProgress, CancellationToken cancellationToken)
Parameters
relFilePathstringThe relative path of the NC program file
linesIEnumerable<string>The enumerable collection of NC program lines
machiningSessionMachiningSessionSession-scoped state shared across multiple RunNcLines(string, IEnumerable<string>, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken) calls (e.g. lazy-initialized pipeline state, file-index counter).
stepDiagnosticProgressStepDiagnosticProgressStep-anchored IMessage-channel sink.
ncDiagnosticProgressNcDiagnosticProgressNC-pipeline diagnostic sink, threaded in as an input so the runner stays host-agnostic (the caller injects it; the production caller passes the service-scoped instance, standalone tests pass their own).
cancellationTokenCancellationTokenCancellation token to cancel the operation
Returns
- IEnumerable<SourcedActEntry>
Enumerable of source sentence and Act pairs