Table of Contents

Class MappingUtil

Namespace
Hi.Mapping
Assembly
HiMech.dll

Shared CSV column tags and physics-related column prefixes for mapping simulator or logged controller data onto MachiningStep rows.

public static class MappingUtil
Inheritance
MappingUtil
Inherited Members

Fields

ActualDateTimeTag

Absolute controller-instant column written alongside ActualTimecodeTag (the MachiningStep.ActualDateTime member) so the calendar date survives. Pinned to a literal so renaming the member does not change the CSV header; optional companion column.

public const string ActualDateTimeTag = "ActualDateTime"

Field Value

string

ActualTimeTag

Legacy single-column title for actual time in the CSV (a bare TimeSpan timecode or an absolute DateTime). The step-file writer now splits this into the ActualTimecodeTag + ActualDateTimeTag pair; this column is still read for pre-split files.

public const string ActualTimeTag = "ActualTime"

Field Value

string

ActualTimecodeTag

Run-relative actual timecode column written by the step-file exporter (the MachiningStep.ActualTimecode member). Pinned to a literal so renaming the member does not change the CSV header; preferred over the legacy single ActualTimeTag column when present.

public const string ActualTimecodeTag = "ActualTimecode"

Field Value

string

CoolantTag

Coolant tag for CSV parsing. The cell holds the coolant mode name (e.g. Flood / Mist / Off) or a boolean on/off flag.

public const string CoolantTag = "Coolant"

Field Value

string

CutterLocationPrefix

Cutter Location Prefix Tag for CSV Parsing.

public const string CutterLocationPrefix = "CL."

Field Value

string

DurationTag

Duration tag for CSV parsing.

public const string DurationTag = "StepDuration"

Field Value

string

FeedrateTag_mmdmin

Feedrate for Simulator Tag for CSV Parsing.

public const string FeedrateTag_mmdmin = "Feedrate_mmdmin"

Field Value

string

FileNoTag

Gets or sets the column title for file number in the CSV.

public const string FileNoTag = "FileNo"

Field Value

string

HolderMomentPrefix

CSV column prefix for holder moment / torque channels.

public const string HolderMomentPrefix = "Holder.M"

Field Value

string

LineBeginCsScriptTag

LineBeginCsScript Tag for CSV Parsing.

public const string LineBeginCsScriptTag = "LineBeginCsScript"

Field Value

string

LineEndCsScriptTag

LineEndCsScript Tag for CSV Parsing.

public const string LineEndCsScriptTag = "LineEndCsScript"

Field Value

string

LineNoTag

Gets or sets the column title for line number in the CSV.

public const string LineNoTag = "LineNo"

Field Value

string

MachineCoordinatePrefix

Machine Coordinate Prefix Tag for CSV Parsing.

public const string MachineCoordinatePrefix = "MC."

Field Value

string

SimTimeTag

Fallback time column when ActualTimeTag is absent or unparseable: the simulated end timecode. Pinned to a literal (decoupled from the model member name) so renaming the member does not change the CSV header; pre-rename files that used the old “AccumulatedTime” header are still read via SimTimeTagLegacy / GetSimTimeCell(IReadOnlyDictionary<string, string>).

public const string SimTimeTag = "EndTimecode"

Field Value

string

SimTimeTagLegacy

Legacy CSV header accepted as a fallback for SimTimeTag (files written before the EndTimecode rename used the member name AccumulatedTime).

public const string SimTimeTagLegacy = "AccumulatedTime"

Field Value

string

SpindleDirectionTag

Spindle direction Tag for CSV Parsing.

public const string SpindleDirectionTag = "Spd.Dir."

Field Value

string

SpindleSpeedTag_rpm

Spindle speed for Simulator Tag for CSV Parsing.

public const string SpindleSpeedTag_rpm = "SpindleSpeed_rpm"

Field Value

string

TimeTag

Gets or sets the column title for time in the CSV. The time generally obtained by the simulated data.

public const string TimeTag = "Time"

Field Value

string

ToolForcePrefix

CSV column prefix for tool-side force components (e.g. dynamometer).

public const string ToolForcePrefix = "Tool.F"

Field Value

string

ToolIdTag

Tool ID Tag for CSV Parsing.

public const string ToolIdTag = "ToolId"

Field Value

string

WorkpieceForcePrefix

CSV column prefix for workpiece-side force components.

public const string WorkpieceForcePrefix = "Workpiece.F"

Field Value

string

Methods

GetSimTimeCell(IReadOnlyDictionary<string, string>)

Returns the de-quoted simulated-time cell from row, reading SimTimeTag first and falling back to the legacy SimTimeTagLegacy header, or null when neither column is present.

public static string GetSimTimeCell(IReadOnlyDictionary<string, string> row)

Parameters

row IReadOnlyDictionary<string, string>

Returns

string