Methods
- Sub AddPlacedMfgAssembly( pPickedItem, vbSAV)
- Adds a Manufacturing Assembly to the List of placed Items
- Sub AddPlacedProduct( pPickedItem, vbSAV)
- Adds a product to the List of placed Items
- Sub GetOffset( oOffsetTransList)
-
This method gets the relative offset List for placing the product
- Parameters:
-
- oOffsetTrans
- list of Offsets between EndEff and Product at time of placing
first 12 values reprsent 1st offset, next 12, 2nd offset and so on..
The offset matrix is intrepreted as follows:
The first 9 entries correspond to the rotation matrix and the
next 3 entries correspond to the position vector The first 9 entries are interpreted row wise for the matrix
shown below
R1x:x-component of x axisR1x R1y R1z R2x R2y R2z R3x R3y R3z Px Py Pz
R2x:y-component of x axis
R3x:z-component of x axis
R1y:x-component of y axis
R2y:y-component of y axis
R3y:z-component of y axis
R1z:x-component of z axis
R2z:y-component of z axis
R3z:z-component of z axis
dd>
- Sub GetPlacedProducts( pPlacedProds)
- Returns or Sets Placed Products
- Sub RemovePlacedMfgAssembly( pPickedItem)
- Removes a Manufacturing Assembly from the list of placed items
- Sub RemovePlacedProduct( pPickedItem)
- Removes a product from the list of placed items
- Sub SetOffset( oOffsetTransList)
-
This method sets the relative offsets for placing the product
- Parameters:
-
- oOffsetTransList
- list of Offsets between EndEffs and Products at time of placing
first 12 values represnt 1st offset, next 12, 2nd offset and so on..
The offset matrix is intrepreted as follows:
The first 9 entries correspond to the rotation matrix and the
next 3 entries correspond to the position vector
R1x:x-component of x axisR1x R1y R1z R2x R2y R2z R3x R3y R3z Px Py Pz
R2x:y-component of x axis
R3x:z-component of x axis
R1y:x-component of y axis
R2y:y-component of y axis
R3y:z-component of y axis
R1z:x-component of z axis
R2z:y-component of z axis
R3z:z-component of z axis
dd>
- Example:
-
This example shows how the offset list needs to be populated
' Example of 45 degree rotation around the x-axis of placing hand Dim oOffsetTransList(11) ' 0 to 11; relative transformation between hand and object ' X axis rotation component oOffsetTransList( 0 ) = 1 oOffsetTransList( 3 ) = 0 oOffsetTransList( 6 ) = 0 ' Y axis rotation component oOffsetTransList( 1 ) = 0 oOffsetTransList( 4 ) = 0.7071 oOffsetTransList( 7 ) = 0.7071 ' Z axis rotation component oOffsetTransList( 2 ) = 0 oOffsetTransList( 5 ) = -0.7071 oOffsetTransList( 8 ) = 0.7071 ' position vector (relative vector between the hand and object) oOffsetTransList( 9 ) = 0 oOffsetTransList( 10 ) = 0 oOffsetTransList( 11 ) = 0
- Sub SetPickAct( pickAct)
- Sets or append a link to a Pick activity
- Sub SetPlacedProducts( pPlacedProds)