Table of Contents

Class NcRotation

Namespace
Hi.NcMech.Topo
Assembly
HiMech.dll

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

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

Constructors

NcRotation()

Initializes a new instance of the NcRotation class.

public NcRotation()

NcRotation(Vec3d, double)

Initializes a new instance of the NcRotation class with the specified axis and angle.

public NcRotation(Vec3d axis, double angle_rad = 0)

Parameters

axis Vec3d

The rotation axis vector.

angle_rad double

The rotation angle in radians.

NcRotation(Vec3d, double, Vec3d)

Initializes a new instance of the NcRotation class with the specified axis, angle and pivot point.

public NcRotation(Vec3d axis, double angle_rad, Vec3d pivot)

Parameters

axis Vec3d

The rotation axis vector.

angle_rad double

The rotation angle in radians.

pivot Vec3d

The pivot point for rotation.

NcRotation(XElement)

Initializes a new instance of the NcRotation class from XML.

public NcRotation(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_radds

Gets or sets the speed limit in radians per second.

public double SpeedLimit_radds { get; set; }

Property Value

double

SpeedLimit_rpm

Gets or sets the speed limit in revolutions per minute.

public double SpeedLimit_rpm { get; set; }

Property Value

double

StrokeMax_deg

Gets or sets the maximum stroke angle in degrees.

public double StrokeMax_deg { get; set; }

Property Value

double

StrokeMax_rad

Gets or sets the maximum stroke angle in radians.

public double StrokeMax_rad { get; set; }

Property Value

double

StrokeMin_deg

Gets or sets the minimum stroke angle in degrees.

public double StrokeMin_deg { get; set; }

Property Value

double

StrokeMin_rad

Gets or sets the minimum stroke angle in radians.

public double StrokeMin_rad { 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 radians per second.

GetStrokeMax()

Get positivest stroke.

public double GetStrokeMax()

Returns

double

Remarks

Gets the maximum stroke angle in radians.

GetStrokeMin()

Get negativest stroke.

public double GetStrokeMin()

Returns

double

Remarks

Gets the minimum stroke angle in radians.

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