Table of Contents

Class AxisParameters

Namespace
TwinSharp.NC
Assembly
TwinSharp.dll

Represents the parameters of an axis in a TwinCAT NC system. This class provides properties to get and set various parameters of an axis, such as ID, name, type, cycle time, physical unit, velocities, monitoring settings, error reaction mode, and more. It uses an AdsClient to read and write these parameters from a TwinCAT system. The class also includes methods to read all sub-elements like encoder IDs, controller IDs, and drive IDs.

public class AxisParameters
Inheritance
AxisParameters
Inherited Members

Properties

Acceleration

Default data set (e.g. mm/s^2)

public double Acceleration { get; set; }

Property Value

double

ChannelID

Channel ID

public uint ChannelID { get; }

Property Value

uint

ChannelName

Channel name

public string ChannelName { get; }

Property Value

string

ChannelType

Channel type

public ChannelType ChannelType { get; }

Property Value

ChannelType

ControllerCount

Number of controllers that belong to this axis.

public uint ControllerCount { get; }

Property Value

uint

CycleTime

Cycle time axis (SEC)

public uint CycleTime { get; }

Property Value

uint

Deceleration

Default data set (e.g. mm/s^2)

public double Deceleration { get; set; }

Property Value

double

DriveCount

Number of drives that belong to this axis.

public uint DriveCount { get; }

Property Value

uint

EncoderCount

Number of encoders that belong to this axis.

public uint EncoderCount { get; }

Property Value

uint

EncoderIDs

Axis encoder IDs

public uint[] EncoderIDs { get; }

Property Value

uint[]

ErrorDelaySeconds

Error delay time (if delayed error reaction is selected)

public double ErrorDelaySeconds { get; set; }

Property Value

double

ErrorReactionMode

Error reaction mode: 0: instantaneous (default) 1: delayed (e.g. for Master/Slave-coupling)

public ErrorReactionMode ErrorReactionMode { get; set; }

Property Value

ErrorReactionMode

GroupID

Group ID

public uint GroupID { get; }

Property Value

uint

GroupName

Group name

public string GroupName { get; }

Property Value

string

GroupType

Group type

public GroupType GroupType { get; }

Property Value

GroupType

ID

Axis ID

public uint ID { get; }

Property Value

uint

Jerk

Default data set (e.g. mm/s^3)

public double Jerk { get; set; }

Property Value

double

LoopEnabled

Loop enabled

public bool LoopEnabled { get; set; }

Property Value

bool

LoopingDistance

Looping distance (±) e.g. mm

public double LoopingDistance { get; set; }

Property Value

double

MaxPermittedAcceleration

Maximum permitted acceleration

public double MaxPermittedAcceleration { get; set; }

Property Value

double

MaxPermittedDeceleration

Maximum permitted deceleration

public double MaxPermittedDeceleration { get; set; }

Property Value

double

MotionMonitoringEnabled

Motion monitoring enabled

public bool MotionMonitoringEnabled { get; set; }

Property Value

bool

MotionMonitoringSeconds

Motion monitoring time.

public double MotionMonitoringSeconds { get; set; }

Property Value

double

Name

Axis name

public string Name { get; }

Property Value

string

PhysicalUnit

Physical unit

public string PhysicalUnit { get; }

Property Value

string

PositionRangeMonitoringEnabled

Position range monitoring?

public bool PositionRangeMonitoringEnabled { get; set; }

Property Value

bool

PositionRangeMonitoringWindow

Position range monitoring window

public double PositionRangeMonitoringWindow { get; set; }

Property Value

double

PulseWayNegativeDirection

Pulse way in neg. direction e.g. mm

public double PulseWayNegativeDirection { get; set; }

Property Value

double

PulseWayPositiveDirection

Pulse way in pos. direction e.g. mm

public double PulseWayPositiveDirection { get; set; }

Property Value

double

RefVelocityAtRefOutput

Reference velocity at reference output (velocity pre-control)

public double RefVelocityAtRefOutput { get; set; }

Property Value

double

RefVelocityCamDirection

Ref. velocity in cam direction

public double RefVelocityCamDirection { get; set; }

Property Value

double

RefVelocitySyncDirection

Ref. velocity in sync direction

public double RefVelocitySyncDirection { get; set; }

Property Value

double

TargetPositionMonitoringEnabled

Target position monitoring enabled

public bool TargetPositionMonitoringEnabled { get; set; }

Property Value

bool

TargetPositionMonitoringSeconds

Target position monitoring time in seconds.

public double TargetPositionMonitoringSeconds { get; set; }

Property Value

double

TargetPositionMonitoringWindow

Target position monitoring window e.g. mm

public double TargetPositionMonitoringWindow { get; set; }

Property Value

double

Type

Axis type

public AxisType Type { get; }

Property Value

AxisType

VelocityHandFast

Velocity hand fast

public double VelocityHandFast { get; set; }

Property Value

double

VelocityHandSlow

Velocity hand slow

public double VelocityHandSlow { get; set; }

Property Value

double

VelocityRapidTraverse

Velocity rapid traverse

public double VelocityRapidTraverse { get; set; }

Property Value

double