VGetRobotPlacePos方法

描述
擷取機器人放置位置。

語法
Sub VGetRobotPlacePos (Sequence As String, Object As String, Result As Integer, ByRef Found As Boolean, ByRef PlacePointAs SpelPoint)

參數

  • Sequence
    包含目前專案中視覺序列之名稱的字串運算式。
  • Object
    包含Sequence序列中物件之名稱的字串運算式。
  • Result
    代表結果編號的整數運算式。
  • Found
    代表布林類型偵測狀態的整數變數。若檢測為False,則未定義W、Y及U。
  • PlacePoint
    包含放置位置的SpelPoint變數

另請參閱
VGetRobotPlaceTargetPos方法, VSetRobotPlaceTargetPos方法

VGetRobotPlacePos範例
VB 例:

Dim found As Integer  
Dim x As Single, y As Single, u As Single  
Dim seq As String, blob As String  
Dim placePoint As SpelPoint  
  
seq = "testSeq"  
blob = "blob01"  
' 移動高於上方攝影機的工件  
m_spel.Jump("camPos")  
m_spel.VRun(seq)  
m_spel.VGetRobotPlacePos(seq, blob, 1, found, placePoint)  
' 使用SCARA以使用+TLZ接近  
m_spel.Jump(placePoint, "+TLZ(10)")  
m_spel.Go(placePoint)  

C# 例:

bool found;  
float x, y, u;  
string seq, blob;  
SpelPoint placePoint = new SpelPoint();  
seq = "testSeq";  
blob = "blob01";  
  
// 移動高於上方攝影機的工件  
m_spel.Jump("camPos");  
m_spel.VRun(seq);  
m_spel.VGetRobotPlacePos(seq,blob,1,out found, out placePoint);  
// 使用SCARA以使用+TLZ接近  
m_spel.Jump(placePoint, "+TLZ(10)");  
m_spel.Go(placePoint);