Table of Contents

Class ChannelState

Namespace
TwinSharp.NC
Assembly
TwinSharp.dll

Represents the state of an NC (Numerical Control) channel, providing access to various channel properties such as error codes, group count, interpreter state, operation mode, and program information using an AdsClient.

public class ChannelState
Inheritance
ChannelState
Inherited Members

Properties

CurrentLoadedProgramName

Program name of currently loaded program (100 characters, null-terminated)

public string CurrentLoadedProgramName { get; }

Property Value

string

CurrentLoadedProgramNumber

Current loaded program number

public uint CurrentLoadedProgramNumber { get; }

Property Value

uint

ErrorCode

Error code Channel

public int ErrorCode { get; }

Property Value

int

GroupCount

Number of groups in the Channel

public uint GroupCount { get; }

Property Value

uint

InterpreterOperationMode

Interpreter/channel operation mode

public InterpreterOperationMode InterpreterOperationMode { get; }

Property Value

InterpreterOperationMode

InterpreterSimulationMode

Interpreter simulation mode 0: off (default) 1: on

public uint InterpreterSimulationMode { get; }

Property Value

uint

InterpreterState

Interpreter status

public InterpreterState InterpreterState { get; }

Property Value

InterpreterState

TextIndex

If the interpreter is in the aborted state, the current text index can be read out here

public uint TextIndex { get; }

Property Value

uint