Interface INCT_SpindleState
Provides access to the spindle state interface, which is shared between the interpreter and its parent(s). This interface is used for storing and exchanging the spindle's current state between the interpreter and its parent(s)
Namespace: STNCInterpreter
Assembly: STNCInterpreter.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("220CB67E-4943-4418-9874-DEBE6B7AB910")]
public interface INCT_SpindleState
Properties
Angle
Returns the angle (in degrees or radians) at which the spindle is oriented when stopped
Declaration
double Angle { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
CSS
Returns a boolean indicating whether the spindle is operating in constant cutting speed (CSS) mode. True if CSS is enabled, false otherwise
Declaration
bool CSS { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CSSSpeed
Returns the spindle speed (real number) used when the constant cutting speed (CSS) mode is active (Get_CSS = True)
Declaration
double CSSSpeed { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Command
Returns the spindle status, representing the last executed command, as a value of type TNCSpindleCommand
Declaration
TNCSpindleCommand Command { get; set; }
Property Value
| Type | Description |
|---|---|
| TNCSpindleCommand |
Direction
Returns a boolean indicating the spindle rotation direction. True if the spindle rotates in one direction (e.g., clockwise), false if in the opposite direction (e.g., counterclockwise)
Declaration
bool Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsChanged
Returns a boolean indicating whether any parameters of the INCT_SpindleState (excluding the spindle number) have changed since the last spindle command execution. True if any parameter has changed; false if none have changed
Declaration
bool IsChanged { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsChangedNum
Returns a boolean indicating whether the spindle number has changed since the last check. True if the spindle number has changed; false otherwise
Declaration
bool IsChangedNum { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxRPM
Returns the maximum number of spindle rotations for the constant cutting speed mode (real number) when Get_CSS is set to True
Declaration
double MaxRPM { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
MaxSpeed
Returns the maximum spindle speed as a real number
Declaration
double MaxSpeed { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Num
Returns the current spindle number as an integer
Declaration
int Num { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
RPMSpeed
Returns the current spindle speed (real number) when the constant cutting speed mode (CSS) is disabled (Get_CSS = False)
Declaration
double RPMSpeed { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Range
Returns the spindle speed range number as an integer
Declaration
int Range { get; set; }
Property Value
| Type | Description |
|---|---|
| int |