VGetRobotPlacePos Method
Description
Retrieves robot place position.
Syntax
Sub VGetRobotPlacePos (Sequence As String, Object As String, Result As Integer, ByRef Found As Boolean, ByRef PlacePointAs SpelPoint)
Parameters
- Sequence
A string expression indicating the vision sequence name for the current project. - Object
A string expression indicating the object name for the sequence. - Result
An integer expression indicating the result number. - Found
An integer variable indicating the Boolean found status. If found is false, then X, Y, and U are undefined. - PlacePoint
A SpelPoint variable indicating the place position.
See Also
VGetRobotPlaceTargetPos Method, VSetRobotPlaceTargetPos Method
VGetRobotPlacePos Example
VB Example:
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"
' Move part above upward camera
m_spel.Jump("camPos")
m_spel.VRun(seq)
m_spel.VGetRobotPlacePos(seq, blob, 1, found, placePoint)
' Using a SCARA, to use +TLZ for approach
m_spel.Jump(placePoint, "+TLZ(10)")
m_spel.Go(placePoint)
C# Example:
bool found;
float x, y, u;
string seq, blob;
SpelPoint placePoint = new SpelPoint();
seq = "testSeq";
blob = "blob01";
// Move part above upward camera
m_spel.Jump("camPos");
m_spel.VRun(seq);
m_spel.VGetRobotPlacePos(seq,blob,1,out found, out placePoint);
// Using a SCARA, to use +TLZ for approach
m_spel.Jump(placePoint, "+TLZ(10)");
m_spel.Go(placePoint);