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
Feedrate_mmdmin
Feed rate in millimeters per minute.
public double Feedrate_mmdmin { get; set; }
Property Value
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
FileNo
FileIndex+1.
public int FileNo { get; set; }
Property Value
FilePath
File path.
public string FilePath { get; set; }
Property Value
FlexDictionary
Dictionary for storing flexible step properties as double values.
public Dictionary<string, double> FlexDictionary { get; set; }
Property Value
Line
The line.
public string Line { get; set; }
Property Value
LineIndex
Line Index. Start on 0.
public int LineIndex { get; set; }
Property Value
LineNo
LineIndex+1.
public int LineNo { get; set; }
Property Value
MillingForce
Milling force.
public MillingForce MillingForce { get; set; }
Property Value
MillingGeomBrief
Gets or sets the milling geometry brief information.
public MillingGeomBrief MillingGeomBrief { get; set; }
Property Value
SeqPhysicsBrief
Gets or sets the sequential physics brief.
public SeqPhysicsBrief SeqPhysicsBrief { get; set; }
Property Value
SpindleDirection
Spindle direction.
public SpindleDirection SpindleDirection { get; set; }
Property Value
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
StepDuration_s
Step duration. Unit is second.
public double StepDuration_s { get; set; }
Property Value
StepIndex
Step index.
public int StepIndex { get; set; }
Property Value
ToolId
Get tool ID.
public int ToolId { get; set; }
Property Value
- int
tool ID
WorkTime
Worked time.
public TimeSpan WorkTime { get; set; }
Property Value
Methods
GetAxisPos(string)
Get absolute position of the key
axis.
public double GetAxisPos(string key)
Parameters
key
stringaxis 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()
Get FileLineIndex.
public FileLineIndex GetFileLineIndex()
Returns
GetMillingForce()
Get MillingForce.
public MillingForce GetMillingForce()
Returns
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
stringThe 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.