GetPoint 方法
描述
检索机器人点的坐标数据。
语法
Function GetPoint (PointNumber As Integer) As SpelPoint
Function GetPoint (PointName As String) As SpelPoint
参数
- PointNumber
当前机器人控制器点内存中的点的整数表达式。 - PointName
字符串表达式。可以是点标签,“Pxxx”、“P*”或“*”。
返回值
SpelPoint 的值
参阅
SetPoint 方法
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);