This is a Denso 6DOF robotic arm programmed to tell time using pegs in many different ways.
To learn more about the theory behind programming robot arms, check out:
http://www.societyofrobots.com/robot_arm_tutorial.shtml
See more videos uploaded by palmisano