Table of Contents

Class NcStepUtil

Namespace
Hi.NcStepUtils
Assembly
HiMech.dll

Provides utility functions and constants for NC step operations.

public static class NcStepUtil
Inheritance
NcStepUtil
Inherited Members

Fields

Tag__ActualFeedrate_mmdmin

Tag for actual feedrate in millimeters per minute.

public const string Tag__ActualFeedrate_mmdmin = "ActualFeedrate_mmdmin"

Field Value

string

Tag__ActualSpindleSpeed_rpm

Tag for actual spindle speed in revolutions per minute.

public const string Tag__ActualSpindleSpeed_rpm = "ActualSpindleSpeed_rpm"

Field Value

string

Tag__Cl_A

Tag for A-axis rotation of cutter location.

public const string Tag__Cl_A = "CL.A"

Field Value

string

Tag__Cl_B

Tag for B-axis rotation of cutter location.

public const string Tag__Cl_B = "CL.B"

Field Value

string

Tag__Cl_C

Tag for C-axis rotation of cutter location.

public const string Tag__Cl_C = "CL.C"

Field Value

string

Tag__Cl_X

Tag for X coordinate of cutter location.

public const string Tag__Cl_X = "CL.X"

Field Value

string

Tag__Cl_Y

Tag for Y coordinate of cutter location.

public const string Tag__Cl_Y = "CL.Y"

Field Value

string

Tag__Cl_Z

Tag for Z coordinate of cutter location.

public const string Tag__Cl_Z = "CL.Z"

Field Value

string

Tag__CodeFeedrate_mmdmin

Tag for programmed feedrate in millimeters per minute.

public const string Tag__CodeFeedrate_mmdmin = "CodeFeedrate_mmdmin"

Field Value

string

Tag__CodeSpindleSpeed_rpm

Tag for programmed spindle speed in revolutions per minute.

public const string Tag__CodeSpindleSpeed_rpm = "CodeSpindleSpeed_rpm"

Field Value

string

Tag__CyclePeriod_s

Tag for cycle period in seconds.

public const string Tag__CyclePeriod_s = "CyclePeriod_s"

Field Value

string

Tag__Feedrate_mmdmin

Tag for feedrate in millimeters per minute.

public const string Tag__Feedrate_mmdmin = "Feedrate_mmdmin"

Field Value

string

Tag__SpindleSpeed_rpm

Tag for spindle speed in revolutions per minute.

public const string Tag__SpindleSpeed_rpm = "SpindleSpeed_rpm"

Field Value

string

Methods

GetFeedPerCycle_mm(INcStep0)

Gets the feed per cycle in millimeters.

public static double GetFeedPerCycle_mm(this INcStep0 step)

Parameters

step INcStep0

The NC step.

Returns

double

Feed per cycle in millimeters.

GetGeneralCsvDictionary(INcStep0)

Gets a general CSV dictionary containing step information.

public static Dictionary<string, string> GetGeneralCsvDictionary(this INcStep0 step)

Parameters

step INcStep0

The NC step.

Returns

Dictionary<string, string>

Dictionary with step information in CSV format.

GetGeneralQuantityByKey(INcStep0, string)

Gets a general quantity value by key from the step.

public static double GetGeneralQuantityByKey(this INcStep0 step, string key)

Parameters

step INcStep0

The NC step.

key string

The key to look up.

Returns

double

The quantity value associated with the key.

GetMcXyzabc(INcStep0)

Gets the machine XYZABC coordinates.

public static DVec3d GetMcXyzabc(this INcStep0 step)

Parameters

step INcStep0

The NC step.

Returns

DVec3d

Machine XYZABC coordinates as a DVec3d.