How to make this video that have die casting

i am a new guy, i want to make a module like the video,i do not know how to deal with signal that the Robot send to die casting machine and the machine receive signal can move to anther position.
and next is the link of the video,thank you!