GetRobotInfo方法

描述
傳回機器人的資訊。

語法
Function GetRobotInfo (RobotNumber As Integer) As SpelRobotInfo

參數

  • RobotNumber
    指定機器人的編號

傳回值
SpelRobotInfo

另請參閱
GetControllerInfo方法, GetTaskInfo方法

GetRobotInfo範例
VB 例:

Dim info As SpelRobotInfo  
Dim msg As String  
  
info = m_spel.GetRobotInfo(1)  
msg = "Robot Model: " & info.RobotModel & vbCrLf _  
    & "Robot Serial: " & info.RobotSerial  
MsgBox(msg)  

C# 例:

SpelRobotInfo info;  
string msg;  
  
info = m_spel.GetRobotInfo(1);  
msg = "Robot Model: " + info.RobotModel +  
      "\r\n Robot Serial: " + info.RobotSerial;  
MessageBox.Show(msg);