RobotStudio event

Need help with my thesis

can any body share some insights on how to, program a robot arm for just four functions, open, grip and sideways then open, this should be in rotation.. will really appreciate it it's for my Thesis on robotics