viTran6 (Library) [for the Vision board]


Transforms the vision coordinates to robot coordinates (for 6 axes).


viTran6 (<Calibration number>, <Vision coordinate X>, <Vision coordinate Y>, <Robot coordinate (P type)>)


This statement transforms the vision coordinates (X, Y) to the robot absolute coordinates (X, Y, Z).
For execution of this library, it is required to execute vision calibration and transmit the vision calibration data with the controller.
Designate a number which executes vision calibration as a calibration number.
With this coordinate transformation, only the absolute coordinates (X, Y, Z) can be obtained. Figure data must be set separately in order to execute the MOVE instruction.


'Stores the vision coordinate X to F1.
'Stores the vision coordinate Y to F2.
TAKEARM
CHANGETOOL 1
'Sets the fool to which vision calibration was performed.
MOVE P,P10
'Moves to the stand-by position.
P11 = P10
'Copies the figure at the stand-by position.
CALL viTran6(0, F1, F2, P11)
'Transforms the vision coordinates to the robot coordinates
'("0" of vision calibration is used).
APPROACH P, P11, 100
MOVE L, P11
'Moves to the position measured with vision.
DEPART L,100
CHANGETOOL 0


Top