GetPoint メソッド
解説
ロボットポイントの座標データを取り出します。
書式
Function GetPoint (PointNumber As Integer) As SpelPoint
Function GetPoint (PointName As String) As SpelPoint
パラメーター
- PointNumber
コントローラーのカレントロボットのポイントメモリーにあるポイントを示す整数式 - PointName
文字列で、修飾文字を含むポイントラベル Pxxx, P*, "*" が使用できます。
戻り値
SpelPointの値
GetPoint 使用例
VB 例:
Dim pt As SpelPoint
pt = m_spel.GetPoint("P*")
pt.X = 25.0
m_spel.Go(pt)
C# 例:
SpelPoint pt;
pt = m_spel.GetPoint("P0");
pt.X = 25.0;
m_spel.Go(pt);