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";