Class NcTranslation
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
NcTranslation(XElement)
Initializes a new instance of the NcTranslation class from XML.
public NcTranslation(XElement src)
Parameters
src
XElementThe XML source element.
Properties
KeyCode
Gets or sets the key code of the motion axis.
public string KeyCode { get; set; }
Property Value
SpeedLimit_mmdmin
Gets or sets the speed limit in millimeters per minute.
public double SpeedLimit_mmdmin { get; set; }
Property Value
SpeedLimit_mmds
Gets or sets the speed limit in millimeters per second.
public double SpeedLimit_mmds { get; set; }
Property Value
StrokeMax_mm
Gets or sets the maximum stroke distance in millimeters.
public double StrokeMax_mm { get; set; }
Property Value
StrokeMin_mm
Gets or sets the minimum stroke distance in millimeters.
public double StrokeMin_mm { get; set; }
Property Value
XName
Gets the XML element name for serialization.
public static string XName { get; }
Property Value
Methods
Clone()
Clones this instance.
public override ITransformer Clone()
Returns
- ITransformer
clone
GetKeyCode()
Get key code of the motion axis.
public string GetKeyCode()
Returns
GetSpeedLimit()
Get speed limit.
public double GetSpeedLimit()
Returns
Remarks
Gets the speed limit in millimeters per second.
GetStrokeMax()
Get positivest stroke.
public double GetStrokeMax()
Returns
Remarks
Gets the maximum stroke distance in millimeters.
GetStrokeMin()
Get negativest stroke.
public double GetStrokeMin()
Returns
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
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state