Table of Contents

Class NcTranslation

Namespace
Hi.NcMech.Topo
Assembly
HiMech.dll

Represents a translational transformer for NC machine tool axes. Provides functionality for linear motion with stroke and speed limits.

public class NcTranslation : DynamicTranslation, IGetInverseTransformer, INcTransformer, IDynamicRegular, IDynamicTransformer, ITransformer, IMakeXmlSource, INcStroke
Inheritance
NcTranslation
Implements
Inherited Members
Extension Methods

Constructors

NcTranslation()

Initializes a new instance of the NcTranslation class.

public NcTranslation()

NcTranslation(Vec3d, double)

Initializes a new instance of the NcTranslation class with the specified translation vector and length.

public NcTranslation(Vec3d trans, double len = 0)

Parameters

trans Vec3d

The translation vector.

len double

The translation length.

NcTranslation(XElement)

Initializes a new instance of the NcTranslation class from XML.

public NcTranslation(XElement src)

Parameters

src XElement

The XML source element.

Properties

KeyCode

Gets or sets the key code of the motion axis.

public string KeyCode { get; set; }

Property Value

string

SpeedLimit_mmdmin

Gets or sets the speed limit in millimeters per minute.

public double SpeedLimit_mmdmin { get; set; }

Property Value

double

SpeedLimit_mmds

Gets or sets the speed limit in millimeters per second.

public double SpeedLimit_mmds { get; set; }

Property Value

double

StrokeMax_mm

Gets or sets the maximum stroke distance in millimeters.

public double StrokeMax_mm { get; set; }

Property Value

double

StrokeMin_mm

Gets or sets the minimum stroke distance in millimeters.

public double StrokeMin_mm { get; set; }

Property Value

double

XName

Gets the XML element name for serialization.

public static string XName { get; }

Property Value

string

Methods

Clone()

Clones this instance.

public override ITransformer Clone()

Returns

ITransformer

clone

GetKeyCode()

Get key code of the motion axis.

public string GetKeyCode()

Returns

string

GetSpeedLimit()

Get speed limit.

public double GetSpeedLimit()

Returns

double

Remarks

Gets the speed limit in millimeters per second.

GetStrokeMax()

Get positivest stroke.

public double GetStrokeMax()

Returns

double

Remarks

Gets the maximum stroke distance in millimeters.

GetStrokeMin()

Get negativest stroke.

public double GetStrokeMin()

Returns

double

Remarks

Gets the minimum stroke distance in millimeters.

MakeXmlSource(string, string)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

public override XElement MakeXmlSource(string baseDirectory, string relFile)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

Returns

XElement

An XML element representing the object's state