SimGet方法

描述
取得模擬器的各種物件屬性的設定值。

語法
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Boolean)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As Boolean)
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Double)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As Double)
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Integer)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As Integer)
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Boolean)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As String)

參數

  • Object
    代表取得了屬性值的物件名稱的字串變數
  • RobotName
    代表安裝了“Hand”中指定夾具的機器人名稱的字串變數
  • HandName
    代表取得屬性值的夾具名稱的字串變數
  • Property
    取得值的屬性的名稱。
  • Value
    代表傳回值得變數

備註
本方法用於取得模擬器中的各種物件的屬性設定值。

有關各屬性的詳細資訊,請參閲以下手冊。
"Epson RC+ 8.0 SPEL+ 語言參考 - SimGet"

另請參閱
SimSet方法

SimGet範例
VB 例:

Dim posX As Double  
m_spel.SimGet("SBox_1", SpelSimProps.PositionX, posX)  

C# 例:

double posX;  
SimGet("SBox_1", SpelSimProps.PositionX, out posX);