RobotStudio event

object position

Hi, I'm working with an ABB IRB 120 robot and a Cognex 7010c, I have identified the object and the coordinates x,y and rotation but I don't know how to program the robot to go the object. Have anybody tried something similar or have any idea how should I write the program?