There are widely-adopted standards for proper setup and operation or industrial and collaborative robots, the most-adopted being the following document:
ISO 10218, Robots and robotic devices — Safety requirements for industrial robots
???