Fanuc robots have the capacity to communicate with the real world. This means communicating with other robots, sensors, human interface devices, plc's, electromechanical devices...

How to add an instruction that changes a digital output.
How to add an instruction that changes a robot output (The gripper tool)