AxisLocked方法

描述
若指定軸受伺服系統控制,會傳回True。

語法
Function AxisLocked (AxisNumber As Integer) As Boolean

參數

  • AxisNumber
    代表管道#的數值運算式。數值可以介於1 – 9。

傳回值
若指定軸受伺服系統控制,會傳回True。

另請參閱
SLock方法, SFree方法

AxisLocked範例
VB 例:

If m_spel.AxisLocked(1) Then  
    lblAxis1.Text = "Robot axis \#1 is locked"  
Else  
    lblAxis1.Text = "Robot axis \#1 is free"  
End If  

C# 例:

if (m_spel.AxisLocked(1))  
    lblAxis1.Text = "Robot axis \#1 is locked";  
else  
    lblAxis1.Text = "Robot axis \#1 is free";