SimSet方法

描述
設定模擬器中各種物件的屬性。還可以進行機器人動作和物件操作,以及模擬器設定等操作。

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

參數

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

備註
本方法用於設定和操作模擬器中的各種物件的屬性、機器人動作個和更改模擬器設定。

屬性不能指定SpelSimProps.Type。

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

另請參閱
SimGet方法

SimSet範例
VB 例:

m_spel.SimSet ("SBox_1", SpelSimProps.PositionX, 100.0)  

C# 例:

m_spel.SimSet("SBox_1", SpelSimProps.PositionX, 100.0);