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