Table of Contents

Class NC

Namespace
TwinSharp.NC
Assembly
TwinSharp.dll

The NC class provides access to the NC (Numerical Control) system using TwinCAT ADS protocol. It initializes and manages the Ring0Manager, Axes, Channels, Groups and Tables components.

public class NC
Inheritance
NC
Inherited Members

Constructors

NC(AmsNetId)

Initializes a new instance of the NC class. This constructor sets up the Ring0Manager and establishes a connection to the TwinCAT ADS client. It also initializes the Axes, Channels, Groups, and Tables components using the provided target AmsNetId.

public NC(AmsNetId target)

Parameters

target AmsNetId

The AmsNetId of the target device to connect to.

Properties

Axes

Gets the array of Axis objects representing the axes in the NC system.

public Axis[] Axes { get; }

Property Value

Axis[]

Channels

Gets the array of Channel objects representing the channels in the NC system.

public Channel[] Channels { get; }

Property Value

Channel[]

Groups

Gets the array of Group objects representing the groups in the NC system.

public Group[] Groups { get; }

Property Value

Group[]

Ring0Manager

Gets the Ring0Manager instance which manages the low-level operations and state of the NC system.

public Ring0Manager Ring0Manager { get; }

Property Value

Ring0Manager

Tables

Gets the array of Table objects representing the tables in the NC system.

public Table[] Tables { get; }

Property Value

Table[]