Table of Contents

Class NcArgSiemensFrame

Namespace
Hi.Numerical.NcArgs
Assembly
HiUniNc.dll

Represents Siemens frame transformation (AROT/ROT/TRANS/ATRANS). Similar to Heidenhain PLANE SPATIAL or FANUC G68.

public class NcArgSiemensFrame : ITiltPlaneNcArg
Inheritance
NcArgSiemensFrame
Implements
Inherited Members
Extension Methods

Remarks

All transformations (rotation and translation) are composed into a single matrix in the order they appear in NC code. e.g., AROT X-90. then TRANS X10 means: first rotate, then translate in rotated frame. This is different from separating rotation and translation.

Properties

TableToFeatureCdnTransformMat4d

Gets or sets the accumulated transformation matrix. All operations (AROT, ROT, TRANS, ATRANS) are composed in sequence.

public Mat4d TableToFeatureCdnTransformMat4d { get; set; }

Property Value

Mat4d

Methods

AddRotation(double, double, double)

Add rotation (for AROT command - additive). Composes rotation with existing transformation in sequence.

public void AddRotation(double rotX_rad, double rotY_rad, double rotZ_rad)

Parameters

rotX_rad double

Rotation around X axis in radians

rotY_rad double

Rotation around Y axis in radians

rotZ_rad double

Rotation around Z axis in radians

AddTranslation(double, double, double)

Add translation (for ATRANS command - additive). Composes translation with existing transformation in sequence. Translation is applied in the current (possibly rotated) coordinate frame.

public void AddTranslation(double x, double y, double z)

Parameters

x double
y double
z double

GetTransformation()

Gets the full transformation matrix.

public Mat4d GetTransformation()

Returns

Mat4d

Reset()

Reset frame to identity (no transformation).

public void Reset()

SetRotation(double, double, double)

Set rotation (for ROT command - resets all transformations and sets rotation).

public void SetRotation(double rotX_rad, double rotY_rad, double rotZ_rad)

Parameters

rotX_rad double

Rotation around X axis in radians

rotY_rad double

Rotation around Y axis in radians

rotZ_rad double

Rotation around Z axis in radians

SetTranslation(double, double, double)

Set translation (for TRANS command - resets all transformations and sets translation).

public void SetTranslation(double x, double y, double z)

Parameters

x double
y double
z double

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.