Table of Contents

Class UniversalNcStep

Namespace
Hi.UniversalNc
Assembly
HiNc.dll

Universal NC step implementation that provides a flexible storage for various step properties.

public class UniversalNcStep : INcStep0, IGetNcStep, IGetFeedrate, IGetSpindleSpeed, IGetCsvDictionary, IFileLineIndex, IGetFileLineIndex, IFileLine, IColorGuideProperty, IGetQuantityByKey, IMillingForceAccessor, IGetMillingForce, IMillingGeomBriefAccessor, IGetMillingGeomBrief, ISuccessivePhysicsBriefAccessor, IFlexDictionaryHost<double>
Inheritance
UniversalNcStep
Implements
Inherited Members
Extension Methods

Constructors

UniversalNcStep()

Ctor.

public UniversalNcStep()

Properties

ColorGuide

Gets or sets the color guide associated with this object.

public IColorGuide ColorGuide { get; set; }

Property Value

IColorGuide

Feedrate_mmdmin

Feed rate in millimeters per minute.

public double Feedrate_mmdmin { get; set; }

Property Value

double

Feedrate_mmds

Get feedrate in mm/s.

public double Feedrate_mmds { get; set; }

Property Value

double

feedrate in mm/s

FileIndex

File Index. Start on 0.

public int FileIndex { get; set; }

Property Value

int

FileNo

public int FileNo { get; set; }

Property Value

int

FilePath

File path.

public string FilePath { get; set; }

Property Value

string

FlexDictionary

Dictionary for storing flexible step properties as double values.

public Dictionary<string, double> FlexDictionary { get; set; }

Property Value

Dictionary<string, double>

Line

The line.

public string Line { get; set; }

Property Value

string

LineIndex

Line Index. Start on 0.

public int LineIndex { get; set; }

Property Value

int

LineNo

public int LineNo { get; set; }

Property Value

int

MillingForce

Milling force.

public MillingForce MillingForce { get; set; }

Property Value

MillingForce

MillingGeomBrief

Gets or sets the milling geometry brief information.

public MillingGeomBrief MillingGeomBrief { get; set; }

Property Value

MillingGeomBrief

SeqPhysicsBrief

Gets or sets the sequential physics brief.

public SeqPhysicsBrief SeqPhysicsBrief { get; set; }

Property Value

SeqPhysicsBrief

SpindleDirection

Spindle direction.

public SpindleDirection SpindleDirection { get; set; }

Property Value

SpindleDirection

SpindleSpeed_radds

Get spindle speed in rad/s.

public double SpindleSpeed_radds { get; set; }

Property Value

double

spindle speed in rad/s

SpindleSpeed_rpm

Spindle speed in revolutions per minute.

public double SpindleSpeed_rpm { get; set; }

Property Value

double

StepDuration_s

Step duration. Unit is second.

public double StepDuration_s { get; set; }

Property Value

double

StepIndex

Step index.

public int StepIndex { get; set; }

Property Value

int

ToolId

Get tool ID.

public int ToolId { get; set; }

Property Value

int

tool ID

WorkTime

Worked time.

public TimeSpan WorkTime { get; set; }

Property Value

TimeSpan

Methods

GetAxisPos(string)

Get absolute position of the key axis.

public double GetAxisPos(string key)

Parameters

key string

axis name

Returns

double

absolute position of the key axis

GetCsvDictionary()

Get row dictionary. It suits for CSV output.

public Dictionary<string, string> GetCsvDictionary()

Returns

Dictionary<string, string>

csv row dictionary

GetFeedrate_mmds()

Gets the program feedrate in millimeters per second.

public double GetFeedrate_mmds()

Returns

double

Feedrate in mm/s

GetFileLineIndex()

public FileLineIndex GetFileLineIndex()

Returns

FileLineIndex

FileLineIndex

GetMillingForce()

public MillingForce GetMillingForce()

Returns

MillingForce

MillingForce

GetMillingGeomBrief()

Gets the milling geometry brief information.

public MillingGeomBrief GetMillingGeomBrief()

Returns

MillingGeomBrief

The milling geometry brief information.

GetNcStep()

Get controller state.

public INcStep0 GetNcStep()

Returns

INcStep0

controller state

GetQuantityByKey(string)

Gets a quantity value associated with the specified key.

public double GetQuantityByKey(string key)

Parameters

key string

The key to look up

Returns

double

The quantity value associated with the key

GetSpindleDirection()

Gets the spindle rotation direction.

public SpindleDirection GetSpindleDirection()

Returns

SpindleDirection

The spindle direction (clockwise, counterclockwise, or stopped)

GetSpindleSpeed_radds()

Gets the spindle speed in radians per second.

public double GetSpindleSpeed_radds()

Returns

double

Spindle speed in rad/s

SetByRowDictionary(Dictionary<string, string>)

Sets the properties of this object using values from a dictionary.

public void SetByRowDictionary(Dictionary<string, string> src)

Parameters

src Dictionary<string, string>

Source dictionary containing property values as strings.

ToString()

Returns a string representation of this NC step.

public override string ToString()

Returns

string

String representation of this step.