VGetRobotPlaceTargetPos方法
描述
擷取工件放置位置。
語法
Sub VGetRobotPlaceTargetPos (Sequence As String, Object As String, ByRef Point As SpelPoint)
參數
- Sequence
包含目前專案中視覺序列之名稱的字串運算式。 - Object
包含Sequence序列中物件之名稱的字串運算式。 - Point
包含放置位置的SpelPoint變數
另請參閱
VGetRobotPlacePos方法, VSetRobotPlaceTargetPos方法
VGetRobotPlaceTargetPos範例
VB 例:
Dim seq As String, blob As String
Dim targetPoint As SpelPoint
seq = "testSeq"
blob = "blob01"
m_spel.VGetRobotPlaceTargetPos(seq, blob, targetPoint)
' Adjust the place position
targetPoint.X = targetPoint.X + 10
m_spel.VSetRobotPlaceTargetPos(seq, blob, targetPoint)
C# 例:
Spe
lPoint targetPoint = new SpelPoint();
seq = "testSeq";
blob = "blob01";
m_spel.VGetRobotPlaceTargetPos(seq, blob, out targetPoint);
// 調整放置位置
targetPoint.X = targetPoint.X + 10;
m_spel.VSetRobotPlaceTargetPos(seq, blob, targetPoint);