Communication system

Hi,
I want to connect a UR10e with a PC and a Laser micrometer.

  1. The Robot presents a tool to a cognex data matrix scanner, (sends signal to scanner to start matrix scan)
  2. The robot receives signal on successful scanning and the PC gets info about the tool (from the data matrix scan: gets all benchmark tolerance data)
    3)The Robot moves the tool to the laser micrometer, sends signal to start the laser micrometer scanning.
  3. After successful scan the PC get the reading and decides whether it is a pass of fail (comparing it to benchmark) and asks the robot to move it to a pass or fail area.

How do I set up the communication, what protocols should I use? Can someone please provide a solution. I couldnt find much on how to setup communication b/w pc, robot and micrometer.

Note: The micrometer has an ethernet port.